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.
CSOBaseModule(const std::string &type="CSOBaseModule", int numInImages=0, int numOutImages=0)
Standard constructor.
CSOGroup * generatorGetParentGroup(CSOList *csoList, bool useUndoRedo=false, bool generate=false)
Returns the parent CSOGroup according to current CSOGroup settings.
void generatorEmptyGroupOnDemand(CSOList *csoList)
Empties a CSOGroup on demand of the given CSOList with the set label.
CSO * generatorAddCSONoEvent(CSOList *csoList, bool useUndoRedo=true, bool sendEvent=false)
See generatorAddCSO, but no CSOGroup scope event is emitted. (So this method is faster!...
CSOGeneratorBase()
Default constructor.
CSO * generatorAddCSO(CSOList *csoList, bool useUndoRedo=true)
Vector3 getDefaultSeedPointColor() const override
Returns the set default seed point color for a new CSO.
StringField * _addCSOToGroupWithLabelFld
FloatField * _pathPointAlphaFld
The path point's alpha value. Default is 1.
BoolField * _emptyGroupBeforeGenerationFld
TypedEnumField< CSOAddToGroupModes > * _addCSOToGroupMode
Defines whether the CSOs are added to a CSOGroup and how the CSOGroup 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 CSOGroup.
FloatField * _pathPointWidthFld
The path point's line width. Default is 1.
CSOGroup * _getParentGroup(CSOList *csoList, bool useUndoRedo=false, bool generate=false)
Returns the parent CSOGroup according to current CSOGroup settings.
CSOGenerator(std::string type="CSOGenerator", int numInImg=0, int numOutImg=0)
Constructor.
CSO * _addCSONoEvent(CSOList *csoList, bool useUndoRedo=true)
See _addCSO, but without CSOGroup event. (This method is faster!).
CSO * _addCSO(CSOList *csoList, bool useUndoRedo=true)
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
int getAddCSOToGroupMode() const override
Returns the CSOGroup 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 CSOGroup.
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
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 CSOGroup 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.
#define ML_MODULE_CLASS_HEADER(className)
Tvec3< MLdouble > Vector3
A vector with three components of type double.