34 CSOGenerator(std::string type=
"CSOGenerator",
int numInImg=0,
int numOutImg=0);
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Field to encapsulate a boolean value.
bool getBoolValue() const
Returns the value of the field as a boolean.
Base class for CSOModules.
std::string _type
The processor type as a string.
ML_MODULE_CLASS_HEADER(CSOBaseModule)
CSO * generatorAddCSO(CSOList *csoList, bool useUndoRedo=true)
Adds a new CSO to the CSOList.
CSO * generatorAddCSONoEvent(CSOList *csoList, bool useUndoRedo=true, bool sendEvent=false)
See generatorAddCSO, but no group scope event is emitted. (So this method is faster!...
void generatorEmptyGroupOnDemand(CSOList *csoList)
Empties a group on demand of the given CSOList with the set label.
CSOGroup * generatorGetParentGroup(CSOList *csoList, bool useUndoRedo=false, bool generate=false)
Returns the parent group according to current group settings.
The CSOGenerator is the base class for all modules that generate CSOs, be it automatically or interac...
IntField * _idFld
The id of this processor.
Vector3 getDefaultSeedPointColor() const override
Returns the set default seed point color for a new CSO.
StringField * _addCSOToGroupWithLabelFld
This label defines the group the generator should add its created CSOs to.
FloatField * _pathPointAlphaFld
The path point's alpha value. Default is 1.
CSO * _addCSO(CSOList *csoList, bool useUndoRedo=true)
Adds a new CSO to the CSOList.
CSO * _addCSONoEvent(CSOList *csoList, bool useUndoRedo=true)
See _addCSO, but without group event. (This method is faster!).
BoolField * _emptyGroupBeforeGenerationFld
If checked and a group name is provided, the group is emptied before a new generation.
CSOGroup * _getParentGroup(CSOList *csoList, bool useUndoRedo=false, bool generate=false)
Returns the parent group according to current group settings.
TypedEnumField< CSOAddToGroupModes > * _addCSOToGroupMode
Defines if the CSOs are added to a group and how the group is identified.
int getModuleCreatorId() const override
Returns the module's creator id.
FloatField * _seedPointAlphaFld
The marker's alpha value. Default is 1.
~CSOGenerator() override
Destructor.
int getDefaultVoxelWriteMode() const override
Returns the set default voxel write mode for a new CSO.
TypedEnumField< CSOSeedPointStyle > * _seedPointStyleFld
The marker's mode (none, rect, circle). Default is 'rect'.
Vector3 getDefaultPathPointColor() const override
Returns the set default path point color for a new CSO.
TypedEnumField< CSOPathPointsStyle > * _pathPointStyleFld
The path point's line style (none, solid, dashed, dotted). Default is 'solid'.
std::string getAddCSOToGroupLabel() const override
Returns the label string of a target group.
FloatField * _pathPointWidthFld
The path point's line width. Default is 1.
CSOGenerator(std::string type="CSOGenerator", int numInImg=0, int numOutImg=0)
Constructor.
float getDefaultPathPointAlpha() const override
Returns the set default path point alpha for a new CSO.
ColorField * _seedPointColorFld
The marker's color. Default is green.
int getDefaultSeedPointStyle() const override
Returns the set default seed point style for a new CSO.
bool getShouldEmptyBeforeGeneration() const override
Returns whether the module should empty a group before generating CSOs into it.
int getAddCSOToGroupMode() const override
Returns the group generation mode.
float getDefaultSeedPointSize() const override
Returns the set default seed point size for a new CSO.
FloatField * _seedPointSizeFld
The marker's size. Default is 3.
FloatField * _voxelWriteValueFld
The CSO's voxel write value. Default is 1024.
TypedEnumField< CSOVoxelWriteModes > * _voxelWriteModeFld
The CSO's voxel write mode (module, const, const plus id, id). Default is 'module'.
int getAddCSOToGroupId() const override
Returns the id of a target group.
int getDefaultPathPointStyle() const override
Returns the set default path point style for a new CSO.
float getDefaultSeedPointAlpha() const override
Returns the set default seed point alpha for a new CSO.
IntField * _addCSOToGroupWithIdFld
This id defines the group the generator should add its created CSOs to.
std::string getType() const
Returns the type of the CSOGenerator.
std::string getModuleType() const override
Returns the module's type string.
void _emptyGroupOnDemand(CSOList *csoList)
Empties a group on demand of the given CSOList with the set label.
float getDefaultPathPointWidth() const override
Returns the set default path point width for a new CSO.
float getDefaultVoxelWriteValue() const override
Returns the set default voxel write value for a new CSO.
ColorField * _pathPointColorFld
The path point's color. Default is yellow.
A CSOGroup comprises a number of CSOs, which themselves can be in a number of different CSOGroups.
A CSOList comprises a number of CSOs and CSOGroups and is the central object for contour segmentation...
The CSO represents a contour segmentation object.
Field to encapsulate a vector of three float values representing an (RGB) color with all properties o...
Field to encapsulate a float value.
float getFloatValue() const
Returns the value of the field.
Field to encapsulate an integer value.
MLint getIntValue() const
Returns the value of the field as an MLint.
Field to encapsulate a string value.
std::string getStringValue() const override
Returns the value of the field as a string value setStringValue must be able to reinterpret this retu...
EnumType getEnumValue() const
Returns the current enum value.
const Vector3 & getVector3Value() const
Returns the value of the field.