CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::UnsignedDerivedImage Class Reference

Class that holds an unsigned version of a base Image. More...

#include <cxUnsignedDerivedImage.h>

Inheritance diagram for cx::UnsignedDerivedImage:
cx::Image cx::Data

Public Member Functions

virtual RegistrationHistoryPtr get_rMd_History ()
 
virtual QString getName () const
 
virtual QString getFilename () const
 
virtual Transform3D get_rMd () const
 
virtual Image::ShadingStruct getShading () const
 
virtual QDateTime getAcquisitionTime () const
 
virtual QString getType () const
 
virtual QString getSpace ()
 
virtual QString getParentSpace ()
 
virtual DoubleBoundingBox3D boundingBox () const
 bounding box in image space More...
 
virtual CoordinateSystem getCoordinateSystem ()
 
virtual IMAGE_MODALITY getModality () const
 
virtual IMAGE_SUBTYPE getImageType () const
 
- Public Member Functions inherited from cx::Image
ImagePtr copy ()
 
virtual ~Image ()
 
 Image (const QString &uid, const vtkImageDataPtr &data, const QString &name="")
 
virtual void intitializeFromParentImage (ImagePtr parentImage)
 
virtual void setVtkImageData (const vtkImageDataPtr &data, bool resetTransferFunctions=true)
 
virtual vtkImageDataPtr getBaseVtkImageData ()
 
virtual vtkImageDataPtr getGrayScaleVtkImageData ()
 as getBaseVtkImageData(), but constrained to 1 component if multicolor. More...
 
virtual vtkImageDataPtr get8bitGrayScaleVtkImageData ()
 Have never been used or tested. Create a test for it. More...
 
virtual ImagePtr getUnsigned (ImagePtr self)
 
virtual void setModality (const IMAGE_MODALITY &val)
 
virtual void setImageType (const IMAGE_SUBTYPE &val)
 
virtual ImageTF3DPtr getTransferFunctions3D ()
 
virtual void setTransferFunctions3D (ImageTF3DPtr transferFuntion)
 
virtual ImageLUT2DPtr getLookupTable2D ()
 
virtual void setLookupTable2D (ImageLUT2DPtr imageLookupTable2D)
 
virtual void setInitialWindowLevel (double width, double level)
 
double getInitialWindowLevel () const
 
double getInitialWindowWidth () const
 
virtual Eigen::Array3d getSpacing () const
 
virtual vtkImageAccumulatePtr getHistogram ()
 
virtual int getMax ()
 
virtual int getMin ()
 
virtual int getRange ()
 For convenience: getMax() - getMin() More...
 
virtual int getMaxAlphaValue ()
 Max alpha value (probably 255) More...
 
virtual void setShadingOn (bool on)
 
virtual bool getShadingOn () const
 
virtual void setShadingAmbient (double ambient)
 Set shading ambient parmeter. More...
 
virtual void setShadingDiffuse (double diffuse)
 Set shading diffuse parmeter. More...
 
virtual void setShadingSpecular (double specular)
 Set shading specular parmeter. More...
 
virtual void setShadingSpecularPower (double specularPower)
 Set shading specular power parmeter. More...
 
virtual double getShadingAmbient ()
 Get shading ambient parmeter. More...
 
virtual double getShadingDiffuse ()
 Get shading diffuse parmeter. More...
 
virtual double getShadingSpecular ()
 Get shading specular parmeter. More...
 
virtual double getShadingSpecularPower ()
 Get shading specular power parmeter. More...
 
virtual Image::ShadingStruct getShading ()
 
virtual void setShading (Image::ShadingStruct shading)
 
void addXml (QDomNode &dataNode)
 adds xml information about the image and its variabels More...
 
virtual void parseXml (QDomNode &dataNode)
 Use a XML node to load data. More...
 
virtual bool load (QString path, FileManagerServicePtr filemanager)
 
virtual QIcon getIcon ()
 
virtual void setCropping (bool on)
 
virtual bool getCropping () const
 
virtual void setCroppingBox (const DoubleBoundingBox3D &bb_d)
 
