MeVisLabToolboxReference
ml::CSOFreehandProcessor Class Reference

Module which allows for an interactive generation of freehand contours with linear or spline interpolation, and the editing of existing freehand contours. More...

#include <CSOFreehandProcessor.h>

Inheritance diagram for ml::CSOFreehandProcessor:
ml::CSOProcessor ml::CSOGenerator ml::CSOBaseModule ml::CSOGeneratorBase ml::Module ml::FieldContainer ml::Base

List of all members.

Public Member Functions

 CSOFreehandProcessor ()
 Constructor.
virtual bool process (CSOEvalEventView2DInfos view2DInfos, CSOEvalEventCSOInfos csoInfos)
 Evaluates the interaction events and interpolates the contours accordingly.
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, float *voxelToWorldMatrix, float *worldToVoxelMatrix, View2DSliceList *slicelist)
 Sets an image which can be used with an image based interpolation algorithm.
bool isCurrentlyGenerating ()
 Returns whether the processor is currently generating a new contour.
bool isCurrentlyEditing ()
 Returns whether the processor is currently editing an existing contour.
bool couldCloseCSO ()
 Returns whether the processor could close an open CSO by the processor's rules.
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 ~CSOFreehandProcessor ()
 Destructor.
virtual void handleNotification (Field *field)
 Handles field changes: here, only the creation mode field change is evaluated and leads to a setting of internal parameters.
virtual void activateAttachments ()
 Method is called after module creation and after setting saved field values.

Detailed Description

Module which allows for an interactive generation of freehand contours with linear or spline interpolation, and the editing of existing freehand contours.

Definition at line 66 of file CSOFreehandProcessor.h.


Constructor & Destructor Documentation

ml::CSOFreehandProcessor::CSOFreehandProcessor ( )

Constructor.

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

Destructor.


Member Function Documentation

virtual void ml::CSOFreehandProcessor::activateAttachments ( ) [protected, virtual]

Method is called after module creation and after setting saved field values.

Reimplemented from ml::CSOBaseModule.

bool ml::CSOFreehandProcessor::couldCloseCSO ( ) [virtual]

Returns whether the processor could close an open CSO by the processor's rules.

Reimplemented from ml::CSOProcessor.

virtual void ml::CSOFreehandProcessor::handleNotification ( Field field) [protected, virtual]

Handles field changes: here, only the creation mode field change is evaluated and leads to a setting of internal parameters.

Reimplemented from ml::CSOBaseModule.

bool ml::CSOFreehandProcessor::isCurrentlyEditing ( ) [virtual]

Returns whether the processor is currently editing an existing contour.

Reimplemented from ml::CSOProcessor.

bool ml::CSOFreehandProcessor::isCurrentlyGenerating ( ) [virtual]

Returns whether the processor is currently generating a new contour.

Reimplemented from ml::CSOProcessor.

virtual bool ml::CSOFreehandProcessor::needsMemoryImage ( ) [virtual]

Returns whether the processor need the current memory image for interpolation.

Reimplemented from ml::CSOProcessor.

virtual bool ml::CSOFreehandProcessor::process ( CSOEvalEventView2DInfos  view2DInfos,
CSOEvalEventCSOInfos  csoInfos 
) [virtual]

Evaluates the interaction events and interpolates the contours accordingly.

Returns 'true' if anything has changed.

Reimplemented from ml::CSOProcessor.

virtual void ml::CSOFreehandProcessor::resetInteractionState ( ) [virtual]

Sets back internal interaction state.

Reimplemented from ml::CSOProcessor.

virtual void ml::CSOFreehandProcessor::setMemoryImage ( float *  imageData,
int  sizex,
int  sizey,
int  voxelPosZ,
float *  voxelToWorldMatrix,
float *  worldToVoxelMatrix,
View2DSliceList slicelist 
) [virtual]

Sets an image which can be used with an image based interpolation algorithm.

virtual void ml::CSOFreehandProcessor::triggerSetMouseCursor ( SoView2D view2d,
bool  shouldSetMouseCursor 
) [virtual]

Triggers the setting of the processor's default mouse cursor.

Reimplemented from ml::CSOProcessor.


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