Connection to an instance stored in Orthanc.
More...
#include <OrthancCppClient.h>
This class encapsulates a connection to an image instance from a remote instance of Orthanc.
| OrthancClient::Instance::Instance |
( |
const Instance & |
other | ) |
|
|
inline |
Construct a new reference to this object. Pay attention to the fact that when the referenced object is deleted, the content of this object will be invalid.
- Parameters
-
| other | The original object. |
Create a connection to some image instance.
- Parameters
-
| connection | The remote instance of Orthanc. |
| id | The Orthanc identifier of the image instance. |
| OrthancClient::Instance::~Instance |
( |
| ) |
|
|
inline |
| void OrthancClient::Instance::DiscardDicom |
( |
| ) |
|
|
inline |
Discard the downloaded DICOM file, so as to make room in memory.
| void OrthancClient::Instance::DiscardImage |
( |
| ) |
|
|
inline |
Discard the downloaded 2D image, so as to make room in memory.
| const void * OrthancClient::Instance::GetBuffer |
( |
| ) |
|
|
inline |
Access the memory buffer in which the raw pixels of the 2D image are stored.
- Returns
- A pointer to the memory buffer.
| const void * OrthancClient::Instance::GetBuffer |
( |
LAAW_UINT32 |
y | ) |
|
|
inline |
Access the memory buffer in which the raw pixels of some line of the 2D image are stored.
- Parameters
-
- Returns
- A pointer to the memory buffer.
| const void * OrthancClient::Instance::GetDicom |
( |
| ) |
|
|
inline |
Get a pointer to the content of the DICOM file corresponding to this instance.
- Returns
- The DICOM file.
| LAAW_UINT64 OrthancClient::Instance::GetDicomSize |
( |
| ) |
|
|
inline |
Get the size of the DICOM file corresponding to this instance.
- Returns
- The file size.
| LAAW_UINT32 OrthancClient::Instance::GetHeight |
( |
| ) |
|
|
inline |
Get the height of the 2D image that is encoded by this DICOM instance.
- Returns
- The height.
| std::string OrthancClient::Instance::GetId |
( |
| ) |
const |
|
inline |
Get the Orthanc identifier of this identifier.
- Returns
- The identifier.
Get the extraction mode for the 2D image corresponding to this instance.
- Returns
- The extraction mode.
| LAAW_UINT32 OrthancClient::Instance::GetPitch |
( |
| ) |
|
|
inline |
Get the number of bytes between two lines of the image in the memory buffer returned by GetBuffer(). This value depends on the extraction mode for the image.
- Returns
- The pitch.
Return the memory layout that is used for the 2D image that is encoded by this DICOM instance. This value depends on the extraction mode for the image.
- Returns
- The pixel format.
| float OrthancClient::Instance::GetTagAsFloat |
( |
const ::std::string & |
tag | ) |
const |
|
inline |
Get the floating point value that is stored in some DICOM tag of this instance.
- Parameters
-
| tag | The name of the tag of interest. |
- Returns
- The value of the tag.
| LAAW_INT32 OrthancClient::Instance::GetTagAsInt |
( |
const ::std::string & |
tag | ) |
const |
|
inline |
Get the integer value that is stored in some DICOM tag of this instance.
- Parameters
-
| tag | The name of the tag of interest. |
- Returns
- The value of the tag.
| std::string OrthancClient::Instance::GetTagAsString |
( |
const ::std::string & |
tag | ) |
const |
|
inline |
Get the string value of some DICOM tag of this instance.
- Parameters
-
| tag | The name of the tag of interest. |
- Returns
- The value of the tag.
| LAAW_UINT32 OrthancClient::Instance::GetWidth |
( |
| ) |
|
|
inline |
Get the width of the 2D image that is encoded by this DICOM instance.
- Returns
- The width.
Set the extraction mode for the 2D image corresponding to this instance.
- Parameters
-
The documentation for this class was generated from the following file: