#include <CSOProcessor.h>

Public Member Functions | |
| CSOProcessor (std::string type="CSOProcessor", int numInImg=0, int numOutImg=0) | |
| Constructor. | |
| virtual bool | process (CSOList *csoList, Vector3 ¤tHitPoint, int hitMode, CSO *recentlySelectedCSO, CSOSeedPoint *recentlySelectedSeedPoint, CSOPathPoints *recentlySelectedPathPoints, SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase, CSOBoundingBox slabBB, int timepointindex, bool deleteSeedPoint) |
| Processes the interaction events and interpolates the contours accordingly. | |
| virtual bool | needsMemoryImage () |
| Returns if 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 if the processor is currently generating a new contour. | |
| virtual bool | isCurrentlyEditing () |
| Returns if the processor is currently editing an existing contour. | |
| virtual bool | couldCloseCSO () |
| Returns if 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 processors 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 |
Definition at line 34 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 if the processor could close an open CSO by the processor's rules.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOLiveWireProcessor, and ml::CSOModifyProcessor.
| CSOProcessorPickingMode ml::CSOProcessor::getPickingMode | ( | ) | [inline] |
| CSOProcessorMode ml::CSOProcessor::getProcessorMode | ( | ) | [inline] |
| virtual bool ml::CSOProcessor::isCurrentlyEditing | ( | ) | [virtual] |
Returns if the processor is currently editing an existing contour.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
| virtual bool ml::CSOProcessor::isCurrentlyGenerating | ( | ) | [virtual] |
Returns if the processor is currently generating a new contour.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
| virtual bool ml::CSOProcessor::needsMemoryImage | ( | ) | [virtual] |
Returns if 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 | ( | CSOList * | csoList, | |
| Vector3 & | currentHitPoint, | |||
| int | hitMode, | |||
| CSO * | recentlySelectedCSO, | |||
| CSOSeedPoint * | recentlySelectedSeedPoint, | |||
| CSOPathPoints * | recentlySelectedPathPoints, | |||
| SoView2D * | view2d, | |||
| View2DSliceList * | slicelist, | |||
| View2DEvent * | ec, | |||
| View2DEventPhase | phase, | |||
| CSOBoundingBox | slabBB, | |||
| int | timepointindex, | |||
| bool | deleteSeedPoint | |||
| ) | [virtual] |
Processes the interaction events and interpolates the contours accordingly.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
| virtual void ml::CSOProcessor::resetInteractionState | ( | ) | [virtual] |
Sets back internal interaction state.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
| 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 processors default mouse cursor.
Reimplemented in ml::CSOBulgeProcessor, ml::CSOFreehandProcessor, ml::CSOIsoProcessor, ml::CSOLiveWireProcessor, ml::CSOModifyProcessor, and ml::CSOPrimitiveProcessor.
BaseField* ml::CSOProcessor::_outProcessDataFld [protected] |
Definition at line 95 of file CSOProcessor.h.
CSOProcessorData ml::CSOProcessor::_processorData [protected] |
CSOProcessorMode ml::CSOProcessor::_processorMode [protected] |
1.5.8