13 #ifndef CSOPROCESSOR_H
14 #define CSOPROCESSOR_H
47 CSOProcessor(std::string type=
"CSOProcessor",
int numInImg=0,
int numOutImg=0);
61 virtual void setMemoryImage(
float* imageData,
int sizex,
int sizey,
int voxelPosZ,
62 const Matrix4& voxelToWorldMatrix,
const Matrix4& worldToVoxelMatrix,
#define SOCSO_EXPORT
Header file for system independent resolution.
SoView2D is a 2D viewer for image data.
a list that holds all View2DSlice objects (lazily created) of a SoView2D
Field to encapsulate a pointer to an ML base object.
The CSOGenerator is the base class for all modules that generate CSOs, be it automatically or interac...
The CSOProcesorData provides the network data interchange object for processing interaction events an...
Base class for processor modules; those provide mechanisms for an interactive generation of seed poin...
virtual void resetInteractionState()
Sets back internal interaction state.
virtual bool process(CSOEvalEventView2DInfos view2DInfos, CSOEvalEventCSOInfos csoInfos)
Processes the interaction events and interpolates the contours accordingly.
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 void draw(CSODrawView2DInfos view2DInfos, CSODrawCSOInfos csoInfos)
Draws processor-specific geometry.
virtual bool needsMemoryImage()
Returns whether the processor need the current memory image for interpolation.
CSOProcessorPickingMode _pickingMode
CSOProcessor(std::string type="CSOProcessor", int numInImg=0, int numOutImg=0)
Constructor.
virtual void triggerSetMouseCursor(SoView2D *view2d, bool shouldSetMouseCursor)
Triggers the setting of the processor's default mouse cursor.
CSOProcessorData _processorData
The processor data for data exchange.
CSOProcessorMode getProcessorMode()
Returns the mode of this processor.
~CSOProcessor() override
Destructor.
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.
CSOProcessorMode _processorMode
The mode of the processor.
virtual bool couldCloseCSO()
Returns whether the processor could close an open CSO by the processor's rules.
CSOProcessorPickingMode getPickingMode()
Returns the picking mode of this processor.
BaseField * _outProcessDataFld
Field for connecting this processor to an editor.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
CSOProcessorMode
Enumeration of Processor modes.
CSOProcessorPickingMode
Enumeration of processor picking mode.