Summary
The VolumeDataContext class represents an initialized volume dataset on the server created by various data loading functions in the ServerContext class. The details of the volume dataset are provided via the VOLUME_DATA_PARAMS class. The histogram of the volume dataset is available through the VolumeDataContext.
Initialization and Usage
C++ uses IServerContext interface to create the IVolumeDataContact object when loading in a dataset. To reduce client-server communication, it is advised to always request a locally cached copy of the parameters if it exists. Once the IVolumeDataContact is no longer needed, its resources should be released.
Provide example in C++ for using this class.
Java uses the hdrcServerContext class to create the hdrcVolumeDataContext object when loading in a dataset. To reduce client-server communication, it is advised to always request a locally cached copy of the parameters if it exists. Once the hdvrVolumeDataContext object is no longer needed, its resources should be released.
Is there any time you should NOT attempt to use a cached copy? Why isn't this always done?
// us the hdrcServerContext to load a dataset to create the hdrcVolumeDataContext
hdrcServerContext hdrcServer = new hdrcServerContext("192.168.1.4", "6778");
hdrcVolumeDataContext hdrcVolume = hdrcServer.loadDicomDirectory("datasetDirectory");
// obtain the VOLUME_DATA_PARAMS; true indicates that it should attempt to use the locally cached copy
// before requesting it from the server
VOLUME_DATA_PARAMS vdp = hdrcVolume.getVolumeDataParams(true);
...........
// once the dataset is no longer in use by the application, be sure to release the resources.
hdrcVolume.releaseSessionResources();
Methods
IVolumeDataContext::GetHistogram()
EXTRA REFERENCE... WHY DIFFERENT FROM JAVA? WHAT IS NID?
com.fovia.hdrc.hdrcVolumeDataContext.getHistogram()
Java/.NET |
||||||||
Fills an array with the number of voxels in the dataset with the specified HU+1024 value.
Referenced by com.fovia.hdrc.hdrcVolumeDataContext.getHistogram(). |
||||||||
Placeholder for getHistogram() References com.fovia.hdrc.hdrcVolumeDataContext.getHistogram(). |
IVolumeDataContext::GetID()
C++ |
||||||
Integer that represents the server side object that contains the volume data. |
com.fovia.hdrc.hdrcVolumeDataContext.getID()
Java/.NET |
|||||
Integer that represents the server side object that contains the volume data.
|
IVolumeDataContext::GetVolumeDataParams()
C++ |
||||||||
Returns information about the volume data in question. |
com.fovia.hdrc.hdrcVolumeDataContext.getVolumeDataParams()
Java/.NET |
|||||||
Returns information about the volume data in question.
Referenced by com.fovia.hdrc.hdrcVolumeDataContext.getVolumeDataParams(). |
|||||||
Placeholder for getVolumeDataParams() References com.fovia.hdrc.hdrcVolumeDataContext.getVolumeDataParams(). |
IVolumeDataContext::ReleaseSessionResources()
C++ |
|||||||
Call this function if you wish to free server resources before disconnecting. |
hdrcVolumeDataContext.releaseSessionResources()
C++ |
|||||||
Decreases the reference count on this object by 1. If the reference count reaches 0, the object is deallocated. Implements IRoot. |
Doxygen Links
Complete details of member variables and class names are available in the source level documentation available from these links to Doxygen.
C++ |
|
Java / .NET |