Base class for MarkupModel Parts. More...
Public Types | |
enum | PartType { LABELS, TEXTS_3D, TRIANGLES, INSTANCED_GEOMETRY, LINES, POINTS, ARROWS, FIXED_SIZE_ARROW, FIXED_SIZE_SPHERE, FIXED_SIZE_IMAGE_GLYPH } |
Enum specifying the type of MarkupPart. More... | |
Public Member Functions | |
virtual PartType | type () const =0 |
Returns the type of Markup part. More... | |
virtual BoundingBox | boundingBox () const =0 |
Returns the current bounding box of the part. More... | |
bool | visible () const |
Returns true if the part is visible. More... | |
void | setVisible (bool visible) |
Sets if the part should be visible or not. More... | |
virtual int | priority () const =0 |
Returns the render priority of the part. More... | |
virtual void | setPriority (int priority)=0 |
Sets render priority of the part. More... | |
virtual const Mat4d & | transformation () const =0 |
Returns the current transformation matrix for the part. More... | |
virtual void | setTransformation (const Mat4d &matrix)=0 |
Sets the transformation matrix to use for the part. More... | |
![]() | |
void | addRef () const |
Increments the reference count for this object. More... | |
void | release () const |
Decrements the reference count for this object. More... | |
int | refCount () const |
Returns the reference count for this object. More... | |
void | setRefCountZero () const |
Sets the ref count to zero, but DOES NOT delete the object. More... | |
Base class for MarkupModel Parts.
Enum specifying the type of MarkupPart.
Enumerator | |
---|---|
LABELS |
Labels part: MarkupPartLabels. |
TEXTS_3D |
3d text: MarkupPartText3d |
TRIANGLES |
Triangles part: MarkupPartTriangles. |
INSTANCED_GEOMETRY |
Instanced Triangles part: MarkupPartInstancedGeometry. |
LINES |
Lines part: MarkupPartLines. |
POINTS |
Points part: MarkupPartPoints. |
ARROWS |
Arrows part: MarkupPartArrows. |
FIXED_SIZE_ARROW |
Fixed size arrow part: MarkupPartFixedSizeArrow. |
FIXED_SIZE_SPHERE |
Fixed size sphere part: MarkupPartFixedSizeSphere. |
FIXED_SIZE_IMAGE_GLYPH |
Fixed size image glyph part: MarkupPartFixedSizeGlyph. |
|
pure virtual |
Returns the current bounding box of the part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
|
pure virtual |
Returns the render priority of the part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
|
pure virtual |
Sets render priority of the part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
|
pure virtual |
Sets the transformation matrix to use for the part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
void cee::vis::MarkupPart::setVisible | ( | bool | visible | ) |
Sets if the part should be visible or not.
|
pure virtual |
Returns the current transformation matrix for the part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
|
pure virtual |
Returns the type of Markup part.
Implemented in cee::vis::MarkupPartLabels, cee::vis::MarkupPartInstancedGeometry, cee::vis::MarkupPartArrows, cee::vis::MarkupPartFixedSizeGlyph, cee::vis::MarkupPartFixedSizeSphere, cee::vis::MarkupPartLines, cee::vis::MarkupPartPoints, cee::vis::MarkupPartText3d, cee::vis::MarkupPartTriangles, and cee::vis::MarkupPartFixedSizeArrow.
bool cee::vis::MarkupPart::visible | ( | ) | const |
Returns true if the part is visible.