 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
21 #include <ui_tracePolylineDlg.h>
30 public Ui::TracePolyLineDlg {
40 virtual bool linkWith(QWidget* win)
override;
41 virtual bool start()
override;
42 virtual void stop(
bool accepted)
override;
66 virtual void onItemPicked(
const PickedItem& pi)
override;
bool isClosed() const
Returns whether the polyline is closed or not.
Definition: Polyline.h:26
void addOverridenShortcut(Qt::Key key)
Definition: ecvOverlayDialog.cpp:114
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
normal_z x
Definition: my_point_types.h:165
Type x
Definition: CVGeom.h:137
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
Vector2Tpl< double > CCVector2d
Double 2D Vector.
Definition: CVGeom.h:783
QPoint clickPoint
Definition: ecvPickingListener.h:29
virtual bool trianglePicking(const CCVector2d &clickPos, const ccGLCameraParameters &camera, int &nearestTriIndex, double &nearestSquareDist, CCVector3d &nearestPoint, CCVector3d *barycentricCoords=nullptr) const
Brute force triangle picking.
Definition: ecvGenericMesh.cpp:582
@ MESH
Definition: CVTypes.h:105
bool addListener(ccPickingListener *listener, bool exclusive=false, bool autoStartPicking=true, ecvDisplayTools::PICKING_MODE mode=ecvDisplayTools::POINT_OR_TRIANGLE_PICKING)
Adds a listener.
Definition: ecvPickingHub.cpp:104
@ POINT_CLOUD
Definition: CVTypes.h:104
void setForeground(bool state)
Defines if the polyline is drawn in background or foreground.
Definition: ecvPolyline.cpp:146
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
unsigned size() const override
Definition: PointCloudTpl.h:38
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Point/triangle picking listener interface.
Definition: ecvPickingListener.h:21
const CCVector3 * getPointPersistentPtr(unsigned index) override
Definition: PointCloudTpl.h:160
virtual bool isEnabled() const
Returns whether the object is enabled or not.
Definition: ecvObject.h:97
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
static MainWindow * TheInstance()
Returns the unique instance of this object.
Definition: MainWindow.cpp:2037
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
void addToDB(const QStringList &filenames, QString fileFilter=QString(), bool displayDialog=true)
Definition: MainWindow.cpp:2152
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
virtual bool linkWith(QWidget *win)
Links the overlay dialog with a MDI window.
Definition: ecvOverlayDialog.cpp:32
int width
Definition: FileIOFactory.cpp:142
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
#define slots
Definition: PythonPlugin.cpp:25
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
normal_z y
Definition: my_point_types.h:168
ccHObject * entity
Definition: ecvPickingListener.h:30
void setWidth(PointCoordinateType width)
Sets the width of the line.
Definition: ecvPolyline.cpp:282
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
Definition: sfEditDlg.h:16
virtual bool start()
Starts process.
Definition: ecvOverlayDialog.cpp:80
constexpr Rgb green(0, MAX, 0)
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
Generic mesh interface.
Definition: ecvGenericMesh.h:28
bool pointPicking(const CCVector2d &clickPos, const ccGLCameraParameters &camera, int &nearestPointIndex, double &nearestSquareDist, double pickWidth=2.0, double pickHeight=2.0, bool autoComputeOctree=false)
Point picking (brute force or octree-driven)
Definition: ecvGenericPointCloud.cpp:253
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
void shortcutTriggered(int key)
Signal emitted when an overridden key shortcut is pressed.
CCVector3 P3D
Definition: ecvPickingListener.h:32
virtual void stop(bool accepted)
Stops process/dialog.
Definition: ecvOverlayDialog.cpp:91
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
bool project(const CCVector3d &input3D, CCVector3d &output2D, bool *inFrustum=nullptr) const
Projects a 3D point in 2D (+ normalized 'z' coordinate)
Definition: ecvGenericDisplayTools.h:561
@ WIDGET_POLYLINE
Definition: ecvDrawContext.h:88
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
virtual void setRedraw(bool state)
Sets entity redraw mode.
Definition: ecvDrawableObject.h:48
Generic overlay dialog interface.
Definition: ecvOverlayDialog.h:17
Point/triangle picking hub.
Definition: ecvPickingHub.h:29
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
Type y
Definition: CVGeom.h:137
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
virtual void setGlobalScale(double scale) override
Definition: ecvPolyline.cpp:578
virtual void setTempColor(const ecvColor::Rgb &col, bool autoActivate=true)
Sets current temporary (unique)
Definition: ecvDrawableObject.cpp:74
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
Picked item.
Definition: ecvPickingListener.h:26
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Type u[3]
Definition: CVGeom.h:139
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
void removeListener(ccPickingListener *listener, bool autoStopPickingIfLast=true)
Removes a listener.
Definition: ecvPickingHub.cpp:165
void importParametersFrom(const ccPolyline &poly)
Copy the parameters from another polyline.
Definition: ecvPolyline.cpp:125
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
Colored polyline.
Definition: ecvPolyline.h:23
QString getViewId() const
Definition: ecvHObject.h:225