 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #include "ui_cvContourToolDlg.h"
13 class vtkContourWidget;
25 virtual void start()
override;
26 virtual void reset()
override;
29 virtual void setColor(
double r,
double g,
double b)
override;
30 virtual bool getColor(
double& r,
double& g,
double& b)
const override;
40 void onDataChanged(vtkPolyData* pd);
41 void on_widgetVisibilityCheckBox_toggled(
bool checked);
42 void on_showNodesCheckBox_toggled(
bool checked);
43 void on_closedLoopCheckBox_toggled(
bool checked);
44 void on_lineWidthSpinBox_valueChanged(
double value);
47 void createNewContour();
50 Ui::ContourToolDlg* m_configUi =
nullptr;
52 std::map<int, vtkSmartPointer<vtkContourWidget>> m_contours;
53 int m_currentContourId = -1;
56 static int s_contourIdCounter;
65 double m_currentColor[3] = {0.0, 1.0, 0.0};
68 QString m_instanceLabel;
72 void applyFontProperties()
override;
virtual unsigned size() const =0
Returns the number of points.
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:136
Definition: WidgetMap.h:20
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
void vtkInitOnce(T **obj)
Definition: vtkutils.h:44
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
#define slots
Definition: PythonPlugin.cpp:25
void setWidth(PointCoordinateType width)
Sets the width of the line.
Definition: ecvPolyline.cpp:282
constexpr Rgb green(0, MAX, 0)
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
Type z
Definition: CVGeom.h:137
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
void SetLabelSuffix(const char *suffix)
Set the label suffix to identify this contour instance.
Definition: cvConstrainedContourRepresentation.cpp:57
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
Extended contour representation with instance label support.
Definition: cvConstrainedContourRepresentation.h:21
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
vtkTextActor * GetLabelActor()
Get the label actor (for property access)
Definition: cvConstrainedContourRepresentation.h:63
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
static ccPolyline * ConvertToPolyline(vtkPolyData *polydata, bool silent=false)
Definition: vtk2cc.cpp:392
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
void BuildRepresentation() override
Build the representation (override to update label position)
Definition: cvConstrainedContourRepresentation.cpp:117
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
bool LessThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:23
cvPointPickingHelper is a helper class for supporting keyboard shortcut-based point picking in measur...
Definition: cvPointPickingHelper.h:43
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
Colored polyline.
Definition: ecvPolyline.h:23