![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Extended contour representation with instance label support. More...
#include <cvConstrainedContourRepresentation.h>
Public Member Functions | |
| vtkTypeMacro (cvConstrainedContourRepresentation, vtkOrientedGlyphContourRepresentation) | |
| void | SetLabelSuffix (const char *suffix) |
| Set the label suffix to identify this contour instance. More... | |
| const char * | GetLabelSuffix () const |
| Get the current label suffix. More... | |
| void | SetShowLabel (int show) |
| Show or hide the instance label. More... | |
| int | GetShowLabel () const |
| void | BuildRepresentation () override |
| Build the representation (override to update label position) More... | |
| void | SetRenderer (vtkRenderer *ren) override |
| Set the renderer (override to add label actor) More... | |
| void | SetVisibility (vtkTypeBool visible) override |
| Set visibility (override to control label visibility) More... | |
| vtkTextActor * | GetLabelActor () |
| Get the label actor (for property access) More... | |
Static Public Member Functions | |
| static cvConstrainedContourRepresentation * | New () |
Protected Member Functions | |
| cvConstrainedContourRepresentation () | |
| ~cvConstrainedContourRepresentation () override | |
| void | UpdateLabel () |
| Update the label text and position. More... | |
Extended contour representation with instance label support.
Extends vtkOrientedGlyphContourRepresentation to add label suffix functionality, allowing multiple contour instances to be identified by their labels displayed in the VTK view.
|
protected |
|
overrideprotected |
|
override |
Build the representation (override to update label position)
References UpdateLabel().
Referenced by cvContourTool::setInstanceLabel().
|
inline |
Get the label actor (for property access)
Referenced by cvContourTool::lockInteraction(), and cvContourTool::unlockInteraction().
| const char * cvConstrainedContourRepresentation::GetLabelSuffix | ( | ) | const |
Get the current label suffix.
|
inline |
|
static |
| void cvConstrainedContourRepresentation::SetLabelSuffix | ( | const char * | suffix | ) |
Set the label suffix to identify this contour instance.
| suffix | The suffix string (e.g., "#1", "#2") |
References UpdateLabel().
Referenced by cvContourTool::setInstanceLabel().
|
override |
Set the renderer (override to add label actor)
| void cvConstrainedContourRepresentation::SetShowLabel | ( | int | show | ) |
Show or hide the instance label.
|
override |
Set visibility (override to control label visibility)
|
protected |
Update the label text and position.
Referenced by BuildRepresentation(), and SetLabelSuffix().
| cvConstrainedContourRepresentation::vtkTypeMacro | ( | cvConstrainedContourRepresentation | , |
| vtkOrientedGlyphContourRepresentation | |||
| ) |