 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
11 #include "ui_cvDistanceToolDlg.h"
24 virtual void start()
override;
25 virtual void reset()
override;
30 virtual void getPoint1(
double pos[3])
const override;
31 virtual void getPoint2(
double pos[3])
const override;
32 virtual void setPoint1(
double pos[3])
override;
33 virtual void setPoint2(
double pos[3])
override;
34 virtual void setColor(
double r,
double g,
double b)
override;
35 virtual bool getColor(
double& r,
double& g,
double& b)
const override;
47 void pickAlternatingPoint(
double x,
double y,
double z);
48 void pickKeyboardPoint1(
double x,
double y,
double z);
49 void pickKeyboardPoint2(
double x,
double y,
double z);
50 void pickNormalDirection(
51 double px,
double py,
double pz,
double nx,
double ny,
double nz);
53 void on_point1XSpinBox_valueChanged(
double arg1);
54 void on_point1YSpinBox_valueChanged(
double arg1);
55 void on_point1ZSpinBox_valueChanged(
double arg1);
56 void on_point2XSpinBox_valueChanged(
double arg1);
57 void on_point2YSpinBox_valueChanged(
double arg1);
58 void on_point2ZSpinBox_valueChanged(
double arg1);
59 void onDistanceChanged(
double dist);
60 void onWorldPoint1Changed(
double* pos);
61 void onWorldPoint2Changed(
double* pos);
62 void on_pickPoint1_toggled(
bool checked);
63 void on_pickPoint2_toggled(
bool checked);
64 void on_rulerModeCheckBox_toggled(
bool checked);
65 void on_rulerDistanceSpinBox_valueChanged(
double value);
66 void on_numberOfTicksSpinBox_valueChanged(
int value);
67 void on_scaleSpinBox_valueChanged(
double value);
68 void on_labelFormatLineEdit_textChanged(
const QString& text);
69 void on_widgetVisibilityCheckBox_toggled(
bool checked);
70 void on_labelVisibilityCheckBox_toggled(
bool checked);
71 void on_lineWidthSpinBox_valueChanged(
double value);
75 void updateDistanceDisplay();
77 Ui::DistanceToolDlg* m_configUi =
nullptr;
86 bool m_pickPoint1Next =
true;
89 double m_currentColor[3] = {0.0, 1.0, 0.0};
92 QString m_instanceLabel;
96 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
void SetScale(double scale)
Set/Get scale factor.
Definition: cvConstrainedLineRepresentation.cpp:111
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
Bounding box structure.
Definition: ecvBBox.h:25
@ POINT_CLOUD
Definition: CVTypes.h:104
void pickNormal(double px, double py, double pz, double nx, double ny, double nz)
Emitted when a point and normal are picked.
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
@ CoordinatesAndNormal
Pick both coordinates and normal.
Definition: cvPointPickingHelper.h:50
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
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
Extended LineRepresentation with distance display and ruler features.
Definition: cvConstrainedLineRepresentation.h:30
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
Definition: ccGuiPythonInstance.h:15
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
Handle representation with custom translation axis support.
Definition: cvCustomAxisHandleRepresentation.h:24
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
static double distance(T *pot1, T *pot2)
Definition: utils.h:111
cvPointPickingHelper is a helper class for supporting keyboard shortcut-based point picking in measur...
Definition: cvPointPickingHelper.h:43
const float * getPosition() const
Returns relative position.
Definition: ecv2DLabel.h:63