virtual DoubleBoundingBox3D getCroppingBox () const
 
void mergevtkSettingsIntosscTransform ()
 
void resetTransferFunctions (bool _2D=true, bool _3D=true)
 Resets the transfer functions and creates new default values. More...
 
void moveThisAndChildrenToThread (QThread *thread)
 Move this and all children to thread. Use the thread is generated in a worker thread and the result is to be used in the main thread. More...
 
void setInterpolationType (int val)
 
int getInterpolationType () const
 
vtkImageDataPtr resample (long maxVoxels)
 
virtual void save (const QString &basePath, FileManagerServicePtr filemanager)
 
void startThresholdPreview (const Eigen::Vector2d &threshold)
 
void stopThresholdPreview ()
 
double getVTKMinValue ()
 
double getVTKMaxValue ()
 
bool is2D ()
 
- Public Member Functions inherited from cx::Data
 Data (const QString &uid, const QString &name="")
 
virtual ~Data ()
 
void setUid (const QString &uid)
 
void setName (const QString &name)
 
void setAcquisitionTime (QDateTime time)
 
void setSoftwareAcquisitionTime (QDateTime time)
 
void setOriginalAcquisitionTime (QDateTime time)
 
LandmarksPtr getLandmarks ()
 
virtual QString getUid () const
 
virtual TimeInfo getAdvancedTimeInfo () const
 
virtual bool isEqual (DataPtr metric)
 
virtual void setFilename (QString val)
 
virtual std::vector< Vector3DgetPointCloud () const
 
virtual void addPersistentClipPlane (vtkPlanePtr plane)
 
virtual std::vector< vtkPlanePtrgetAllClipPlanes ()
 
virtual void clearPersistentClipPlanes ()
 
virtual void setInteractiveClipPlane (vtkPlanePtr plane)
 set a plane that is not saved More...
 
void addInteractiveClipPlane (vtkPlanePtr plane)
 
void removeInteractiveClipPlane (vtkPlanePtr plane)
 

Static Public Member Functions

static ImagePtr create (ImagePtr base)
 
- Static Public Member Functions inherited from cx::Image
static ImagePtr create (const QString &uid, const QString &name)
 
static QString getTypeName ()
 
static vtkImageDataPtr createDummyImageData (int axisSize, int maxVoxelValue)
 Create a moc object of vtkImageData. More...
 

Additional Inherited Members

- Signals inherited from cx::Image
void vtkImageDataChanged (QString uid=QString())
 emitted when the vktimagedata are invalidated and must be retrieved anew. More...
 
void transferFunctionsChanged ()
 emitted when image transfer functions in 2D or 3D are changed. More...
 
void cropBoxChanged ()
 
- Signals inherited from cx::Data
void transformChanged ()
 emitted when transform is changed More...
 
void propertiesChanged ()
 emitted when one of the metadata properties (uid, name etc) changes More...
 
void clipPlanesChanged ()
 
- Protected Slots inherited from cx::Image
virtual void transformChangedSlot ()
 
- Protected Slots inherited from cx::Data
virtual void transformChangedSlot ()
 
- Protected Attributes inherited from cx::Image
vtkImageDataPtr mBaseImageData
 image data in data space More...
 
vtkImageDataPtr mBaseGrayScaleImageData
 image data in data space More...
 
vtkImageAccumulatePtr mHistogramPtr
 Histogram. More...
 
ImagePtr mUnsigned
 version of this containing unsigned data. More...
 
ShadingStruct mShading
 
bool mUseCropping
 image should be cropped using mCroppingBox More...
 
DoubleBoundingBox3D mCroppingBox_d
 box defining the cropping size. More...
 
IMAGE_MODALITY mModality
 modality of the image, defined as DICOM tag (0008,0060), Section 3, C.7.3.1.1.1 More...
 
IMAGE_SUBTYPE mImageType
 type of the image, defined as DICOM tag (0008,0008) (mainly value 3, but might be a merge of value 4), Section 3, C.7.6.1.1.2 More...
 
