23#ifndef _SO_VR_DICOM_DATA_
24#define _SO_VR_DICOM_DATA_
26#include <Inventor/SbLinear.h>
27#include <Inventor/SbString.h>
28#include <Inventor/SbBox.h>
29#include <Inventor/SbPImpl.h>
31#include <VolumeViz/readers/dicom/SiDicomDataSet.h>
32#include <VolumeViz/readers/dicom/SiDicomElement.h>
Class for smart character strings.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM data.
int getImageNumber() const
Returns the image number.
int getHighBit() const
Returns the high bit.
int getNumFrames() const
Returns the number of frames.
SbVec3f getImagePosition() const
Returns the position of the first frame's top left voxel center in the patient space.
int getBytesPerPixel() const
Returns the number of bytes per pixel.
int getBitsStored() const
Returns the number of bits stored.
float getSliceSpacing() const
Returns the slice spacing.
SoNONUNICODE SbBool readDicomImage(const char *fileName)
Reads the DICOM image.
SbBool readDicomImage(const SbString &fileName)
Reads the DICOM image.
int signedData() const
Returns the signed flag.
~SoVRDicomData()
Destructor.
float getSlope() const
Returns the slope.
SoVRDicomData()
Constructor.
int getSeriesNumber() const
Returns the series number.
SbBool supportedTransferSyntax() const
Returns true if the transfer syntax is supported by Open Inventor.
SbBool close()
Closes the underlying reader.
float getSliceThicknessMM() const
Returns the slice thickness in mm.
int getImageWidth() const
Returns the image width.
int getImageHeight() const
Returns the image height.
SoNONUNICODE SbBool readDicomHeader(const char *fileName)
Reads the DICOM file header.
int getSizeInBytes() const
Returns the image size in bytes.
float getYPixelSize() const
Returns the Y pixel size in mm.
float getSliceLocation() const
Returns the image location in mm.
float getXPixelSize() const
Returns the X pixel size in mm.
const SiDicomDataSet * getDicomDataSet() const
Returns a DICOM data object that allows accessing all the DICOM attributes.
SbBool getPosition(SbVec3f &position) const
Returns the 3D position of the center of the image.
SbString getDicomInfo(unsigned short group, unsigned short element) const
Generic method to get DICOM info.
int getSamplesPerPixel() const
Returns the number of samples per pixel.
SbBool readDicomHeader(const SbString &fileName)
Reads the DICOM file header.
SbBool getOrientation(SbMatrix &orientation) const
Returns the orientation of the DICOM volume.
float getIntercept() const
Returns the intercept.
void readFrame(size_t frame, const SbBox2i32 &subImg, uint8_t *dst) const
Read a region of a DICOM frame.
<a href="IconLegend.html"><img src="extVR.gif" alt="VolumeViz" border="0"></a> DICOM file reader.