CustusX
15.8
An IGT application
|
A volumetric data set. More...
#include <cxImage.h>
Classes | |
struct | ShadingStruct |
Signals | |
void | vtkImageDataChanged () |
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 | clipPlanesChanged () |
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... | |
Public Member Functions | |
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 QString | getModality () const |
virtual void | setModality (const QString &val) |
virtual QString | getImageType () const |
virtual void | setImageType (const QString &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 DoubleBoundingBox3D | boundingBox () const |
bounding box in image space More... | |
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) |
virtual QString | getType () const |
virtual void | setCropping (bool on) |
virtual bool | getCropping () const |
virtual void | setCroppingBox (const DoubleBoundingBox3D &bb_d) |
virtual DoubleBoundingBox3D | getCroppingBox () const |
virtual void | addPersistentClipPlane (vtkPlanePtr plane) |
virtual std::vector< vtkPlanePtr > | getAllClipPlanes () |
virtual void | clearPersistentClipPlanes () |
virtual void | setInteractiveClipPlane (vtkPlanePtr plane) |
set a plane that is not saved More... | |
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 | setInterpolationTypeToNearest () |
void | setInterpolationTypeToLinear () |
void | setInterpolationType (int val) |
int | getInterpolationType () const |
vtkImageDataPtr | resample (long maxVoxels) |
virtual void | save (const QString &basePath) |
void | startThresholdPreview (const Eigen::Vector2d &threshold) |
void | stopThresholdPreview () |
int | getVTKMinValue () |
int | getVTKMaxValue () |
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) |
virtual RegistrationHistoryPtr | get_rMd_History () |
LandmarksPtr | getLandmarks () |
virtual QString | getUid () const |
virtual QString | getName () const |
virtual Transform3D | get_rMd () const |
virtual QDateTime | getAcquisitionTime () const |
virtual QString | getFilename () const |
virtual void | setFilename (QString val) |
virtual QString | getSpace () |
virtual QString | getParentSpace () |
virtual CoordinateSystem | getCoordinateSystem () |
Static Public Member Functions | |
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... | |
Protected Slots | |
virtual void | transformChangedSlot () |
Protected Slots inherited from cx::Data | |
virtual void | transformChangedSlot () |
Protected Attributes | |
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... | |
std::vector< vtkPlanePtr > | mPersistentClipPlanes |
vtkPlanePtr | mInteractiveClipPlane |
QString | mModality |
modality of the image, defined as DICOM tag (0008,0060), Section 3, C.7.3.1.1.1 More... | |
QString | 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 |
QDateTime | mAcquisitionTime |
LandmarksPtr | mLandmarks |
REGISTRATION_STATUS | mRegistrationStatus |
RegistrationHistoryPtr | m_rMd_History |
A volumetric data set.
One volumetric data set, represented as a vtkImageData, along with auxiliary data.
|
virtual |
Definition at line 122 of file cxImage.cpp.
cx::Image::Image | ( | const QString & | uid, |
const vtkImageDataPtr & | data, | ||
const QString & | name = "" |
||
) |
Definition at line 126 of file cxImage.cpp.
|
virtual |
Definition at line 767 of file cxImage.cpp.
|
virtual |
adds xml information about the image and its variabels
dataNode | Data node in the XML tree |
Reimplemented from cx::Data.
Definition at line 515 of file cxImage.cpp.
|
virtual |
bounding box in image space
Implements cx::Data.
Reimplemented in cx::UnsignedDerivedImage.
Definition at line 360 of file cxImage.cpp.
|
virtual |
Definition at line 783 of file cxImage.cpp.
|
signal |
ImagePtr cx::Image::copy | ( | ) |
Definition at line 143 of file cxImage.cpp.
|
static |
Definition at line 117 of file cxImage.cpp.
|
static |
Create a moc object of vtkImageData.
Definition at line 857 of file cxImage.cpp.
|
signal |
|
virtual |
Have never been used or tested. Create a test for it.
Definition at line 299 of file cxImage.cpp.
|
virtual |
Definition at line 775 of file cxImage.cpp.
|
virtual |
Definition at line 355 of file cxImage.cpp.
|
virtual |
Definition at line 746 of file cxImage.cpp.
|
virtual |
Definition at line 759 of file cxImage.cpp.
|
virtual |
as getBaseVtkImageData(), but constrained to 1 component if multicolor.
Definition at line 306 of file cxImage.cpp.
|
virtual |
Definition at line 372 of file cxImage.cpp.
|
virtual |
Reimplemented in cx::UnsignedDerivedImage.
Definition at line 846 of file cxImage.cpp.
int cx::Image::getInterpolationType | ( | ) | const |
Definition at line 902 of file cxImage.cpp.
|
virtual |
Definition at line 336 of file cxImage.cpp.
|
virtual |
Definition at line 414 of file cxImage.cpp.
|
virtual |
Max alpha value (probably 255)
Definition at line 464 of file cxImage.cpp.
|
virtual |
Definition at line 450 of file cxImage.cpp.
|
virtual |
Reimplemented in cx::UnsignedDerivedImage.
Definition at line 835 of file cxImage.cpp.
|
virtual |
For convenience: getMax() - getMin()
Definition at line 459 of file cxImage.cpp.
|
virtual |
Definition at line 723 of file cxImage.cpp.
|
virtual |
Get shading ambient parmeter.
Definition at line 703 of file cxImage.cpp.
|
virtual |
Get shading diffuse parmeter.
Definition at line 708 of file cxImage.cpp.
|
virtual |
Definition at line 672 of file cxImage.cpp.
|
virtual |
Get shading specular parmeter.
Definition at line 713 of file cxImage.cpp.
|
virtual |
Get shading specular power parmeter.
Definition at line 718 of file cxImage.cpp.
|
virtual |
Definition at line 367 of file cxImage.cpp.
|
virtual |
Definition at line 317 of file cxImage.cpp.
|
inlinevirtual |
Reimplemented from cx::Data.
Reimplemented in cx::UnsignedDerivedImage.
Return a version of this, containing image data and transfer functions converted to unsigned. This is used for the 3D texture slicer that doesnt handle signed data.
Definition at line 191 of file cxImage.cpp.
int cx::Image::getVTKMaxValue | ( | ) |
Definition at line 492 of file cxImage.cpp.
int cx::Image::getVTKMinValue | ( | ) |
Definition at line 469 of file cxImage.cpp.
|
virtual |
Initialize image with properties from parent image, but with separate vtkImageData and name.
Definition at line 171 of file cxImage.cpp.
|
virtual |
Implements cx::Data.
Definition at line 581 of file cxImage.cpp.
void cx::Image::mergevtkSettingsIntosscTransform | ( | ) |
Do the following operations on mBaseVtkImageData:
This operation is needed because Image dont support vtkImageData with a nonzero origin or nonzero extent. These must be removed during creation.
Use this method only when you, by using some vtk algorithm, have created a vtkImageData that in nonconform with the Image spec.
Definition at line 807 of file cxImage.cpp.
void cx::Image::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.
Definition at line 279 of file cxImage.cpp.
|
virtual |
Use a XML node to load data.
dataNode | A XML data representation of this object. |
Reimplemented from cx::Data.
Definition at line 588 of file cxImage.cpp.
vtkImageDataPtr cx::Image::resample | ( | long | maxVoxels | ) |
Definition at line 909 of file cxImage.cpp.
void cx::Image::resetTransferFunctions | ( | bool | _2D = true , |
bool | _3D = true |
||
) |
Resets the transfer functions and creates new default values.
Definition at line 209 of file cxImage.cpp.
|
virtual |
Implements cx::Data.
Definition at line 957 of file cxImage.cpp.
|
virtual |
Definition at line 735 of file cxImage.cpp.
|
virtual |
Definition at line 751 of file cxImage.cpp.
|
virtual |
Definition at line 851 of file cxImage.cpp.
|
virtual |
Definition at line 660 of file cxImage.cpp.
|
virtual |
set a plane that is not saved
Definition at line 789 of file cxImage.cpp.
void cx::Image::setInterpolationType | ( | int | val | ) |
Definition at line 895 of file cxImage.cpp.
void cx::Image::setInterpolationTypeToLinear | ( | ) |
Definition at line 891 of file cxImage.cpp.
void cx::Image::setInterpolationTypeToNearest | ( | ) |
Definition at line 887 of file cxImage.cpp.
|
virtual |
Definition at line 350 of file cxImage.cpp.
|
virtual |
Definition at line 840 of file cxImage.cpp.
|
virtual |
Definition at line 728 of file cxImage.cpp.
|
virtual |
Set shading ambient parmeter.
Definition at line 679 of file cxImage.cpp.
|
virtual |
Set shading diffuse parmeter.
Definition at line 685 of file cxImage.cpp.
|
virtual |
Definition at line 666 of file cxImage.cpp.
|
virtual |
Set shading specular parmeter.
Definition at line 691 of file cxImage.cpp.
|
virtual |
Set shading specular power parmeter.
Definition at line 697 of file cxImage.cpp.
|
virtual |
Definition at line 331 of file cxImage.cpp.
|
virtual |
Definition at line 288 of file cxImage.cpp.
void cx::Image::startThresholdPreview | ( | const Eigen::Vector2d & | threshold | ) |
Definition at line 966 of file cxImage.cpp.
void cx::Image::stopThresholdPreview | ( | ) |
Definition at line 1020 of file cxImage.cpp.
|
signal |
emitted when image transfer functions in 2D or 3D are changed.
|
protectedvirtualslot |
Definition at line 275 of file cxImage.cpp.
|
signal |
emitted when the vktimagedata are invalidated and must be retrieved anew.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |