MeVisLabToolboxReference
ml::CSOConvertor Class Reference

Base class for modules that convert CSOs to voxel images. More...

#include <CSOConvertor.h>

Inheritance diagram for ml::CSOConvertor:
ml::CSOBaseModule ml::Module ml::FieldContainer ml::Base

List of all members.

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?

Detailed Description

Base class for modules that convert CSOs to voxel images.

Definition at line 24 of file CSOConvertor.h.


Constructor & Destructor Documentation

ml::CSOConvertor::CSOConvertor ( int  numInImages = 1,
int  numOutImages = 1 
)

Standard constructor.

virtual ml::CSOConvertor::~CSOConvertor ( ) [protected, virtual]

Standard destructor.


Member Function Documentation

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.


Member Data Documentation

The background image value.

Definition at line 61 of file CSOConvertor.h.

The margin for the bounding box. Default is 0 (no margin).

Definition at line 77 of file CSOConvertor.h.

Can the module produce a valid output image?

Definition at line 102 of file CSOConvertor.h.

If pressed the output image is invalidated and internal data is cleared.

Definition at line 56 of file CSOConvertor.h.

Shall the input image be copied?

Definition at line 63 of file CSOConvertor.h.

End of the voxel bounding box.

Definition at line 82 of file CSOConvertor.h.

End of the world bounding box.

Definition at line 86 of file CSOConvertor.h.

Shall the interpolated surface be filled?

Definition at line 66 of file CSOConvertor.h.

The foreground (object) image value.

Definition at line 59 of file CSOConvertor.h.

Is the interpolation compound up to date?

Definition at line 98 of file CSOConvertor.h.

The input CSOList (the original one).

Definition at line 96 of file CSOConvertor.h.

The input CSOList (which is to be interpolated).

Definition at line 53 of file CSOConvertor.h.

Locking variable for the observer mechanism.

Definition at line 100 of file CSOConvertor.h.

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.

Should the bounding box be augmented in z-direction by 1?

Definition at line 104 of file CSOConvertor.h.

Start of the voxel bounding box.

Definition at line 80 of file CSOConvertor.h.

Start of the world bounding box.

Definition at line 84 of file CSOConvertor.h.

Shall the image's values be used?

Definition at line 69 of file CSOConvertor.h.

A string representing the starting and the ending points (in 6D) of the voxel bounding box.

Definition at line 90 of file CSOConvertor.h.


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