MeVisLabToolboxReference
|
Base class for processor modules; those provide mechanisms for an interactive generation of seed points and for an automatic computation of path points. More...
#include <CSOProcessor.h>
Public Member Functions | |
CSOProcessor (std::string type="CSOProcessor", int numInImg=0, int numOutImg=0) | |
Constructor. | |
virtual bool | process (CSOEvalEventView2DInfos view2DInfos, CSOEvalEventCSOInfos csoInfos) |
Processes the interaction events and interpolates the contours accordingly. | |
virtual void | draw (CSODrawView2DInfos view2DInfos, CSODrawCSOInfos csoInfos) |
Draws processor-specific geometry. | |
virtual bool | needsMemoryImage () |
Returns whether the processor need the current memory image for interpolation. | |
virtual void | setMemoryImage (float *imageData, int sizex, int sizey, int voxelPosZ, const Matrix4 &voxelToWorldMatrix, const Matrix4 &worldToVoxelMatrix, View2DSliceList *slicelist) |
Sets an image which can be used with an image based interpolation algorithm. | |
virtual bool | isCurrentlyGenerating () |
Returns whether the processor is currently generating a new contour. | |
virtual bool | isCurrentlyEditing () |
Returns whether the processor is currently editing an existing contour. | |
virtual bool | couldCloseCSO () |
Returns whether the processor could close an open CSO by the processor's rules. | |
CSOProcessorMode | getProcessorMode () |
Returns the mode of this processor. | |
CSOProcessorPickingMode | getPickingMode () |
Returns the picking mode of this processor. | |
virtual void | resetInteractionState () |
Sets back internal interaction state. | |
virtual void | triggerSetMouseCursor (SoView2D *view2d, bool shouldSetMouseCursor) |
Triggers the setting of the processor's default mouse cursor. | |
Protected Member Functions | |
virtual | ~CSOProcessor () |
Destructor. | |
Protected Attributes | |
BaseField * | _outProcessDataFld |
Field for connecting this processor to an editor. | |
CSOProcessorData | _processorData |
The processor data for data exchange. | |
CSOProcessorMode | _processorMode |
The mode of the processor. | |
CSOProcessorPickingMode | _pickingMode |
Base class for processor modules; those provide mechanisms for an interactive generation of seed points and for an automatic computation of path points.
Definition at line 35 of file CSOProcessor.h.
ml::CSOProcessor::CSOProcessor | ( | std::string | type = "CSOProcessor" , |
int | numInImg = 0 , |
||
int | numOutImg = 0 |
||
) |
Constructor.
virtual ml::CSOProcessor::~CSOProcessor | ( | ) | [protected, virtual] |
Destructor.
virtual bool ml::CSOProcessor::couldCloseCSO | ( | ) | [virtual] |
Returns whether the processor could close an open CSO by the processor's rules.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOLiveWireProcessor, and ml::CSOModifyProcessor.
virtual void ml::CSOProcessor::draw | ( | CSODrawView2DInfos | view2DInfos, |
CSODrawCSOInfos | csoInfos | ||
) | [virtual] |
Draws processor-specific geometry.
Reimplemented in ml::CSOTransformationProcessor.
CSOProcessorPickingMode ml::CSOProcessor::getPickingMode | ( | ) | [inline] |
Returns the picking mode of this processor.
Definition at line 69 of file CSOProcessor.h.
CSOProcessorMode ml::CSOProcessor::getProcessorMode | ( | ) | [inline] |
Returns the mode of this processor.
Definition at line 67 of file CSOProcessor.h.
virtual bool ml::CSOProcessor::isCurrentlyEditing | ( | ) | [virtual] |
Returns whether the processor is currently editing an existing contour.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, ml::CSOPrimitiveProcessor, and ml::CSOTransformationProcessor.
virtual bool ml::CSOProcessor::isCurrentlyGenerating | ( | ) | [virtual] |
Returns whether the processor is currently generating a new contour.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, ml::CSOPrimitiveProcessor, and ml::CSOTransformationProcessor.
virtual bool ml::CSOProcessor::needsMemoryImage | ( | ) | [virtual] |
Returns whether the processor need the current memory image for interpolation.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
virtual bool ml::CSOProcessor::process | ( | CSOEvalEventView2DInfos | view2DInfos, |
CSOEvalEventCSOInfos | csoInfos | ||
) | [virtual] |
Processes the interaction events and interpolates the contours accordingly.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, ml::CSOPrimitiveProcessor, and ml::CSOTransformationProcessor.
virtual void ml::CSOProcessor::resetInteractionState | ( | ) | [virtual] |
Sets back internal interaction state.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, ml::CSOPrimitiveProcessor, and ml::CSOTransformationProcessor.
virtual void ml::CSOProcessor::setMemoryImage | ( | float * | imageData, |
int | sizex, | ||
int | sizey, | ||
int | voxelPosZ, | ||
const Matrix4 & | voxelToWorldMatrix, | ||
const Matrix4 & | worldToVoxelMatrix, | ||
View2DSliceList * | slicelist | ||
) | [virtual] |
Sets an image which can be used with an image based interpolation algorithm.
Reimplemented in ml::CSOIsoProcessor, and ml::CSOLiveWireProcessor.
virtual void ml::CSOProcessor::triggerSetMouseCursor | ( | SoView2D * | view2d, |
bool | shouldSetMouseCursor | ||
) | [virtual] |
Triggers the setting of the processor's default mouse cursor.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, ml::CSOPrimitiveProcessor, and ml::CSOTransformationProcessor.
BaseField* ml::CSOProcessor::_outProcessDataFld [protected] |
Field for connecting this processor to an editor.
Definition at line 80 of file CSOProcessor.h.
Definition at line 90 of file CSOProcessor.h.
CSOProcessorData ml::CSOProcessor::_processorData [protected] |
The processor data for data exchange.
Definition at line 86 of file CSOProcessor.h.
CSOProcessorMode ml::CSOProcessor::_processorMode [protected] |
The mode of the processor.
Definition at line 88 of file CSOProcessor.h.