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::Module ml::FieldContainer ml::Base

List of all members.

Public Member Functions

 CSOFreehandProcessor ()
 Constructor.
virtual bool 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)
 Evaluates 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, float *voxelToWorldMatrix, float *worldToVoxelMatrix, View2DSliceList *slicelist)
 Sets an image which can be used with an image based interpolation algorithm.
bool isCurrentlyGenerating ()
 Returns if the processor is currently generating a new contour.
bool isCurrentlyEditing ()
 Returns if the processor is currently editing an existing contour.
bool couldCloseCSO ()
 Returns if 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 if 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 if the processor is currently editing an existing contour.

Reimplemented from ml::CSOProcessor.

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

Returns if the processor is currently generating a new contour.

Reimplemented from ml::CSOProcessor.

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

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

Reimplemented from ml::CSOProcessor.

virtual bool ml::CSOFreehandProcessor::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]

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:

Generated on Sat Sep 3 18:39:42 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8