double mMaxRGBIntensity
 
int mInterpolationType
 mirror the interpolationType in vtkVolumeProperty More...
 
- Protected Attributes inherited from cx::Data
QString mUid
 
QString mName
 
QString mFilename
 
TimeInfo mTimeInfo
 
LandmarksPtr mLandmarks
 
REGISTRATION_STATUS mRegistrationStatus
 
RegistrationHistoryPtr m_rMd_History
 
std::vector< vtkPlanePtrmPersistentClipPlanes
 
std::vector< vtkPlanePtrmInteractiveClipPlanes
 
vtkPlanePtr mInteractiveClipPlane
 

Detailed Description

Class that holds an unsigned version of a base Image.

This class provides read-only access to the base image only. Intended for structures that requires unsigned input, such as TextureSlice3DProxy.

Date
Feb 21, 2013
Author
christiana

Definition at line 43 of file cxUnsignedDerivedImage.h.

Member Function Documentation

virtual DoubleBoundingBox3D cx::UnsignedDerivedImage::boundingBox ( ) const
inlinevirtual

bounding box in image space

Reimplemented from cx::Image.

Definition at line 60 of file cxUnsignedDerivedImage.h.

ImagePtr cx::UnsignedDerivedImage::create ( ImagePtr  base)
static

Definition at line 41 of file cxUnsignedDerivedImage.cpp.

virtual Transform3D cx::UnsignedDerivedImage::get_rMd ( ) const
inlinevirtual
Returns
a descriptive name for this instance
the transform M_rd from the data object's space (d) to the reference space (r).
Transform from local data space to (data-)ref space

Reimplemented from cx::Data.

Definition at line 54 of file cxUnsignedDerivedImage.h.

virtual RegistrationHistoryPtr cx::UnsignedDerivedImage::get_rMd_History ( )
inlinevirtual

Reimplemented from cx::Data.

Definition at line 50 of file cxUnsignedDerivedImage.h.

virtual QDateTime cx::UnsignedDerivedImage::getAcquisitionTime ( ) const
inlinevirtual

Get the time the data was created from a data source.

Reimplemented from cx::Data.

Definition at line 56 of file cxUnsignedDerivedImage.h.

CoordinateSystem cx::UnsignedDerivedImage::getCoordinateSystem ( )
virtual

Reimplemented from cx::Data.

Definition at line 150 of file cxUnsignedDerivedImage.cpp.

virtual QString cx::UnsignedDerivedImage::getFilename ( ) const
inlinevirtual

Reimplemented from cx::Data.

Definition at line 53 of file cxUnsignedDerivedImage.h.

virtual IMAGE_SUBTYPE cx::UnsignedDerivedImage::getImageType ( ) const
inlinevirtual

Reimplemented from cx::Image.

Definition at line 64 of file cxUnsignedDerivedImage.h.

virtual IMAGE_MODALITY cx::UnsignedDerivedImage::getModality ( ) const
inlinevirtual

Reimplemented from cx::Image.

Definition at line 63 of file cxUnsignedDerivedImage.h.

virtual QString cx::UnsignedDerivedImage::getName ( ) const
inlinevirtual

Reimplemented from cx::Data.

Definition at line 52 of file cxUnsignedDerivedImage.h.

virtual QString cx::UnsignedDerivedImage::getParentSpace ( )
inlinevirtual

Reimplemented from cx::Data.

Definition at line 59 of file cxUnsignedDerivedImage.h.

virtual Image::ShadingStruct cx::UnsignedDerivedImage::getShading ( ) const
inlinevirtual

Definition at line 55 of file cxUnsignedDerivedImage.h.

virtual QString cx::UnsignedDerivedImage::getSpace ( )
inlinevirtual

Reimplemented from cx::Data.

Definition at line 58 of file cxUnsignedDerivedImage.h.

virtual QString cx::UnsignedDerivedImage::getType ( ) const
inlinevirtual

Reimplemented from cx::Image.

Definition at line 57 of file cxUnsignedDerivedImage.h.


The documentation for this class was generated from the following files: