Connection to an instance stored in Orthanc.
More...
#include <OrthancCppClient.h>
Public Member Functions |
| | Instance (const Instance &other) |
| | Construct a new reference to this object.
|
| | Instance (::OrthancClient::OrthancConnection &connection, const ::std::string &id) |
| | Create a connection to some image instance.
|
| | ~Instance () |
| inline::std::string | GetId () const |
| | Get the Orthanc identifier of this identifier.
|
| void | SetImageExtractionMode (::Orthanc::ImageExtractionMode mode) |
| | Set the extraction mode for the 2D image corresponding to this instance.
|
| inline::Orthanc::ImageExtractionMode | GetImageExtractionMode () const |
| | Get the extraction mode for the 2D image corresponding to this instance.
|
| inline::std::string | GetTagAsString (const ::std::string &tag) const |
| | Get the string value of some DICOM tag of this instance.
|
| float | GetTagAsFloat (const ::std::string &tag) const |
| | Get the floating point value that is stored in some DICOM tag of this instance.
|
| LAAW_INT32 | GetTagAsInt (const ::std::string &tag) const |
| | Get the integer value that is stored in some DICOM tag of this instance.
|
| LAAW_UINT32 | GetWidth () |
| | Get the width of the 2D image.
|
| LAAW_UINT32 | GetHeight () |
| | Get the height of the 2D image.
|
| LAAW_UINT32 | GetPitch () |
| | Get the number of bytes between two lines of the image (pitch).
|
| inline::Orthanc::PixelFormat | GetPixelFormat () |
| | Get the format of the pixels of the 2D image.
|
| const void * | GetBuffer () |
| | Access the memory buffer in which the raw pixels of the 2D image are stored.
|
| const void * | GetBuffer (LAAW_UINT32 y) |
| | Access the memory buffer in which the raw pixels of some line of the 2D image are stored.
|
| LAAW_UINT64 | GetDicomSize () |
| | Get the size of the DICOM file corresponding to this instance.
|
| const void * | GetDicom () |
| | Get a pointer to the content of the DICOM file corresponding to this instance.
|
| void | DiscardImage () |
| void | DiscardDicom () |
Detailed Description
This class encapsulates a connection to an image instance from a remote instance of Orthanc.
Constructor & Destructor Documentation
| 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 |
Member Function Documentation
| 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: