MeVisLabToolboxReference
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::CSOGeneratorBase ml::Module ml::FieldContainer ml::Base ml::CSOModificator ml::CSOProcessor ml::CSOBulgeProcessor ml::CSOFreehandProcessor ml::CSOIsoProcessor ml::CSOLiveWireProcessor ml::CSOModifyProcessor ml::CSOPrimitiveProcessor ml::CSOTransformationProcessor

List of all members.

Public Member Functions

 CSOGenerator (std::string type="CSOGenerator", int numInImg=0, int numOutImg=0)
 Constructor.
std::string getType () const
 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 int getModuleCreatorId () const
 Returns the module's creator id.
virtual std::string getModuleType () const
 Returns the module's type string.
virtual bool getShouldEmptyBeforeGeneration () const
 Returns whether the module should empty a group before generating CSOs into it.
virtual int getAddCSOToGroupMode () const
 Returns the group generation mode.
virtual std::string getAddCSOToGroupLabel () const
 Returns the label string of a target group.
virtual int getAddCSOToGroupId () const
 Returns the id of a target group.
virtual int getDefaultPathPointStyle () const
 Returns the set default path point style for a new CSO.
virtual float getDefaultPathPointWidth () const
 Returns the set default path point width for a new CSO.
virtual Vector3 getDefaultPathPointColor () const
 Returns the set default path point color for a new CSO.
virtual float getDefaultPathPointAlpha () const
 Returns the set default path point alpha for a new CSO.
virtual int getDefaultSeedPointStyle () const
 Returns the set default seed point style for a new CSO.
virtual float getDefaultSeedPointSize () const
 Returns the set default seed point size for a new CSO.
virtual Vector3 getDefaultSeedPointColor () const
 Returns the set default seed point color for a new CSO.
virtual float getDefaultSeedPointAlpha () const
 Returns the set default seed point alpha for a new CSO.
virtual int getDefaultVoxelWriteMode () const
 Returns the set default voxel write mode for a new CSO.
virtual float getDefaultVoxelWriteValue () const
 Returns the set default voxel write value for a new CSO.
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 24 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 
) [inline, 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.

Definition at line 105 of file CSOGenerator.h.

References ml::CSOGeneratorBase::generatorAddCSO().

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

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

Definition at line 109 of file CSOGenerator.h.

References ml::CSOGeneratorBase::generatorEmptyGroupOnDemand().

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

Returns the parent group according to current group settings.

Definition at line 107 of file CSOGenerator.h.

References ml::CSOGeneratorBase::generatorGetParentGroup().

virtual int ml::CSOGenerator::getAddCSOToGroupId ( ) const [inline, protected, virtual]

Returns the id of a target group.

Implements ml::CSOGeneratorBase.

Definition at line 124 of file CSOGenerator.h.

virtual std::string ml::CSOGenerator::getAddCSOToGroupLabel ( ) const [inline, protected, virtual]

Returns the label string of a target group.

Implements ml::CSOGeneratorBase.

Definition at line 122 of file CSOGenerator.h.

virtual int ml::CSOGenerator::getAddCSOToGroupMode ( ) const [inline, protected, virtual]

Returns the group generation mode.

Implements ml::CSOGeneratorBase.

Definition at line 120 of file CSOGenerator.h.

virtual float ml::CSOGenerator::getDefaultPathPointAlpha ( ) const [inline, protected, virtual]

Returns the set default path point alpha for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 133 of file CSOGenerator.h.

virtual Vector3 ml::CSOGenerator::getDefaultPathPointColor ( ) const [inline, protected, virtual]

Returns the set default path point color for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 131 of file CSOGenerator.h.

virtual int ml::CSOGenerator::getDefaultPathPointStyle ( ) const [inline, protected, virtual]

Returns the set default path point style for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 127 of file CSOGenerator.h.

virtual float ml::CSOGenerator::getDefaultPathPointWidth ( ) const [inline, protected, virtual]

Returns the set default path point width for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 129 of file CSOGenerator.h.

virtual float ml::CSOGenerator::getDefaultSeedPointAlpha ( ) const [inline, protected, virtual]

Returns the set default seed point alpha for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 142 of file CSOGenerator.h.

virtual Vector3 ml::CSOGenerator::getDefaultSeedPointColor ( ) const [inline, protected, virtual]

Returns the set default seed point color for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 140 of file CSOGenerator.h.

virtual float ml::CSOGenerator::getDefaultSeedPointSize ( ) const [inline, protected, virtual]

Returns the set default seed point size for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 138 of file CSOGenerator.h.

virtual int ml::CSOGenerator::getDefaultSeedPointStyle ( ) const [inline, protected, virtual]

Returns the set default seed point style for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 136 of file CSOGenerator.h.

virtual int ml::CSOGenerator::getDefaultVoxelWriteMode ( ) const [inline, protected, virtual]

Returns the set default voxel write mode for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 145 of file CSOGenerator.h.

virtual float ml::CSOGenerator::getDefaultVoxelWriteValue ( ) const [inline, protected, virtual]

Returns the set default voxel write value for a new CSO.

Implements ml::CSOGeneratorBase.

Definition at line 147 of file CSOGenerator.h.

virtual int ml::CSOGenerator::getModuleCreatorId ( ) const [inline, protected, virtual]

Returns the module's creator id.

Implements ml::CSOGeneratorBase.

Definition at line 112 of file CSOGenerator.h.

virtual std::string ml::CSOGenerator::getModuleType ( ) const [inline, protected, virtual]

Returns the module's type string.

Implements ml::CSOGeneratorBase.

Definition at line 114 of file CSOGenerator.h.

virtual bool ml::CSOGenerator::getShouldEmptyBeforeGeneration ( ) const [inline, protected, virtual]

Returns whether the module should empty a group before generating CSOs into it.

Implements ml::CSOGeneratorBase.

Definition at line 118 of file CSOGenerator.h.

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

Returns the type of the CSOGenerator.

Definition at line 33 of file CSOGenerator.h.

References ml::CSOBaseModule::_type.


Member Data Documentation

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

Definition at line 47 of file CSOGenerator.h.

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

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

Definition at line 55 of file CSOGenerator.h.

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

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

Definition at line 51 of file CSOGenerator.h.

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

Definition at line 44 of file CSOGenerator.h.

The id of this processor.

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

Definition at line 59 of file CSOGenerator.h.

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

Definition at line 68 of file CSOGenerator.h.

The path point's color. Default is yellow.

Definition at line 66 of file CSOGenerator.h.

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

Definition at line 62 of file CSOGenerator.h.

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

Definition at line 64 of file CSOGenerator.h.

The marker's alpha value. Default is 1.

Definition at line 77 of file CSOGenerator.h.

The marker's color. Default is green.

Definition at line 75 of file CSOGenerator.h.

The marker's size. Default is 3.

Definition at line 73 of file CSOGenerator.h.

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

Definition at line 71 of file CSOGenerator.h.

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

Definition at line 80 of file CSOGenerator.h.

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

Definition at line 82 of file CSOGenerator.h.

Strings for add to group mode enumerations.

Definition at line 36 of file CSOGenerator.h.


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