NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
MITK data-node property suitable for holding an ITK Region, consisting of a "valid" flag, plus 6 parameters containing the index and size, as a simple vector of integers. More...
Public Types | |
typedef std::vector< int > | ParametersType |
Parameters are 6 integers, corresponding to index[X, Y, Z] and size[X, Y, Z]. More... | |
Public Member Functions | |
mitkClassMacro (ITKRegionParametersDataNodeProperty, mitk::BaseProperty) static Pointer New() | |
const ParametersType & | GetITKRegionParameters () const |
Get the region parameters from this property object where index[X, Y, Z] = [0-2], and size[X, Y, Z] = [3-5]. More... | |
void | SetITKRegionParameters (const ParametersType ¶meters) |
Set the region parameters on this property object where index[X, Y, Z] = [0-2], and size[X, Y, Z] = [3-5]. More... | |
bool | HasVolume () const |
Returns true of the size of the volume is at least 1 voxel (eg. 1x1x1). More... | |
void | SetIndex (int x, int y, int z) |
Sets the index. More... | |
void | SetSize (int x, int y, int z) |
Sets the size. More... | |
bool | IsValid () const |
Gets the 'valid' status flag. More... | |
void | SetValid (bool valid) |
Sets the 'valid' status flag. More... | |
virtual std::string | GetValueAsString () const override |
Defined in base class, returns the current value as a string for display in property view. More... | |
virtual void | Identity () |
Method to set these parameters back to identity, which is [false, 0, 0, 0, 0, 0, 0]. More... | |
Protected Member Functions | |
virtual | ~ITKRegionParametersDataNodeProperty () |
ITKRegionParametersDataNodeProperty () | |
ITKRegionParametersDataNodeProperty (const ITKRegionParametersDataNodeProperty &other) | |
virtual bool | IsEqual (const mitk::BaseProperty &property) const override |
virtual bool | Assign (const mitk::BaseProperty &) override |
MITK data-node property suitable for holding an ITK Region, consisting of a "valid" flag, plus 6 parameters containing the index and size, as a simple vector of integers.
typedef std::vector<int> niftk::ITKRegionParametersDataNodeProperty::ParametersType |
Parameters are 6 integers, corresponding to index[X, Y, Z] and size[X, Y, Z].
|
protectedvirtual |
|
protected |
|
protected |
|
overrideprotectedvirtual |
const ITKRegionParametersDataNodeProperty::ParametersType & niftk::ITKRegionParametersDataNodeProperty::GetITKRegionParameters | ( | ) | const |
Get the region parameters from this property object where index[X, Y, Z] = [0-2], and size[X, Y, Z] = [3-5].
|
overridevirtual |
Defined in base class, returns the current value as a string for display in property view.
bool niftk::ITKRegionParametersDataNodeProperty::HasVolume | ( | ) | const |
Returns true of the size of the volume is at least 1 voxel (eg. 1x1x1).
|
virtual |
Method to set these parameters back to identity, which is [false, 0, 0, 0, 0, 0, 0].
|
overrideprotectedvirtual |
bool niftk::ITKRegionParametersDataNodeProperty::IsValid | ( | ) | const |
Gets the 'valid' status flag.
niftk::ITKRegionParametersDataNodeProperty::mitkClassMacro | ( | ITKRegionParametersDataNodeProperty | , |
mitk::BaseProperty | |||
) |
void niftk::ITKRegionParametersDataNodeProperty::SetITKRegionParameters | ( | const ParametersType & | parameters | ) |
Set the region parameters on this property object where index[X, Y, Z] = [0-2], and size[X, Y, Z] = [3-5].
void niftk::ITKRegionParametersDataNodeProperty::SetValid | ( | bool | valid | ) |
Sets the 'valid' status flag.