#include <CSOGroup.h>
Public Member Functions | |
| CSOGroup () | |
| Constructor. | |
| CSOGroup (CSOList *csoList) | |
| Constructor, takes a pointer to the embracing CSOList as an argument. | |
| CSOGroup (const CSOGroup &group) | |
| Copy constructor. | |
| ~CSOGroup () | |
| Destructor. | |
| CSOGroupRules & | getRules () |
| Return the rules for this CSOGroup. | |
| void | groupChanged () |
| Marks this Group as changed (e.g. if a CSO has been added, removed or changed). | |
| void | saveAttributes (std::ostream &outStream) |
| Save attributes to stream. | |
| void | loadAttributes (std::istream &inStream, short version, bool swapBytes) |
| Load attributes from stream. | |
Methods concerning member CSOs. | |
| void | addCSO (CSO *cso) |
| Adds a pointer to a CSO to this group. | |
| void | removeCSO (CSO *cso) |
| Removes a pointer to a CSO from this group. | |
| void | removeAllCSO () |
| Removes all pointers to CSOs from this group. | |
| bool | contains (CSO *cso) const |
| Returns if this group contains the given CSO. | |
| unsigned int | numCSO () const |
| Returns the number of CSOs in this group. | |
| CSO * | getCSOAt (unsigned int index) const |
| Returns a pointer to the CSO at the given index. Beware: no index check. | |
| unsigned int | getCSOIdAt (unsigned int index) const |
| Returns the id of an associated CSO at the given index. Beware: no index check. | |
Maintenance methods. | |
| unsigned int | getId () const |
| Returns the Id of this group. | |
| void | setId (unsigned int id) |
| Sets the Id of this group. | |
| void | setCSOList (CSOList *csoList) |
| Sets the embracing CSOList for this Group. | |
| CSOList * | getCSOList () const |
| Returns a pointer to the embracing CSOList of this Group. | |
Methods for getting / setting attributes. | |
| void | setLabel (const std::string &label) |
| Sets the group label. | |
| const std::string & | getLabel () const |
| Returns the group label. | |
| void | setDescription (const std::string &description) |
| Sets the group description. | |
| const std::string & | getDescription () const |
| Returns the group description. | |
| int | getTimePointIndex () const |
| Returns the time point index of this group. | |
| void | setTimePointIndex (int timePointIndex) |
| Sets the time point index of this group. | |
| void | setShowState (bool state) |
| Sets the 'show' status of this Group. | |
| bool | getShowState () const |
| Returns the 'show' status of this Group. | |
| void | setVoxelizeState (bool state) |
| Sets the 'voxelize' status of this Group. | |
| bool | getVoxelizeState () const |
| Returns the 'voxelize' status of this Group. | |
| void | setEditableState (bool state) |
| Sets the 'editable' status of this Group. | |
| bool | getEditableState () const |
| Returns the 'editable' status of this Group. | |
| CSOLineStyle | getPathPointStyle () const |
| Returns the path point style. | |
| void | setPathPointStyle (CSOLineStyle style) |
| Sets the path point style. | |
| void | setPathPointStyle (int style) |
| Sets the path point style as an int. | |
| float | getPathPointWidth () const |
| Returns the width of the path points. | |
| void | setPathPointWidth (float width) |
| Sets the width of the path points. | |
| const Vector3 & | getPathPointColor () const |
| Returns the color of the path points. | |
| void | setPathPointColor (const Vector3 &color) |
| Sets the color of the path points. | |
| float | getPathPointAlpha () const |
| Returns the alpha value of the path points. | |
| void | setPathPointAlpha (float alpha) |
| Sets the alpha value of the path points. | |
| int | getSeedPointStyle () const |
| Returns the style of the seed points. | |
| void | setSeedPointStyle (int seedPointStyle) |
| Sets the style of the seed points. | |
| float | getSeedPointSize () const |
| Returns the size of the seed points. | |
| void | setSeedPointSize (float size) |
| Sets the size of the seed points. | |
| const Vector3 & | getSeedPointColor () const |
| Returns the color of the seed points. | |
| void | setSeedPointColor (const Vector3 &color) |
| Sets the color of the seed points. | |
| float | getSeedPointAlpha () const |
| Returns the alpha value of the seed points. | |
| void | setSeedPointAlpha (float alpha) |
| Sets the alpha value of the seed points. | |
| int | getVoxelWriteMode () const |
| Returns the voxel write mode of this Group. | |
| void | setVoxelWriteMode (int mode) |
| Sets the voxel write mode of this Group. | |
| float | getVoxelWriteValue () const |
| Returns the voxel write value of this Group. | |
| void | setVoxelWriteValue (float value) |
| Sets the voxel write value of this Group. | |
Methods for getting / setting the use of attributes. | |
| bool | getUseTimePointIndex () const |
| Returns if the time point index of this Group should be used. | |
| void | setUseTimePointIndex (bool state) |
| Sets if the time point index of this Group should be used. | |
| bool | getUseShowState () const |
| Returns if this Group overrides the show state of its CSOs. | |
| void | setUseShowState (bool state) |
| Sets if this Group overrides the show state of its CSOs. | |
| bool | getUseVoxelizeState () const |
| Returns if this Group overrides the voxelize state of its CSOs. | |
| void | setUseVoxelizeState (bool state) |
| Sets if this Group overrides the voxelize state of its CSOs. | |
| bool | getUseEditableState () const |
| Returns if this Group overrides the editable state of its CSOs. | |
| void | setUseEditableState (bool state) |
| Sets if this Group overrides the editable state of its CSOs. | |
| bool | getUseSeedPointStyle () const |
| Returns if this Group overrides the seed point style of its CSOs. | |
| void | setUseSeedPointStyle (bool state) |
| Sets if this Group overrides the seed point style of its CSOs. | |
| bool | getUseSeedPointSize () const |
| Returns if this Group overrides the seed point size of its CSOs. | |
| void | setUseSeedPointSize (bool state) |
| Sets if this Group overrides the seed point size of its CSOs. | |
| bool | getUseSeedPointColor () const |
| Returns if this Group overrides the seed point color of its CSOs. | |
| void | setUseSeedPointColor (bool state) |
| Sets if this Group overrides the seed point color of its CSOs. | |
| bool | getUseSeedPointAlpha () const |
| Returns if this Group overrides the seed point alpha of its CSOs. | |
| void | setUseSeedPointAlpha (bool state) |
| Sets if this Group overrides the seed point alpha of its CSOs. | |
| bool | getUsePathPointStyle () const |
| Returns if this Group overrides the path point style of its CSOs. | |
| void | setUsePathPointStyle (bool state) |
| Sets if this Group overrides the path point style of its CSOs. | |
| bool | getUsePathPointWidth () const |
| Returns if this Group overrides the path point width of its CSOs. | |
| void | setUsePathPointWidth (bool state) |
| Sets if this Group overrides the path point width of its CSOs. | |
| bool | getUsePathPointColor () const |
| Returns if this Group overrides the path point color of its CSOs. | |
| void | setUsePathPointColor (bool state) |
| Sets if this Group overrides the path point color of its CSOs. | |
| bool | getUsePathPointAlpha () const |
| Returns if this Group overrides the path point alpha of its CSOs. | |
| void | setUsePathPointAlpha (bool state) |
| Sets if this Group overrides the path point alpha of its CSOs. | |
| bool | getUseVoxelWriteMode () const |
| Returns if this Group overrides the voxel write mode of its CSOs. | |
| void | setUseVoxelWriteMode (bool state) |
| Sets if this Group overrides the voxel write mode of its CSOs. | |
| bool | getUseVoxelWriteValue () const |
| Returns if this Group overrides the voxel write value of its CSOs. | |
| void | setUseVoxelWriteValue (bool state) |
| Sets if this Group overrides the voxel write value of its CSOs. | |
Methods for handling the bounding box. | |
| const CSOBoundingBox & | getBoundingBox () |
| Returns the unified bounding box of all contained CSOs. | |
| const CSOBoundingBox & | getVoxelBoundingBox (const Matrix4 &worldToVoxelMatrix) |
| Returns the unified voxel bounding box of all contained CSOs. | |
| CSOLineStyle | getLineStyle () const |
| /deprecated Use getPathPointStyle() instead. | |
| void | setLineStyle (CSOLineStyle lineStyle) |
| /deprecated Use setPathPointStyle() instead. | |
| const Vector3 & | getColor () const |
| /deprecated Use getPathPointColor() instead. | |
| void | setColor (const Vector3 &color) |
| /deprecated Use setPathPointColor() instead. | |
| float | getAlpha () const |
| /deprecated Use getPathPointAlpha() instead. | |
| void | setAlpha (float alpha) |
| /deprecated Use setPathPointAlpha() instead. | |
| float | getLineWidth () const |
| /deprecated Use getPathPointWidth() instead. | |
| void | setLineWidth (float lineWidth) |
| /deprecated Use setPathPointWidth() instead. | |
| int | getMarkerMode () const |
| /deprecated Use getSeedPointStyle() instead. | |
| void | setMarkerMode (int markerMode) |
| /deprecated Use setSeedPointStyle() instead. | |
| const Vector3 & | getMarkerColor () const |
| /deprecated Use getSeedPointColor() instead. | |
| void | setMarkerColor (const Vector3 &markerColor) |
| /deprecated Use setSeedPointColor() instead. | |
| float | getMarkerAlpha () const |
| /deprecated Use getSeedPointAlpha() instead. | |
| void | setMarkerAlpha (float markerAlpha) |
| /deprecated Use setSeedPointAlpha() instead. | |
| float | getMarkerSize () const |
| /deprecated Use getSeedPointSize() instead. | |
| void | setMarkerSize (float markerSize) |
| /deprecated Use setSeedPointSize() instead. | |
| bool | getUseVisuals () const |
| /deprecated Use getUsePathPointStyle(), getUsePathPointWidth(), getUsePathPointColor() and getUsePathPointAlpha() instead. | |
| void | setUseVisuals (bool state) |
| /deprecated Use setUsePathPointStyle(), setUsePathPointWidth(), setUsePathPointColor() and setUsePathPointAlpha() instead. | |
| bool | getUseVoxelWrite () const |
| /deprecated Use getUseVoxelWriteMode() and getUseVoxelWriteValue() instead. | |
| void | setUseVoxelWrite (bool state) |
| /deprecated Use setUseVoxelWriteMode() and setUseVoxelWriteValue() instead. | |
| bool | getUseMarkerSettings () const |
| /deprecated Use getUseSeedPointAlpha(), getUseSeedPointColor(), getUseSeedPointSize() and getUseSeedPointStyle() instead. | |
| void | setUseMarkerSettings (bool state) |
| /deprecated Use setUseSeedPointAlpha(), setUseSeedPointColor(), setUseSeedPointSize() and setUseSeedPointStyle() instead. | |
Some visualization parameters can be controlled by a CSOGroup, and some processing modules can apply special functions for groups only.
Definition at line 34 of file CSOGroup.h.
| ml::CSOGroup::CSOGroup | ( | ) |
Constructor.
| ml::CSOGroup::CSOGroup | ( | CSOList * | csoList | ) |
Constructor, takes a pointer to the embracing CSOList as an argument.
| ml::CSOGroup::CSOGroup | ( | const CSOGroup & | group | ) |
Copy constructor.
| ml::CSOGroup::~CSOGroup | ( | ) |
Destructor.
| float ml::CSOGroup::getAlpha | ( | ) | const [inline] |
| const CSOBoundingBox& ml::CSOGroup::getBoundingBox | ( | ) |
Returns the unified bounding box of all contained CSOs.
| const Vector3& ml::CSOGroup::getColor | ( | ) | const [inline] |
| CSO* ml::CSOGroup::getCSOAt | ( | unsigned int | index | ) | const |
Returns a pointer to the CSO at the given index. Beware: no index check.
| unsigned int ml::CSOGroup::getCSOIdAt | ( | unsigned int | index | ) | const [inline] |
Returns the id of an associated CSO at the given index. Beware: no index check.
Definition at line 68 of file CSOGroup.h.
References ML_TRACE_IN_TIME_CRITICAL.
| CSOList* ml::CSOGroup::getCSOList | ( | ) | const [inline] |
| const std::string& ml::CSOGroup::getDescription | ( | ) | const [inline] |
| bool ml::CSOGroup::getEditableState | ( | ) | const [inline] |
| unsigned int ml::CSOGroup::getId | ( | void | ) | const [inline] |
Returns the Id of this group.
Definition at line 76 of file CSOGroup.h.
Referenced by ml::CSO::addGroup().
| const std::string& ml::CSOGroup::getLabel | ( | ) | const [inline] |
| CSOLineStyle ml::CSOGroup::getLineStyle | ( | ) | const [inline] |
| float ml::CSOGroup::getLineWidth | ( | ) | const [inline] |
| float ml::CSOGroup::getMarkerAlpha | ( | ) | const [inline] |
| const Vector3& ml::CSOGroup::getMarkerColor | ( | ) | const [inline] |
| int ml::CSOGroup::getMarkerMode | ( | ) | const [inline] |
| float ml::CSOGroup::getMarkerSize | ( | ) | const [inline] |
| float ml::CSOGroup::getPathPointAlpha | ( | ) | const [inline] |
| const Vector3& ml::CSOGroup::getPathPointColor | ( | ) | const [inline] |
| CSOLineStyle ml::CSOGroup::getPathPointStyle | ( | ) | const [inline] |
| float ml::CSOGroup::getPathPointWidth | ( | ) | const [inline] |
| CSOGroupRules& ml::CSOGroup::getRules | ( | ) | [inline] |
| float ml::CSOGroup::getSeedPointAlpha | ( | ) | const [inline] |
| const Vector3& ml::CSOGroup::getSeedPointColor | ( | ) | const [inline] |
| float ml::CSOGroup::getSeedPointSize | ( | ) | const [inline] |
| int ml::CSOGroup::getSeedPointStyle | ( | ) | const [inline] |
| bool ml::CSOGroup::getShowState | ( | ) | const [inline] |
| int ml::CSOGroup::getTimePointIndex | ( | ) | const [inline] |
| bool ml::CSOGroup::getUseEditableState | ( | ) | const [inline] |
Returns if this Group overrides the editable state of its CSOs.
Definition at line 178 of file CSOGroup.h.
| bool ml::CSOGroup::getUseMarkerSettings | ( | ) | const [inline] |
/deprecated Use getUseSeedPointAlpha(), getUseSeedPointColor(), getUseSeedPointSize() and getUseSeedPointStyle() instead.
Definition at line 313 of file CSOGroup.h.
| bool ml::CSOGroup::getUsePathPointAlpha | ( | ) | const [inline] |
Returns if this Group overrides the path point alpha of its CSOs.
Definition at line 210 of file CSOGroup.h.
| bool ml::CSOGroup::getUsePathPointColor | ( | ) | const [inline] |
Returns if this Group overrides the path point color of its CSOs.
Definition at line 206 of file CSOGroup.h.
| bool ml::CSOGroup::getUsePathPointStyle | ( | ) | const [inline] |
Returns if this Group overrides the path point style of its CSOs.
Definition at line 198 of file CSOGroup.h.
| bool ml::CSOGroup::getUsePathPointWidth | ( | ) | const [inline] |
Returns if this Group overrides the path point width of its CSOs.
Definition at line 202 of file CSOGroup.h.
| bool ml::CSOGroup::getUseSeedPointAlpha | ( | ) | const [inline] |
Returns if this Group overrides the seed point alpha of its CSOs.
Definition at line 194 of file CSOGroup.h.
| bool ml::CSOGroup::getUseSeedPointColor | ( | ) | const [inline] |
Returns if this Group overrides the seed point color of its CSOs.
Definition at line 190 of file CSOGroup.h.
| bool ml::CSOGroup::getUseSeedPointSize | ( | ) | const [inline] |
Returns if this Group overrides the seed point size of its CSOs.
Definition at line 186 of file CSOGroup.h.
| bool ml::CSOGroup::getUseSeedPointStyle | ( | ) | const [inline] |
Returns if this Group overrides the seed point style of its CSOs.
Definition at line 182 of file CSOGroup.h.
| bool ml::CSOGroup::getUseShowState | ( | ) | const [inline] |
Returns if this Group overrides the show state of its CSOs.
Definition at line 170 of file CSOGroup.h.
| bool ml::CSOGroup::getUseTimePointIndex | ( | ) | const [inline] |
Returns if the time point index of this Group should be used.
Definition at line 166 of file CSOGroup.h.
| bool ml::CSOGroup::getUseVisuals | ( | ) | const [inline] |
/deprecated Use getUsePathPointStyle(), getUsePathPointWidth(), getUsePathPointColor() and getUsePathPointAlpha() instead.
Definition at line 293 of file CSOGroup.h.
| bool ml::CSOGroup::getUseVoxelizeState | ( | ) | const [inline] |
Returns if this Group overrides the voxelize state of its CSOs.
Definition at line 174 of file CSOGroup.h.
| bool ml::CSOGroup::getUseVoxelWrite | ( | ) | const [inline] |
/deprecated Use getUseVoxelWriteMode() and getUseVoxelWriteValue() instead.
Definition at line 303 of file CSOGroup.h.
| bool ml::CSOGroup::getUseVoxelWriteMode | ( | ) | const [inline] |
Returns if this Group overrides the voxel write mode of its CSOs.
Definition at line 214 of file CSOGroup.h.
| bool ml::CSOGroup::getUseVoxelWriteValue | ( | ) | const [inline] |
Returns if this Group overrides the voxel write value of its CSOs.
Definition at line 218 of file CSOGroup.h.
| const CSOBoundingBox& ml::CSOGroup::getVoxelBoundingBox | ( | const Matrix4 & | worldToVoxelMatrix | ) |
Returns the unified voxel bounding box of all contained CSOs.
| bool ml::CSOGroup::getVoxelizeState | ( | ) | const [inline] |
| int ml::CSOGroup::getVoxelWriteMode | ( | ) | const [inline] |
| float ml::CSOGroup::getVoxelWriteValue | ( | ) | const [inline] |
| void ml::CSOGroup::groupChanged | ( | ) |
Marks this Group as changed (e.g. if a CSO has been added, removed or changed).
| void ml::CSOGroup::loadAttributes | ( | std::istream & | inStream, | |
| short | version, | |||
| bool | swapBytes | |||
| ) |
Load attributes from stream.
| unsigned int ml::CSOGroup::numCSO | ( | ) | const [inline] |
| void ml::CSOGroup::removeAllCSO | ( | ) |
Removes all pointers to CSOs from this group.
| void ml::CSOGroup::saveAttributes | ( | std::ostream & | outStream | ) |
Save attributes to stream.
| void ml::CSOGroup::setAlpha | ( | float | alpha | ) | [inline] |
| void ml::CSOGroup::setColor | ( | const Vector3 & | color | ) | [inline] |
| void ml::CSOGroup::setCSOList | ( | CSOList * | csoList | ) |
| void ml::CSOGroup::setDescription | ( | const std::string & | description | ) | [inline] |
| void ml::CSOGroup::setEditableState | ( | bool | state | ) | [inline] |
| void ml::CSOGroup::setId | ( | unsigned int | id | ) | [inline] |
| void ml::CSOGroup::setLabel | ( | const std::string & | label | ) | [inline] |
| void ml::CSOGroup::setLineStyle | ( | CSOLineStyle | lineStyle | ) | [inline] |
| void ml::CSOGroup::setLineWidth | ( | float | lineWidth | ) | [inline] |
| void ml::CSOGroup::setMarkerAlpha | ( | float | markerAlpha | ) | [inline] |
| void ml::CSOGroup::setMarkerColor | ( | const Vector3 & | markerColor | ) | [inline] |
| void ml::CSOGroup::setMarkerMode | ( | int | markerMode | ) | [inline] |
| void ml::CSOGroup::setMarkerSize | ( | float | markerSize | ) | [inline] |
| void ml::CSOGroup::setPathPointAlpha | ( | float | alpha | ) | [inline] |
| void ml::CSOGroup::setPathPointColor | ( | const Vector3 & | color | ) | [inline] |
| void ml::CSOGroup::setPathPointStyle | ( | int | style | ) | [inline] |
| void ml::CSOGroup::setPathPointStyle | ( | CSOLineStyle | style | ) | [inline] |
| void ml::CSOGroup::setPathPointWidth | ( | float | width | ) | [inline] |
| void ml::CSOGroup::setSeedPointAlpha | ( | float | alpha | ) | [inline] |
| void ml::CSOGroup::setSeedPointColor | ( | const Vector3 & | color | ) | [inline] |
| void ml::CSOGroup::setSeedPointSize | ( | float | size | ) | [inline] |
| void ml::CSOGroup::setSeedPointStyle | ( | int | seedPointStyle | ) | [inline] |
| void ml::CSOGroup::setShowState | ( | bool | state | ) | [inline] |
| void ml::CSOGroup::setTimePointIndex | ( | int | timePointIndex | ) | [inline] |
| void ml::CSOGroup::setUseEditableState | ( | bool | state | ) | [inline] |
Sets if this Group overrides the editable state of its CSOs.
Definition at line 180 of file CSOGroup.h.
| void ml::CSOGroup::setUseMarkerSettings | ( | bool | state | ) | [inline] |
/deprecated Use setUseSeedPointAlpha(), setUseSeedPointColor(), setUseSeedPointSize() and setUseSeedPointStyle() instead.
Definition at line 318 of file CSOGroup.h.
| void ml::CSOGroup::setUsePathPointAlpha | ( | bool | state | ) | [inline] |
Sets if this Group overrides the path point alpha of its CSOs.
Definition at line 212 of file CSOGroup.h.
| void ml::CSOGroup::setUsePathPointColor | ( | bool | state | ) | [inline] |
Sets if this Group overrides the path point color of its CSOs.
Definition at line 208 of file CSOGroup.h.
| void ml::CSOGroup::setUsePathPointStyle | ( | bool | state | ) | [inline] |
Sets if this Group overrides the path point style of its CSOs.
Definition at line 200 of file CSOGroup.h.
| void ml::CSOGroup::setUsePathPointWidth | ( | bool | state | ) | [inline] |
Sets if this Group overrides the path point width of its CSOs.
Definition at line 204 of file CSOGroup.h.
| void ml::CSOGroup::setUseSeedPointAlpha | ( | bool | state | ) | [inline] |
Sets if this Group overrides the seed point alpha of its CSOs.
Definition at line 196 of file CSOGroup.h.
| void ml::CSOGroup::setUseSeedPointColor | ( | bool | state | ) | [inline] |
Sets if this Group overrides the seed point color of its CSOs.
Definition at line 192 of file CSOGroup.h.
| void ml::CSOGroup::setUseSeedPointSize | ( | bool | state | ) | [inline] |
Sets if this Group overrides the seed point size of its CSOs.
Definition at line 188 of file CSOGroup.h.
| void ml::CSOGroup::setUseSeedPointStyle | ( | bool | state | ) | [inline] |
Sets if this Group overrides the seed point style of its CSOs.
Definition at line 184 of file CSOGroup.h.
| void ml::CSOGroup::setUseShowState | ( | bool | state | ) | [inline] |
| void ml::CSOGroup::setUseTimePointIndex | ( | bool | state | ) | [inline] |
Sets if the time point index of this Group should be used.
Definition at line 168 of file CSOGroup.h.
| void ml::CSOGroup::setUseVisuals | ( | bool | state | ) | [inline] |
/deprecated Use setUsePathPointStyle(), setUsePathPointWidth(), setUsePathPointColor() and setUsePathPointAlpha() instead.
Definition at line 298 of file CSOGroup.h.
| void ml::CSOGroup::setUseVoxelizeState | ( | bool | state | ) | [inline] |
Sets if this Group overrides the voxelize state of its CSOs.
Definition at line 176 of file CSOGroup.h.
| void ml::CSOGroup::setUseVoxelWrite | ( | bool | state | ) | [inline] |
/deprecated Use setUseVoxelWriteMode() and setUseVoxelWriteValue() instead.
Definition at line 308 of file CSOGroup.h.
| void ml::CSOGroup::setUseVoxelWriteMode | ( | bool | state | ) | [inline] |
Sets if this Group overrides the voxel write mode of its CSOs.
Definition at line 216 of file CSOGroup.h.
| void ml::CSOGroup::setUseVoxelWriteValue | ( | bool | state | ) | [inline] |
Sets if this Group overrides the voxel write value of its CSOs.
Definition at line 220 of file CSOGroup.h.
| void ml::CSOGroup::setVoxelizeState | ( | bool | state | ) | [inline] |
| void ml::CSOGroup::setVoxelWriteMode | ( | int | mode | ) | [inline] |
| void ml::CSOGroup::setVoxelWriteValue | ( | float | value | ) | [inline] |
1.5.8