![]() |
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.
Definition at line 21 of file cvConstrainedContourRepresentation.h.
|
protected |
Definition at line 22 of file cvConstrainedContourRepresentation.cpp.
|
overrideprotected |
Definition at line 44 of file cvConstrainedContourRepresentation.cpp.
|
override |
Build the representation (override to update label position)
Definition at line 117 of file cvConstrainedContourRepresentation.cpp.
References UpdateLabel().
Referenced by cvContourTool::setInstanceLabel().
|
inline |
Get the label actor (for property access)
Definition at line 63 of file cvConstrainedContourRepresentation.h.
Referenced by cvContourTool::lockInteraction(), and cvContourTool::unlockInteraction().
| const char * cvConstrainedContourRepresentation::GetLabelSuffix | ( | ) | const |
Get the current label suffix.
Definition at line 74 of file cvConstrainedContourRepresentation.cpp.
|
inline |
Definition at line 43 of file cvConstrainedContourRepresentation.h.
|
static |
| void cvConstrainedContourRepresentation::SetLabelSuffix | ( | const char * | suffix | ) |
Set the label suffix to identify this contour instance.
| suffix | The suffix string (e.g., "#1", "#2") |
Definition at line 57 of file cvConstrainedContourRepresentation.cpp.
References UpdateLabel().
Referenced by cvContourTool::setInstanceLabel().
|
override |
Set the renderer (override to add label actor)
Definition at line 90 of file cvConstrainedContourRepresentation.cpp.
| void cvConstrainedContourRepresentation::SetShowLabel | ( | int | show | ) |
Show or hide the instance label.
Definition at line 79 of file cvConstrainedContourRepresentation.cpp.
|
override |
Set visibility (override to control label visibility)
Definition at line 106 of file cvConstrainedContourRepresentation.cpp.
|
protected |
Update the label text and position.
Definition at line 126 of file cvConstrainedContourRepresentation.cpp.
Referenced by BuildRepresentation(), and SetLabelSuffix().
| cvConstrainedContourRepresentation::vtkTypeMacro | ( | cvConstrainedContourRepresentation | , |
| vtkOrientedGlyphContourRepresentation | |||
| ) |