 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #include "ui_cvProtractorToolDlg.h"
27 virtual void start()
override;
28 virtual void reset()
override;
33 virtual void getPoint1(
double pos[3])
const override;
34 virtual void getPoint2(
double pos[3])
const override;
35 virtual void getCenter(
double pos[3])
const override;
36 virtual void setPoint1(
double pos[3])
override;
37 virtual void setPoint2(
double pos[3])
override;
38 virtual void setCenter(
double pos[3])
override;
39 virtual void setColor(
double r,
double g,
double b)
override;
40 virtual bool getColor(
double& r,
double& g,
double& b)
const override;
54 void pickKeyboardPoint1(
double x,
double y,
double z);
55 void pickKeyboardCenter(
double x,
double y,
double z);
56 void pickKeyboardPoint2(
double x,
double y,
double z);
58 void on_point1XSpinBox_valueChanged(
double arg1);
59 void on_point1YSpinBox_valueChanged(
double arg1);
60 void on_point1ZSpinBox_valueChanged(
double arg1);
61 void on_centerXSpinBox_valueChanged(
double arg1);
62 void on_centerYSpinBox_valueChanged(
double arg1);
63 void on_centerZSpinBox_valueChanged(
double arg1);
64 void on_point2XSpinBox_valueChanged(
double arg1);
65 void on_point2YSpinBox_valueChanged(
double arg1);
66 void on_point2ZSpinBox_valueChanged(
double arg1);
67 void onAngleChanged(
double angle);
68 void onWorldPoint1Changed(
double* pos);
69 void onWorldPoint2Changed(
double* pos);
70 void onWorldCenterChanged(
double* pos);
71 void on_pickPoint1_toggled(
bool checked);
72 void on_pickCenter_toggled(
bool checked);
73 void on_pickPoint2_toggled(
bool checked);
74 void on_widgetVisibilityCheckBox_toggled(
bool checked);
75 void on_arcVisibilityCheckBox_toggled(
bool checked);
79 void updateAngleDisplay();
82 void applyTextPropertiesToLabel();
84 Ui::ProtractorToolDlg* m_configUi =
nullptr;
91 double m_currentColor[3] = {0.0, 1.0, 0.0};
94 QString m_instanceLabel;
98 void applyFontProperties()
override;
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
Definition: ecv2DLabel.cpp:400
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
void setRenderer(vtkRenderer *renderer)
Set the VTK renderer for picking.
Definition: cvPointPickingHelper.cpp:104
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
Definition: ecv2DLabel.h:114
normal_z x
Definition: my_point_types.h:165
Vector3Tpl< T > getCenter() const
Returns center.
Definition: BoundingBox.h:164
Type x
Definition: CVGeom.h:137
Definition: signalblocker.h:16
virtual unsigned size() const =0
Returns the number of points.
void displayPointLegend(bool state)
Whether to display the point(s) legend (title only)
Definition: ecv2DLabel.h:108
int offset
Definition: FileIOFactory.cpp:135
Type norm() const
Returns vector norm.
Definition: CVGeom.h:424
void pick(double x, double y, double z)
Emitted when a point is picked.
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
@ MESH
Definition: CVTypes.h:105
static bool PrintVerbose(const char *format,...)
Prints out a verbose formatted message in console.
Definition: CVLog.cpp:103
Bounding box structure.
Definition: ecvBBox.h:25
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
@ POINT_CLOUD
Definition: CVTypes.h:104
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
unsigned size() const override
Definition: PointCloudTpl.h:38
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
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
2D label (typically attached to points)
Definition: ecv2DLabel.h:22
Definition: WidgetMap.h:20
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
Definition: CVLog.cpp:153
void setPosition(float x, float y)
Sets relative position.
Definition: ecv2DLabel.cpp:225
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
normal_z y
Definition: my_point_types.h:168
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
void setCollapsed(bool state)
Whether to collapse label or not.
Definition: ecv2DLabel.h:102
void setContextWidget(QWidget *widget)
Set the context widget for the shortcut.
Definition: cvPointPickingHelper.cpp:109
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
Generic mesh interface.
Definition: ecvGenericMesh.h:28
std::function< void(std::shared_ptr< core::Tensor >)> callback
Definition: FilamentRenderer.cpp:183
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
Type z
Definition: CVGeom.h:137
virtual ccBBox getBB_recursive(bool withGLFeatures=false, bool onlyEnabledChildren=true)
Returns the bounding-box of this entity and it's children.
Definition: ecvHObject.cpp:759
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
void setInteractor(vtkRenderWindowInteractor *interactor)
Set the VTK interactor for picking.
Definition: cvPointPickingHelper.cpp:98
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
normal_z z
Definition: my_point_types.h:165
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
cvPointPickingHelper is a helper class for supporting keyboard shortcut-based point picking in measur...
Definition: cvPointPickingHelper.h:43
Extended PolyLineRepresentation adding angle display functionality.
Definition: cvConstrainedPolyLineRepresentation.h:35