MeVisLabToolboxReference
|
Base class for modules that convert CSOs to voxel images. More...
#include <CSOConvertor.h>
Public Member Functions | |
CSOConvertor (int numInImages=1, int numOutImages=1) | |
Standard constructor. | |
Protected Member Functions | |
virtual | ~CSOConvertor () |
Standard destructor. | |
virtual void | activateAttachments () |
Initialize module after loading. | |
virtual void | handleNotification (Field *field) |
Called when input changes. | |
virtual void | calculateOutputImageProperties (int outIndex) |
Sets the properties of the output image. | |
virtual void | _calcOutSubImageMinMaxValue (double &minValue, double &maxValue, MLDataType &dType) |
Calculates the minimum and the maximum output image values, and the data type. | |
virtual void | _clear () |
Clears internal data and invalidates the output image. | |
virtual void | _process () |
Triggers the computation of the preprocessing. | |
void | _setBoundingBoxFields (const CSOBoundingBox &voxelBB, const CSOBoundingBox &worldBB) |
Sets the given vectors as bounding box fields to the GUI. | |
Static Protected Member Functions | |
static void | _csoListNotifcationCB (void *userData, int notificationFlag) |
Can be called from anywhere from within the network. | |
Protected Attributes | |
BaseField * | _inCSOListFld |
The input CSOList (which is to be interpolated). | |
NotifyField * | _clearFld |
If pressed the output image is invalidated and internal data is cleared. | |
FloatField * | _foregroundValueFld |
The foreground (object) image value. | |
FloatField * | _backgroundValueFld |
The background image value. | |
BoolField * | _copyInputImageFld |
Shall the input image be copied? | |
BoolField * | _fillSurfaceFld |
Shall the interpolated surface be filled? | |
BoolField * | _useImageValuesFld |
Shall the image's values be used? | |
BoolField * | _listenInteractionNotificationsFld |
Shall the module listen to interaction notifications? | |
BoolField * | _listenInteractionFinishedFld |
Shall the module listen to finished interaction notifications? | |
IntField * | _boundingBoxMarginFld |
The margin for the bounding box. Default is 0 (no margin). | |
Vector3Field * | _startVoxelBoundingBoxFld |
Start of the voxel bounding box. | |
Vector3Field * | _endVoxelBoundingBoxFld |
End of the voxel bounding box. | |
Vector3Field * | _startWorldBoundingBoxFld |
Start of the world bounding box. | |
Vector3Field * | _endWorldBoundingBoxFld |
End of the world bounding box. | |
StringField * | _voxelBoundingBoxStringFld |
A string representing the starting and the ending points (in 6D) of the voxel bounding box. | |
CSOList * | _inCSOList |
The input CSOList (the original one). | |
bool | _hasValidVoxelData |
Is the interpolation compound up to date? | |
bool | _isInNotificationCB |
Locking variable for the observer mechanism. | |
bool | _canProduceOutputImage |
Can the module produce a valid output image? | |
bool | _shouldAugmentBoundingBoxZ |
Should the bounding box be augmented in z-direction by 1? |
Base class for modules that convert CSOs to voxel images.
Definition at line 24 of file CSOConvertor.h.
ml::CSOConvertor::CSOConvertor | ( | int | numInImages = 1 , |
int | numOutImages = 1 |
||
) |
Standard constructor.
virtual ml::CSOConvertor::~CSOConvertor | ( | ) | [protected, virtual] |
Standard destructor.
virtual void ml::CSOConvertor::_calcOutSubImageMinMaxValue | ( | double & | minValue, |
double & | maxValue, | ||
MLDataType & | dType | ||
) | [protected, virtual] |
Calculates the minimum and the maximum output image values, and the data type.
Needs to be overwritten in child classes.
virtual void ml::CSOConvertor::_clear | ( | ) | [protected, virtual] |
Clears internal data and invalidates the output image.
static void ml::CSOConvertor::_csoListNotifcationCB | ( | void * | userData, |
int | notificationFlag | ||
) | [static, protected] |
Can be called from anywhere from within the network.
virtual void ml::CSOConvertor::_process | ( | ) | [protected, virtual] |
Triggers the computation of the preprocessing.
void ml::CSOConvertor::_setBoundingBoxFields | ( | const CSOBoundingBox & | voxelBB, |
const CSOBoundingBox & | worldBB | ||
) | [protected] |
Sets the given vectors as bounding box fields to the GUI.
virtual void ml::CSOConvertor::activateAttachments | ( | ) | [protected, virtual] |
Initialize module after loading.
Reimplemented from ml::CSOBaseModule.
virtual void ml::CSOConvertor::calculateOutputImageProperties | ( | int | outIndex | ) | [protected, virtual] |
Sets the properties of the output image.
Reimplemented from ml::Module.
virtual void ml::CSOConvertor::handleNotification | ( | Field * | field | ) | [protected, virtual] |
Called when input changes.
Reimplemented from ml::CSOBaseModule.
FloatField* ml::CSOConvertor::_backgroundValueFld [protected] |
The background image value.
Definition at line 61 of file CSOConvertor.h.
IntField* ml::CSOConvertor::_boundingBoxMarginFld [protected] |
The margin for the bounding box. Default is 0 (no margin).
Definition at line 77 of file CSOConvertor.h.
bool ml::CSOConvertor::_canProduceOutputImage [protected] |
Can the module produce a valid output image?
Definition at line 102 of file CSOConvertor.h.
NotifyField* ml::CSOConvertor::_clearFld [protected] |
If pressed the output image is invalidated and internal data is cleared.
Definition at line 56 of file CSOConvertor.h.
BoolField* ml::CSOConvertor::_copyInputImageFld [protected] |
Shall the input image be copied?
Definition at line 63 of file CSOConvertor.h.
Vector3Field* ml::CSOConvertor::_endVoxelBoundingBoxFld [protected] |
End of the voxel bounding box.
Definition at line 82 of file CSOConvertor.h.
Vector3Field* ml::CSOConvertor::_endWorldBoundingBoxFld [protected] |
End of the world bounding box.
Definition at line 86 of file CSOConvertor.h.
BoolField* ml::CSOConvertor::_fillSurfaceFld [protected] |
Shall the interpolated surface be filled?
Definition at line 66 of file CSOConvertor.h.
FloatField* ml::CSOConvertor::_foregroundValueFld [protected] |
The foreground (object) image value.
Definition at line 59 of file CSOConvertor.h.
bool ml::CSOConvertor::_hasValidVoxelData [protected] |
Is the interpolation compound up to date?
Definition at line 98 of file CSOConvertor.h.
CSOList* ml::CSOConvertor::_inCSOList [protected] |
The input CSOList (the original one).
Definition at line 96 of file CSOConvertor.h.
BaseField* ml::CSOConvertor::_inCSOListFld [protected] |
The input CSOList (which is to be interpolated).
Definition at line 53 of file CSOConvertor.h.
bool ml::CSOConvertor::_isInNotificationCB [protected] |
Locking variable for the observer mechanism.
Definition at line 100 of file CSOConvertor.h.
BoolField* ml::CSOConvertor::_listenInteractionFinishedFld [protected] |
Shall the module listen to finished interaction notifications?
Definition at line 74 of file CSOConvertor.h.
Shall the module listen to interaction notifications?
Definition at line 72 of file CSOConvertor.h.
bool ml::CSOConvertor::_shouldAugmentBoundingBoxZ [protected] |
Should the bounding box be augmented in z-direction by 1?
Definition at line 104 of file CSOConvertor.h.
Vector3Field* ml::CSOConvertor::_startVoxelBoundingBoxFld [protected] |
Start of the voxel bounding box.
Definition at line 80 of file CSOConvertor.h.
Vector3Field* ml::CSOConvertor::_startWorldBoundingBoxFld [protected] |
Start of the world bounding box.
Definition at line 84 of file CSOConvertor.h.
BoolField* ml::CSOConvertor::_useImageValuesFld [protected] |
Shall the image's values be used?
Definition at line 69 of file CSOConvertor.h.
StringField* ml::CSOConvertor::_voxelBoundingBoxStringFld [protected] |
A string representing the starting and the ending points (in 6D) of the voxel bounding box.
Definition at line 90 of file CSOConvertor.h.