ml::CSOGenerator Class Reference

The CSOGenerator is the base class for all modules that generate CSOs, be it automatically or interactive. More...

#include <CSOGenerator.h>

Inheritance diagram for ml::CSOGenerator:

ml::CSOBaseModule ml::Module ml::FieldContainer ml::Base ml::CSOModificator ml::CSOProcessor ml::CSOBulgeProcessor ml::CSOFreehandProcessor ml::CSOIsoProcessor ml::CSOLiveWireProcessor ml::CSOModifyProcessor ml::CSOPrimitiveProcessor

List of all members.

Public Member Functions

 CSOGenerator (std::string type="CSOGenerator", int numInImg=0, int numOutImg=0)
 Constructor.
std::string getType ()
 Returns the type of the CSOGenerator.

Static Public Attributes

static const char * addCSOToGroupModeStrings [3]
 Strings for add to group mode enumerations.

Protected Member Functions

CSO_addCSO (CSOList *csoList, std::string groupLabel, bool useUndoRedo=true)
 Adds a new CSO to the CSOList and puts it into the group given by the label string.
CSOGroup_getParentGroup (CSOList *csoList, bool useUndoRedo=false, bool generate=false)
 Returns the parent group according to current group settings.
void _emptyGroupOnDemand (CSOList *csoList)
 Empties a group on demand of the given CSOList with the set label.
virtual ~CSOGenerator ()
 Destructor.

Protected Attributes

BoolField_emptyGroupBeforeGenerationFld
 If checked and a group name is provided, the group is emptied before a new generation.
EnumField_addCSOToGroupMode
 Defines if the CSOs are added to a group and how the group is identified.
StringField_addCSOToGroupWithLabelFld
 This label defines the group the generator should add its created CSOs to.
IntField_addCSOToGroupWithIdFld
 This id defines the group the generator should add its created CSOs to.
IntField_idFld
 The id of this processor.
EnumField_pathPointStyleFld
 The path point's line style (none, solid, dashed, dotted). Default is 'solid'.
FloatField_pathPointWidthFld
 The path point's line width. Default is 1.
ColorField_pathPointColorFld
 The path point's color. Default is yellow.
FloatField_pathPointAlphaFld
 The path point's alpha value. Default is 1.
EnumField_seedPointStyleFld
 The marker's mode (none, rect, circle). Default is 'rect'.
FloatField_seedPointSizeFld
 The marker's size. Default is 3.
ColorField_seedPointColorFld
 The marker's color. Default is green.
FloatField_seedPointAlphaFld
 The marker's alpha value. Default is 1.
EnumField_voxelWriteModeFld
 The CSO's voxel write mode (module, const, const plus id, id). Default is 'module'.
FloatField_voxelWriteValueFld
 The CSO's voxel write value. Default is 1024.


Detailed Description

The CSOGenerator is the base class for all modules that generate CSOs, be it automatically or interactive.

Basically it determines the type of the CSO and an id that can be used to associate CSOs with their generator.

Definition at line 31 of file CSOGenerator.h.


Constructor & Destructor Documentation

ml::CSOGenerator::CSOGenerator ( std::string  type = "CSOGenerator",
int  numInImg = 0,
int  numOutImg = 0 
)

Constructor.

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

Destructor.


Member Function Documentation

CSO* ml::CSOGenerator::_addCSO ( CSOList csoList,
std::string  groupLabel,
bool  useUndoRedo = true 
) [protected]

Adds a new CSO to the CSOList and puts it into the group given by the label string.

If the label string is empty, the new CSO is not put in any group. If no group exists with the given label, a new group is generated and the CSO gets associated with that. The method returns a pointer to the newly generated CSO if the according grouping rule allows that or NULL if no new CSO could be created for that particular group.

void ml::CSOGenerator::_emptyGroupOnDemand ( CSOList csoList  )  [protected]

Empties a group on demand of the given CSOList with the set label.

CSOGroup* ml::CSOGenerator::_getParentGroup ( CSOList csoList,
bool  useUndoRedo = false,
bool  generate = false 
) [protected]

Returns the parent group according to current group settings.

std::string ml::CSOGenerator::getType (  )  [inline]

Returns the type of the CSOGenerator.

Definition at line 40 of file CSOGenerator.h.


Member Data Documentation

Defines if the CSOs are added to a group and how the group is identified.

Definition at line 54 of file CSOGenerator.h.

This id defines the group the generator should add its created CSOs to.

If leaved blank, the CSO is not added to any group

Definition at line 62 of file CSOGenerator.h.

This label defines the group the generator should add its created CSOs to.

If leaved blank, the CSO is not added to any group

Definition at line 58 of file CSOGenerator.h.

If checked and a group name is provided, the group is emptied before a new generation.

Definition at line 51 of file CSOGenerator.h.

The id of this processor.

This can be used to distinguish similar processors from each other.

Definition at line 66 of file CSOGenerator.h.

The path point's alpha value. Default is 1.

Definition at line 75 of file CSOGenerator.h.

The path point's color. Default is yellow.

Definition at line 73 of file CSOGenerator.h.

The path point's line style (none, solid, dashed, dotted). Default is 'solid'.

Definition at line 69 of file CSOGenerator.h.

The path point's line width. Default is 1.

Definition at line 71 of file CSOGenerator.h.

The marker's alpha value. Default is 1.

Definition at line 84 of file CSOGenerator.h.

The marker's color. Default is green.

Definition at line 82 of file CSOGenerator.h.

The marker's size. Default is 3.

Definition at line 80 of file CSOGenerator.h.

The marker's mode (none, rect, circle). Default is 'rect'.

Definition at line 78 of file CSOGenerator.h.

The CSO's voxel write mode (module, const, const plus id, id). Default is 'module'.

Definition at line 87 of file CSOGenerator.h.

The CSO's voxel write value. Default is 1024.

Definition at line 89 of file CSOGenerator.h.

Strings for add to group mode enumerations.

Definition at line 43 of file CSOGenerator.h.


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

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