|
MeVisLab Toolbox Reference
|
#include <CSO.h>
Public Member Functions | |
| CSO () | |
| Standard constructor. The unique ID is initialized with 0. | |
| CSO (CSOList *csoList) | |
| Constructor takes a pointer to the CSOList this CSO is in; in this method, the unique ID is set. | |
| CSO (const CSO &cso, CSOList *csoList=nullptr, unsigned int csoId=INVALID_CSO_ID) | |
| virtual | ~CSO () |
| Standard destructor. | |
| void | reverseSeedPointOrder () |
| Reverses the order of all seed points and clears all path points in between. | |
| void | resortSeedPointsClockwise () |
| void | storeInUndoManager () |
| Stores the geometric information of the CSO in the UndoRedo manager. | |
| void | storeVisualAttributesInUndoManager () |
| CSOManager * | getManager () const |
| bool | isSelected () const |
| Returns whether this CSO is selected in its CSOList. If there is no enclosing CSOList, the method returns false. | |
| void | setAttributesFrom (const CSO *const cso) |
| Copies all attributes from the specified CSO to this one. | |
| bool | saveAttributes (std::ostream &outStream, bool useAscii=false) |
| Save attributes to stream and returns whether the saving was successful. | |
| void | loadAttributes (std::istream &inStream, short version, bool swapBytes, bool useAscii=false) |
| Loads attributes from stream. | |
| const CSOAttributes & | getAttributes () const |
| Returns const access to all CSO attributes. | |
| CSOAttributes & | getWritableAttributes () |
| Returns write access to all CSO attributes (NOTE: be careful as no events are emitted when changing the attributes). | |
Methods for modifying the geometry of this CSO. | |
| void | applyTransformationMatrix (const Matrix4 &matrix) |
| void | moveSeedPointsAndPathPoints (const Vector3 &offset, int timepoint) |
| Moves all seed points and path points by the specified coordinate offset and sets the CSO to the specified timepoint. | |
| void | moveSeedPointsAndPathPoints (double dx, double dy, double dz, int timepoint) |
| Moves all seed points and path points by the specified coordinate offset and sets the CSO to the specified timepoint. | |
| void | moveSeedPointsAndPathPoints (const Vector3 &offset) |
| Moves all seed points and path points by the specified coordinate offset. | |
| void | moveSeedPointsAndPathPoints (double dx, double dy, double dz) |
| Moves all seed points and path points by the specified coordinate offset. | |
| void | setAbsoluteMovementCommand (double fromX, double fromY, double fromZ, double toX, double toY, double toZ, int fromTimePointIndex, int toTimePointIndex) |
| Sets the absolute movement for undo/redo. | |
| void | moveSingleSeedPoint (CSOSeedPoint *sPoint, double dx, double dy, double dz) |
| Moves a certain seed point by the specified coordinate offset. | |
| void | setAbsoluteSeedPointMovementCommand () |
| Sets the absolute movement of a single seed point for undo/redo. | |
| void | setSeedPointsAndPathPoints (const CSO *cso) |
| Sets the seed points and the path point of the specified CSO. | |
Methods for adding / removing seed points or path point lists. | |
| CSOSeedPoint * | appendSeedAndPathPointNoEvent () |
| CSOSeedPoint * | appendSeedAndPathPointNoEvent (const Vector3 &position) |
| Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it. | |
| CSOSeedPoint * | appendSeedAndPathPoint () |
| Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it. | |
| CSOSeedPoint * | appendSeedAndPathPoint (const Vector3 &position) |
| Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it. | |
| void | setSeedAndPathPoints (unsigned int numSeedPoints, bool isClosed=true) |
| void | setInitialSeedAndPathPointsNoEvent (unsigned int numSeedPoints, bool isClosed=true) |
| Like setSeedAndPathPoints, but this method is faster because no events are emitted and no checks are done. | |
| CSOPathPoints * | insertPathPointsEndStart () |
| Inserts a CSOPathPoint list between the ending and the starting seed points and returns a pointer to it. | |
| CSOPathPoints * | insertPathPointsEndStartNoEvent () |
| Inserts a CSOPathPoint list between the ending and the starting seed points and returns a pointer to it. | |
| CSOSeedPoint * | appendSeedPoint () |
| Appends just a seed point to the internal list and returns a pointer to it. | |
| CSOPathPoints * | appendPathPoints () |
| Appends just a path point list the internal list and returns a pointer to it. | |
| void | removeSeedPoint (CSOSeedPoint *sPoint) |
| Removes the specified seed point from this CSO. | |
| void | removeAllSeedAndPathPoints () |
| Removes all seed points and path point lists from this CSO. | |
| CSOSeedPoint * | insertSeedPointAt (CSOPathPoints *toBeSplitPath, const Vector3 &toInsertPos) |
| Inserts a seed point into the specified toBeSplitPath at the specified position. | |
| void | setInsertRemoveSeedPointCommand () |
| Triggers the according undo/redo command to be put on the stack. | |
Methods for seed point and path point lists access. | |
| CSOSeedPoint * | getSeedPointAt (unsigned int index) const |
| CSOSeedPoint * | getFirstSeedPoint () const |
| Returns a pointer to the first seed point of this CSO. | |
| CSOSeedPoint * | getLastSeedPoint () const |
| Returns a pointer to the last seed point of this CSO. | |
| unsigned int | numSeedPoints () const |
| Returns the number of seed points. | |
| bool | getSeedPointIndex (CSOSeedPoint *sPoint, unsigned int &index) const |
Sets the sIndex to the index of the specified seed point and returns whether such a seed point exists. | |
| unsigned int | numPathPointLists () const |
| Returns the number of path point lists. | |
| void | fillPathPointCoordinatesFlattened (std::vector< Vector3 > &pathPointCoords) const |
| Fills up the specified std::vector<Vector3> with all the path point coordinates in order. | |
| void | fillPathPointCoordinatesFlattened (std::vector< Vector4 > &pathPointCoordsAndValues) const |
| Fills up the specified std::vector<Vector4> with all the path point coordinates and values in order. | |
| CSOPathPoints * | getPathPointsAt (unsigned int index) const |
| unsigned int | getTotalNumPathPoints () const |
| Returns the total number of path points in this CSO; this number may differ from the number of path points obtained by a flattened positions vector. | |
| unsigned int | getTotalNumUniquePathPoints () const |
| Returns the total number of unique path points in this CSO; this number equals the number of path points obtained by a flattened positions vector. | |
| void | swapPoints (CSO &other) |
| Swaps the seed and path points of two CSOs. No events are emitted. | |
Methods for handling selected seed points. | |
| void | addSelectedSeedPoint (CSOSeedPoint *sPoint) |
| void | setSelectedSeedPoint (CSOSeedPoint *sPoint) |
| Sets the specified seed point as being selected, and deselects all previously selected seed points. | |
| void | setSeedPointSelectedAt (unsigned int index) |
| Sets the seed point at the specified index selected. | |
| bool | isSelectedSeedPoint (CSOSeedPoint *sPoint) const |
| Returns whether the specified seed point is selected. | |
| void | clearSelectedSeedPoints () |
| Clears the list of selected seed points. | |
| unsigned int | getNumSelectedSeedPoints () const |
| Returns the number of selected seed points. | |
| CSOSeedPoint * | getSelectedSeedPointAt (unsigned int index) const |
| Returns a pointer to a selected seed point at the specified index. | |
Methods for handling grouping. | |
| bool | addToGroup (CSOGroup &group, bool useUndoRedo=true) |
| void | removeFromGroup (CSOGroup &group, bool useUndoRedo=true) |
| Removes this CSO from the specified CSOGroup. | |
| bool | isInGroup (const CSOGroup *group) const |
| Returns whether this CSO is in the specified CSOGroup. | |
| bool | isInSameGroupsAs (CSO *cso) const |
| bool | isInGroup (unsigned int groupId) const |
| Returns whether this CSO is in the CSOGroup with the specified ID. | |
| unsigned int | numGroups () const |
| Returns the number of CSOGroups this CSO is in. | |
| CSOGroup * | getGroupAt (unsigned int index) const |
| Returns the CSOGroup at the specified index. If the index is out of bounds, nullptr is returned. | |
| unsigned int | getGroupIdAt (unsigned int index) const |
| void | removeFromAllGroups () |
| Removes this CSO from all its CSOGroups. | |
MLCSO-internal Methods for handling grouping. | |
| void | _addReferenceToGroup (const CSOGroup &group) |
| void | _removeReferenceToGroup (const CSOGroup &group) |
| Removes the specified CSOGroup from the internal list. | |
Methods for setting / getting type information. | |
| void | setType (const std::string &type) |
| const std::string & | getType () const |
| Returns the type of the CSO. This is set by the editor or processor that generated this CSO. | |
| void | setSubType (const std::string &subtype) |
| Sets the subtype of the CSO. This is set by the editor or processor that generated this CSO. | |
| const std::string & | getSubType () const |
| Returns the type of the CSO. This is set by the editor or processor that generated this CSO. | |
| void | setCreatorId (int id) |
| Sets the creator ID of the CSO. This is set by the editor or processor that generated this CSO. | |
| int | getCreatorId () const |
| Returns the creator ID of the CSO. This is set by the editor or processor that generated this CSO. | |
Methods for setting / reading out the user data values. | |
| void | setUserData (const std::string &name, Variant value) |
| Variant | getUserData (const std::string &name) const |
| Returns the user data associated with the specified name, or an invalid value if no such entry exists. | |
| void | getUserDataNames (std::vector< std::string > &names) const |
| Fills the specified vector with the keys/name under which user data is stored for this CSO. | |
| void | removeUserData (const std::string &name) |
| Removes a user data entry. | |
Methods for handling geometric aspects of this CSO. | |
| const CSOBoundingBox & | getWorldBoundingBox () const |
| CSOBoundingBox | getVoxelBoundingBox (const Matrix4 &worldToVoxelMatrix, size_t hashKey) const |
| Returns the bounding box of this contour in voxel coordinates computed by the specified (image) matrix. | |
| CSOBoundingBox | getVoxelBoundingBoxSeedPoints (const Matrix4 &worldToVoxelMatrix, size_t hashKey) const |
| Returns the bounding box of the seed points of this CSO in voxel coordinates computed by the specified (image) matrix. | |
| bool | isInPlane () const |
| bool | isInPlane (Vector3 &planeNormal) const |
| const Vector3 & | getPlaneNormal () const |
| Returns the plane normal. Only valid, if isInPlane returns 'true'. | |
| void | computePlaneNormal () |
| Forces to recompute the plane normal (status). | |
| void | setIsInPlane (bool status) |
| void | setPlaneNormal (const Vector3 &planeNormal) |
| Sets the plane normal that becomes valid by this. | |
| void | invalidatePlaneNormal () |
| Invalidates the plane normal. | |
| double | getLength () const |
| Returns the length of this CSO (this is sum of the the euclidean distances between all successive path points). | |
| double | getArea () const |
| Returns the area of this CSO (this value is only meaningful if all points lie in a plane). | |
| void | invalidateArea () |
| Invalidates the internal area flag, so it can be recomputed. | |
| bool | isSelfIntersecting () const |
| Returns whether this CSO is self-intersecting. | |
| void | setIsClosed (bool isClosed) |
| bool | isClosed () const |
| Returns whether the CSO is closed. | |
| bool | isPoint () const |
| Returns whether the CSO is just a point. | |
| bool | isEmpty () const |
| Returns whether the CSO is empty; an empty CSO has neither seed points nor path points. | |
| void | setIsFinished (bool isFinished) |
| Sets the finished status of this contour. Note that the finished status is set to 'true' if the contour is set to isClosed = true. | |
| bool | getIsFinished () const |
| Returns the finished status of this contour. | |
| void | setNeedsInterpolation (bool needsInterpolation) |
| Sets whether this CSO needs interpolation. | |
| bool | getNeedsInterpolation () const |
| Returns whether this CSO needs interpolation. | |
| void | determineNeedsInterpolation () |
| Determines by investigating the CSO's seed points whether this CSO needs interpolation and sets this state to the CSO's internal variable. | |
| void | setNeedInterpolationAllSeedPoints (bool needsInterpolation) |
| Sets the need for interpolation to all member seed points. | |
| void | setNeedInterpolation (CSOSeedPoint *seedPoint) |
| Sets the need of being interpolated to the specified seed point and to the CSO's state. | |
| void | pathChanged () |
| Sets any pre-computed values depending on the exact path to invalid. | |
Maintenance methods. | |
| void | setCSOList (CSOList *csoList) |
| CSOList * | getCSOList () const |
| Returns the internal pointer to the embracing CSOList. | |
| unsigned int | getId () const |
| Returns the unique ID of this CSO. | |
Methods for handling various states. | |
| void | setLabel (const std::string &label) |
| const std::string & | getLabel () const |
| Returns the label of this CSO. | |
| void | setDescription (std::string description) |
| Sets the description of this CSO. | |
| const std::string & | getDescription () const |
| Returns the description of this CSO. | |
| void | setTimePointIndex (MLint index) |
| Sets the time point index of this CSO. | |
| int | getTimePointIndex () const |
| Returns the time point index of this CSO. | |
| void | setShowState (bool state) |
| Sets the 'show' status of this CSO. | |
| bool | getShowState () const |
| Returns the 'show' status of this CSO. | |
| void | setVoxelizeState (bool state) |
| Sets the 'voxelize' state of this CSO. | |
| bool | getVoxelizeState () const |
| Returns the 'voxelize' state of this CSO. | |
| void | setEditableState (bool state) |
| Sets the 'editable' state of this CSO. | |
| bool | getEditableState () const |
| Returns the 'editable' state of this CSO. | |
| void | setPathPointStyle (CSOPathPointsStyle style) |
| Sets the style of the path points. | |
| void | setPathPointStyle (int style) |
| Sets the style of the path points as an int. | |
| CSOPathPointsStyle | getPathPointStyle () const |
| Returns the style of the path points. | |
| void | setPathPointWidth (float width) |
| Sets the width of the path points. | |
| float | getPathPointWidth () const |
| Returns the width of the path points. | |
| void | setPathPointColor (const Vector3 &color) |
| Sets the color of the path points. | |
| Vector3 | getPathPointColor () const |
| Returns the color of the path points. | |
| void | setPathPointAlpha (float alpha) |
| Sets the alpha value of the path points. | |
| float | getPathPointAlpha () const |
| Returns the alpha value of the path points. | |
| void | setSeedPointStyle (int style) |
| Sets the style of the seed points. | |
| int | getSeedPointStyle () const |
| Returns the style of the seed points. | |
| void | setSeedPointSize (float size) |
| Sets the size of the seed points. | |
| float | getSeedPointSize () const |
| Returns the size of the seed points. | |
| void | setSeedPointColor (const Vector3 &color) |
| Sets the color of the seed points. | |
| Vector3 | getSeedPointColor () const |
| Returns the color of the seed points. | |
| void | setSeedPointAlpha (float alpha) |
| Sets the alpha value of the seed points. | |
| float | getSeedPointAlpha () const |
| Returns the alpha value of the seed points. | |
| void | setVoxelWriteMode (int mode) |
| Sets the voxel write mode of this CSO. | |
| int | getVoxelWriteMode () const |
| Returns the voxel write mode of this CSO. | |
| void | setVoxelWriteValue (float value) |
| Sets the voxel write value of this CSO. | |
| float | getVoxelWriteValue () const |
| Returns the voxel write value of this CSO. | |
| void | setAllValuesTo (float value) |
| Sets all position values to the specified value. | |
Private set / get methods for handling internal states (are not overwritten by CSOGroups). | |
| int | getPrivateTimePointIndex () const |
| bool | getPrivateShowState () const |
| Returns the private attribute 'showState'. | |
| bool | getPrivateVoxelizeState () const |
| Returns the private attribute 'voxelizeState'. | |
| bool | getPrivateEditableState () const |
| Returns the private attribute 'editableState'. | |
| int | getPrivatePathPointStyle () const |
| Returns the private attribute 'path point style'. | |
| float | getPrivatePathPointWidth () const |
| Returns the private attribute 'path point width'. | |
| Vector3 | getPrivatePathPointColor () const |
| Returns the private attribute 'path point color'. | |
| float | getPrivatePathPointAlpha () const |
| Returns the private attribute 'path point alpha'. | |
| int | getPrivateSeedPointStyle () const |
| Returns the private attribute 'seed point style'. | |
| float | getPrivateSeedPointSize () const |
| Returns the private attribute 'seed point size'. | |
| Vector3 | getPrivateSeedPointColor () const |
| Returns the private attribute 'seed point color'. | |
| float | getPrivateSeedPointAlpha () const |
| Returns the private attribute 'seed point alpha'. | |
| int | getPrivateVoxelWriteMode () const |
| Returns the private attribute 'voxelWriteMode'. | |
| float | getPrivateVoxelWriteValue () const |
| Returns the private attribute 'voxelWriteValue'. | |
| void | setPrivateIsFinished (bool isFinished) |
| Sets the 'isFinished' flag without any side effects. | |
| void | setPrivateIsClosed (bool isClosedP) |
| Sets the 'isClosed' flag without any side effects. | |
| void | setPrivateIsInPlane (bool isInPlaneP) |
| Sets the 'isInPlane' flag without any side effects. | |
| void | setPrivateBoundingBox (const CSOBoundingBox &bb) |
| Sets the bounding box of this CSO. | |
| void | setPrivatePlaneNormal (const Vector3 &normal) |
| Sets the plane normal of this CSO. | |
| void | setId (unsigned int newId) |
Friends | |
| class | CSOList |
The CSO represents a contour segmentation object. It consists of a number of seed points and a number of path point lists whose points connect the seed points. The CSO has also a pointer to its embracing CSOList, and can be in a number of CSOGroups.
| ml::CSO::CSO | ( | ) |
Standard constructor. The unique ID is initialized with 0.
Referenced by CSO(), isInSameGroupsAs(), setAttributesFrom(), setSeedPointsAndPathPoints(), and swapPoints().
| ml::CSO::CSO | ( | CSOList * | csoList | ) |
| ml::CSO::CSO | ( | const CSO & | cso, |
| CSOList * | csoList = nullptr, | ||
| unsigned int | csoId = INVALID_CSO_ID ) |
|
virtual |
Standard destructor.
| void ml::CSO::_addReferenceToGroup | ( | const CSOGroup & | group | ) |
| void ml::CSO::_removeReferenceToGroup | ( | const CSOGroup & | group | ) |
Removes the specified CSOGroup from the internal list.
| void ml::CSO::addSelectedSeedPoint | ( | CSOSeedPoint * | sPoint | ) |
Adds the specified seed point to the list of selected seed points.
| bool ml::CSO::addToGroup | ( | CSOGroup & | group, |
| bool | useUndoRedo = true ) |
| CSOPathPoints * ml::CSO::appendPathPoints | ( | ) |
Appends just a path point list the internal list and returns a pointer to it.
| CSOSeedPoint * ml::CSO::appendSeedAndPathPoint | ( | ) |
Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it.
| CSOSeedPoint * ml::CSO::appendSeedAndPathPoint | ( | const Vector3 & | position | ) |
Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it.
| CSOSeedPoint * ml::CSO::appendSeedAndPathPointNoEvent | ( | ) |
Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it.
| CSOSeedPoint * ml::CSO::appendSeedAndPathPointNoEvent | ( | const Vector3 & | position | ) |
Appends a seed point and a path point list to the end of the seed point list and returns a pointer to it.
| CSOSeedPoint * ml::CSO::appendSeedPoint | ( | ) |
Appends just a seed point to the internal list and returns a pointer to it.
| void ml::CSO::applyTransformationMatrix | ( | const Matrix4 & | matrix | ) |
Applies the specified 4x4 matrix to all seed points and path points.
| void ml::CSO::clearSelectedSeedPoints | ( | ) |
Clears the list of selected seed points.
|
inline |
| void ml::CSO::determineNeedsInterpolation | ( | ) |
| void ml::CSO::fillPathPointCoordinatesFlattened | ( | std::vector< Vector3 > & | pathPointCoords | ) | const |
Fills up the specified std::vector<Vector3> with all the path point coordinates in order.
| void ml::CSO::fillPathPointCoordinatesFlattened | ( | std::vector< Vector4 > & | pathPointCoordsAndValues | ) | const |
Fills up the specified std::vector<Vector4> with all the path point coordinates and values in order.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool ml::CSO::getEditableState | ( | ) | const |
Returns the 'editable' state of this CSO.
|
inline |
Returns a pointer to the first seed point of this CSO.
Definition at line 147 of file CSO.h.
References numSeedPoints().
| CSOGroup * ml::CSO::getGroupAt | ( | unsigned int | index | ) | const |
Returns the CSOGroup at the specified index. If the index is out of bounds, nullptr is returned.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a pointer to the last seed point of this CSO.
Definition at line 149 of file CSO.h.
References numSeedPoints().
| double ml::CSO::getLength | ( | ) | const |
Returns the length of this CSO (this is sum of the the euclidean distances between all successive path points).
| CSOManager * ml::CSO::getManager | ( | ) | const |
|
inline |
| unsigned int ml::CSO::getNumSelectedSeedPoints | ( | ) | const |
Returns the number of selected seed points.
| float ml::CSO::getPathPointAlpha | ( | ) | const |
Returns the alpha value of the path points.
| Vector3 ml::CSO::getPathPointColor | ( | ) | const |
Returns the color of the path points.
|
inline |
| CSOPathPointsStyle ml::CSO::getPathPointStyle | ( | ) | const |
Returns the style of the path points.
| float ml::CSO::getPathPointWidth | ( | ) | const |
Returns the width of the path points.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| float ml::CSO::getSeedPointAlpha | ( | ) | const |
Returns the alpha value of the seed points.
| CSOSeedPoint * ml::CSO::getSeedPointAt | ( | unsigned int | index | ) | const |
Returns a pointer to the seed point at the specified index.
| Vector3 ml::CSO::getSeedPointColor | ( | ) | const |
Returns the color of the seed points.
| bool ml::CSO::getSeedPointIndex | ( | CSOSeedPoint * | sPoint, |
| unsigned int & | index ) const |
Sets the sIndex to the index of the specified seed point and returns whether such a seed point exists.
| float ml::CSO::getSeedPointSize | ( | ) | const |
Returns the size of the seed points.
| int ml::CSO::getSeedPointStyle | ( | ) | const |
Returns the style of the seed points.
| CSOSeedPoint * ml::CSO::getSelectedSeedPointAt | ( | unsigned int | index | ) | const |
Returns a pointer to a selected seed point at the specified index.
| bool ml::CSO::getShowState | ( | ) | const |
Returns the 'show' status of this CSO.
|
inline |
| int ml::CSO::getTimePointIndex | ( | ) | const |
Returns the time point index of this CSO.
| unsigned int ml::CSO::getTotalNumPathPoints | ( | ) | const |
Returns the total number of path points in this CSO; this number may differ from the number of path points obtained by a flattened positions vector.
| unsigned int ml::CSO::getTotalNumUniquePathPoints | ( | ) | const |
Returns the total number of unique path points in this CSO; this number equals the number of path points obtained by a flattened positions vector.
|
inline |
|
inline |
|
inline |
| CSOBoundingBox ml::CSO::getVoxelBoundingBox | ( | const Matrix4 & | worldToVoxelMatrix, |
| size_t | hashKey ) const |
Returns the bounding box of this contour in voxel coordinates computed by the specified (image) matrix.
| CSOBoundingBox ml::CSO::getVoxelBoundingBoxSeedPoints | ( | const Matrix4 & | worldToVoxelMatrix, |
| size_t | hashKey ) const |
Returns the bounding box of the seed points of this CSO in voxel coordinates computed by the specified (image) matrix.
| bool ml::CSO::getVoxelizeState | ( | ) | const |
Returns the 'voxelize' state of this CSO.
| int ml::CSO::getVoxelWriteMode | ( | ) | const |
Returns the voxel write mode of this CSO.
| float ml::CSO::getVoxelWriteValue | ( | ) | const |
Returns the voxel write value of this CSO.
| const CSOBoundingBox & ml::CSO::getWorldBoundingBox | ( | ) | const |
Returns the bounding box of this contour in world coordinates.
|
inline |
| CSOPathPoints * ml::CSO::insertPathPointsEndStart | ( | ) |
Inserts a CSOPathPoint list between the ending and the starting seed points and returns a pointer to it.
| CSOPathPoints * ml::CSO::insertPathPointsEndStartNoEvent | ( | ) |
Inserts a CSOPathPoint list between the ending and the starting seed points and returns a pointer to it.
| CSOSeedPoint * ml::CSO::insertSeedPointAt | ( | CSOPathPoints * | toBeSplitPath, |
| const Vector3 & | toInsertPos ) |
Inserts a seed point into the specified toBeSplitPath at the specified position.
|
inline |
|
inline |
|
inline |
Returns whether the CSO is closed.
Definition at line 305 of file CSO.h.
Referenced by setInitialSeedAndPathPointsNoEvent(), setIsClosed(), and setSeedAndPathPoints().
| bool ml::CSO::isEmpty | ( | ) | const |
| bool ml::CSO::isInGroup | ( | const CSOGroup * | group | ) | const |
| bool ml::CSO::isInGroup | ( | unsigned int | groupId | ) | const |
|
inline |
Returns the plane status (do all seed points lie in a plane?). If the method returns 'true', the plane normal is also valid. Note that a CSO forming a straight line is not considered to be 'in plane' as it lies in an infinite number of planes.
Definition at line 275 of file CSO.h.
References isInPlane().
Referenced by isInPlane().
| bool ml::CSO::isInPlane | ( | Vector3 & | planeNormal | ) | const |
Returns the plane status and fills the argument vector with the plane normal (only valid if all seed points lie in a plane). Note that a CSO forming a straight line is not considered to be 'in plane' as it lies in an infinite number of planes.
| bool ml::CSO::isPoint | ( | ) | const |
Returns whether the CSO is just a point.
| bool ml::CSO::isSelected | ( | ) | const |
| bool ml::CSO::isSelectedSeedPoint | ( | CSOSeedPoint * | sPoint | ) | const |
Returns whether the specified seed point is selected.
| bool ml::CSO::isSelfIntersecting | ( | ) | const |
Returns whether this CSO is self-intersecting.
| void ml::CSO::loadAttributes | ( | std::istream & | inStream, |
| short | version, | ||
| bool | swapBytes, | ||
| bool | useAscii = false ) |
Loads attributes from stream.
| void ml::CSO::moveSeedPointsAndPathPoints | ( | const Vector3 & | offset | ) |
Moves all seed points and path points by the specified coordinate offset.
| void ml::CSO::moveSeedPointsAndPathPoints | ( | const Vector3 & | offset, |
| int | timepoint ) |
Moves all seed points and path points by the specified coordinate offset and sets the CSO to the specified timepoint.
| void ml::CSO::moveSeedPointsAndPathPoints | ( | double | dx, |
| double | dy, | ||
| double | dz ) |
Moves all seed points and path points by the specified coordinate offset.
| void ml::CSO::moveSeedPointsAndPathPoints | ( | double | dx, |
| double | dy, | ||
| double | dz, | ||
| int | timepoint ) |
Moves all seed points and path points by the specified coordinate offset and sets the CSO to the specified timepoint.
| void ml::CSO::moveSingleSeedPoint | ( | CSOSeedPoint * | sPoint, |
| double | dx, | ||
| double | dy, | ||
| double | dz ) |
Moves a certain seed point by the specified coordinate offset.
|
inline |
|
inline |
|
inline |
Returns the number of seed points.
Definition at line 151 of file CSO.h.
Referenced by getFirstSeedPoint(), getLastSeedPoint(), setInitialSeedAndPathPointsNoEvent(), and setSeedAndPathPoints().
| void ml::CSO::pathChanged | ( | ) |
Sets any pre-computed values depending on the exact path to invalid.
| void ml::CSO::removeAllSeedAndPathPoints | ( | ) |
Removes all seed points and path point lists from this CSO.
| void ml::CSO::removeFromAllGroups | ( | ) |
Removes this CSO from all its CSOGroups.
| void ml::CSO::removeFromGroup | ( | CSOGroup & | group, |
| bool | useUndoRedo = true ) |
| void ml::CSO::removeSeedPoint | ( | CSOSeedPoint * | sPoint | ) |
Removes the specified seed point from this CSO.
|
inline |
| void ml::CSO::resortSeedPointsClockwise | ( | ) |
| void ml::CSO::reverseSeedPointOrder | ( | ) |
Reverses the order of all seed points and clears all path points in between.
| bool ml::CSO::saveAttributes | ( | std::ostream & | outStream, |
| bool | useAscii = false ) |
Save attributes to stream and returns whether the saving was successful.
| void ml::CSO::setAbsoluteMovementCommand | ( | double | fromX, |
| double | fromY, | ||
| double | fromZ, | ||
| double | toX, | ||
| double | toY, | ||
| double | toZ, | ||
| int | fromTimePointIndex, | ||
| int | toTimePointIndex ) |
Sets the absolute movement for undo/redo.
| void ml::CSO::setAbsoluteSeedPointMovementCommand | ( | ) |
Sets the absolute movement of a single seed point for undo/redo.
| void ml::CSO::setAllValuesTo | ( | float | value | ) |
Sets all position values to the specified value.
| void ml::CSO::setAttributesFrom | ( | const CSO *const | cso | ) |
|
inline |
| void ml::CSO::setCSOList | ( | CSOList * | csoList | ) |
| void ml::CSO::setDescription | ( | std::string | description | ) |
Sets the description of this CSO.
| void ml::CSO::setEditableState | ( | bool | state | ) |
Sets the 'editable' state of this CSO.
| void ml::CSO::setId | ( | unsigned int | newId | ) |
| void ml::CSO::setInitialSeedAndPathPointsNoEvent | ( | unsigned int | numSeedPoints, |
| bool | isClosed = true ) |
Like setSeedAndPathPoints, but this method is faster because no events are emitted and no checks are done.
References isClosed(), and numSeedPoints().
| void ml::CSO::setInsertRemoveSeedPointCommand | ( | ) |
Triggers the according undo/redo command to be put on the stack.
Referenced by storeInUndoManager().
| void ml::CSO::setIsClosed | ( | bool | isClosed | ) |
Sets the closed state of this contour. Besides setting the closed state, the method also inserts a new CSOPathPoint list between the last and the first seed point, as well as connecting those via pointers. If you just want to set the closed state without any side effects, use the method setPrivateIsClosed().
References isClosed().
|
inline |
|
inline |
| void ml::CSO::setLabel | ( | const std::string & | label | ) |
Sets the label of this CSO.
|
inline |
Sets the need of being interpolated to the specified seed point and to the CSO's state.
Definition at line 323 of file CSO.h.
References ml::CSOSeedPoint::setNeedsInterpolation().
| void ml::CSO::setNeedInterpolationAllSeedPoints | ( | bool | needsInterpolation | ) |
Sets the need for interpolation to all member seed points.
|
inline |
| void ml::CSO::setPathPointAlpha | ( | float | alpha | ) |
Sets the alpha value of the path points.
| void ml::CSO::setPathPointColor | ( | const Vector3 & | color | ) |
Sets the color of the path points.
| void ml::CSO::setPathPointStyle | ( | CSOPathPointsStyle | style | ) |
Sets the style of the path points.
|
inline |
Sets the style of the path points as an int.
Definition at line 374 of file CSO.h.
References setPathPointStyle().
Referenced by setPathPointStyle().
| void ml::CSO::setPathPointWidth | ( | float | width | ) |
Sets the width of the path points.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void ml::CSO::setSeedAndPathPoints | ( | unsigned int | numSeedPoints, |
| bool | isClosed = true ) |
Generates the specified number of seed points and path point lists between those. The seed points are all set to position 0,0,0 initially. The CSO is closed by default. Existing seed point and path point are cleared.
References isClosed(), and numSeedPoints().
| void ml::CSO::setSeedPointAlpha | ( | float | alpha | ) |
Sets the alpha value of the seed points.
| void ml::CSO::setSeedPointColor | ( | const Vector3 & | color | ) |
Sets the color of the seed points.
| void ml::CSO::setSeedPointsAndPathPoints | ( | const CSO * | cso | ) |
| void ml::CSO::setSeedPointSelectedAt | ( | unsigned int | index | ) |
Sets the seed point at the specified index selected.
| void ml::CSO::setSeedPointSize | ( | float | size | ) |
Sets the size of the seed points.
| void ml::CSO::setSeedPointStyle | ( | int | style | ) |
Sets the style of the seed points.
| void ml::CSO::setSelectedSeedPoint | ( | CSOSeedPoint * | sPoint | ) |
Sets the specified seed point as being selected, and deselects all previously selected seed points.
| void ml::CSO::setShowState | ( | bool | state | ) |
Sets the 'show' status of this CSO.
|
inline |
|
inline |
|
inline |
| void ml::CSO::setVoxelizeState | ( | bool | state | ) |
Sets the 'voxelize' state of this CSO.
| void ml::CSO::setVoxelWriteMode | ( | int | mode | ) |
Sets the voxel write mode of this CSO.
| void ml::CSO::setVoxelWriteValue | ( | float | value | ) |
Sets the voxel write value of this CSO.
|
inline |
Stores the geometric information of the CSO in the UndoRedo manager.
Definition at line 73 of file CSO.h.
References setInsertRemoveSeedPointCommand().
| void ml::CSO::storeVisualAttributesInUndoManager | ( | ) |
| void ml::CSO::swapPoints | ( | CSO & | other | ) |
Swaps the seed and path points of two CSOs. No events are emitted.
References CSO().
|
friend |
Definition at line 506 of file CSO.h.
References CSOList.
Referenced by CSO(), CSO(), CSOList, getCSOList(), and setCSOList().