 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
8 #ifndef CV_CONSTRAINED_POLYLINE_REPRESENTATION_H
9 #define CV_CONSTRAINED_POLYLINE_REPRESENTATION_H
11 #include <vtkPolyLineRepresentation.h>
16 class vtkPolyDataMapper2D;
17 class vtkHandleRepresentation;
39 vtkPolyLineRepresentation);
82 this->SetHandlePosition(0, pos);
85 this->GetHandlePosition(0, pos);
91 this->SetHandlePosition(1, pos);
94 this->GetHandlePosition(1, pos);
100 this->SetHandlePosition(2, pos);
103 this->GetHandlePosition(2, pos);
223 #endif // CV_CONSTRAINED_POLYLINE_REPRESENTATION_H
void SetPoint2DisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:563
void InstantiateHandleRepresentation()
Compatibility: Instantiate handle representations.
Definition: cvConstrainedPolyLineRepresentation.h:124
vtkHandleRepresentation * GetPoint2Representation()
Definition: cvConstrainedPolyLineRepresentation.cpp:608
vtkTypeBool HasTranslucentPolygonalGeometry() override
Definition: cvConstrainedPolyLineRepresentation.cpp:497
vtkGetObjectMacro(AngleLabelActor, vtkTextActor)
Get the angle label actor for custom styling.
~cvConstrainedPolyLineRepresentation() override
Definition: cvConstrainedPolyLineRepresentation.cpp:65
void GetCenterDisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:549
vtkTypeBool ShowAngleArc
Definition: cvConstrainedPolyLineRepresentation.h:204
vtkTypeBool ShowAngleLabel
Definition: cvConstrainedPolyLineRepresentation.h:203
vtkTypeMacro(cvConstrainedPolyLineRepresentation, vtkPolyLineRepresentation)
void SetPoint1WorldPosition(double pos[3])
Compatibility API for vtkAngleRepresentation.
Definition: cvConstrainedPolyLineRepresentation.h:81
vtkActor2D * AngleArcActor
Definition: cvConstrainedPolyLineRepresentation.h:213
vtkPolyDataMapper2D * AngleArcMapper
Definition: cvConstrainedPolyLineRepresentation.h:214
void SetPoint2WorldPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.h:99
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Definition: cvConstrainedPolyLineRepresentation.cpp:490
double ArcRadius
Definition: cvConstrainedPolyLineRepresentation.h:205
void SetPoint1DisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:502
const double * e
Definition: essential_matrix_poly.h:10
vtkBooleanMacro(ShowAngleLabel, vtkTypeBool)
vtkGetMacro(ShowAngleLabel, vtkTypeBool)
vtkPolyData * AngleArcPolyData
Definition: cvConstrainedPolyLineRepresentation.h:215
void GetPoint1WorldPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.h:84
char * LabelSuffix
Definition: cvConstrainedPolyLineRepresentation.h:207
double Angle
Definition: cvConstrainedPolyLineRepresentation.h:206
int RenderOpaqueGeometry(vtkViewport *viewport) override
Definition: cvConstrainedPolyLineRepresentation.cpp:479
a[190]
Definition: essential_matrix_poly.h:19
void GetPoint2DisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:579
vtkSetMacro(ShowAngleLabel, vtkTypeBool)
Control visibility of the angle label.
int RenderOverlay(vtkViewport *viewport) override
Definition: cvConstrainedPolyLineRepresentation.cpp:466
vtkSetClampMacro(ArcRadius, double, 0.0, VTK_DOUBLE_MAX)
Set/Get the radius of the angle arc.
void BuildRepresentation() override
Build the representation for the angle measurement.
Definition: cvConstrainedPolyLineRepresentation.cpp:123
cvConstrainedPolyLineRepresentation()
Definition: cvConstrainedPolyLineRepresentation.cpp:31
void ReleaseGraphicsResources(vtkWindow *w) override
Release graphics resources.
Definition: cvConstrainedPolyLineRepresentation.cpp:455
vtkHandleRepresentation * GetPoint1Representation()
Compatibility: Get handle representations.
Definition: cvConstrainedPolyLineRepresentation.cpp:595
void SetRenderer(vtkRenderer *ren) override
Set the renderer for this representation.
Definition: cvConstrainedPolyLineRepresentation.cpp:98
int count
Definition: FileIOFactory.cpp:132
void SetVisibility(vtkTypeBool visible) override
Override SetVisibility to also control arc and label actors.
Definition: cvConstrainedPolyLineRepresentation.cpp:420
vtkStandardNewMacro(cvConstrainedPolyLineRepresentation)
void GetCenterWorldPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.h:93
vtkSetStringMacro(LabelSuffix)
Set/Get angle label suffix (e.g., " #1", " #2")
void SetCenterDisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:533
static cvConstrainedPolyLineRepresentation * New()
vtkTextActor * AngleLabelActor
Definition: cvConstrainedPolyLineRepresentation.h:210
vtkHandleRepresentation * GetCenterRepresentation()
Definition: cvConstrainedPolyLineRepresentation.cpp:603
double GetAngle()
Calculate the angle formed by the three handles.
Definition: cvConstrainedPolyLineRepresentation.cpp:278
void GetActors2D(vtkPropCollection *pc) override
Render the angle representation.
Definition: cvConstrainedPolyLineRepresentation.cpp:442
void BuildAngleArc()
Build the angle arc geometry.
Definition: cvConstrainedPolyLineRepresentation.cpp:316
vtkGetStringMacro(LabelSuffix)
Extended PolyLineRepresentation adding angle display functionality.
Definition: cvConstrainedPolyLineRepresentation.h:35
void GetPoint1DisplayPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.cpp:519
void GetPoint2WorldPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.h:102
void SetCenterWorldPosition(double pos[3])
Definition: cvConstrainedPolyLineRepresentation.h:90