 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
20 #include <ui_graphicalSegmentationDlg.h>
28 public Ui::GraphicalSegmentationDlg {
57 virtual bool linkWith(QWidget* win)
override;
58 virtual bool start()
override;
59 virtual void stop(
bool accepted)
override;
103 bool unallocateVisibilityArrays);
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
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
void invalidateBoundingBox() override
Invalidates bounding box.
Definition: ecvPointCloud.cpp:1706
ccHObject * dbRootObject() override
Returns DB root (as a ccHObject)
Definition: MainWindow.cpp:2027
virtual ccHObjectContext removeObjectTemporarilyFromDBTree(ccHObject *obj)=0
Removes object temporarily from DB tree.
Definition: ecvGraphicalSegmentationOptionsDlg.h:16
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
virtual unsigned size() const =0
Returns the number of triangles.
virtual unsigned size() const =0
Returns the number of points.
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
static ccPolyline * ToPolyline(ccHObject *obj)
Converts current object to ccPolyline (if possible)
Definition: ecvHObjectCaster.cpp:141
@ GBL_SENSOR
Definition: CVTypes.h:117
@ MESH
Definition: CVTypes.h:105
void removeChild(ccHObject *child)
Definition: ecvHObject.cpp:1056
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
bool isShifted() const
Returns whether the cloud is shifted or not.
Definition: ecvShiftedObject.h:56
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
@ POINT_CLOUD
Definition: CVTypes.h:104
void setForeground(bool state)
Defines if the polyline is drawn in background or foreground.
Definition: ecvPolyline.cpp:146
virtual ccGenericPointCloud * getAssociatedCloud() const =0
Returns the vertices cloud.
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
const ecvViewportParameters & getParameters() const
Gets parameters.
Definition: ecv2DViewportObject.h:32
unsigned size() const override
Definition: PointCloudTpl.h:38
static bool IsCloudVerticesOfPolyline(ccGenericPointCloud *cloud, ccPolyline **polyline=nullptr)
Helper to determine if the input cloud acts as vertices of a polyline.
Definition: ecvPolyline.cpp:900
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
const PickedPoint & getPickedPoint(unsigned index) const
Returns a given point.
Definition: ecv2DLabel.h:194
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
const CCVector3 * getPointPersistentPtr(unsigned index) override
Definition: PointCloudTpl.h:160
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
static ccMesh * ToMesh(ccHObject *obj)
Converts current object to ccMesh (if possible)
Definition: ecvHObjectCaster.cpp:129
void addToDB(const QStringList &filenames, QString fileFilter=QString(), bool displayDialog=true)
Definition: MainWindow.cpp:2152
OpenGL camera parameters.
Definition: ecvGenericDisplayTools.h:554
Backup "context" for an object.
Definition: ecvMainAppInterface.h:80
core::Tensor result
Definition: VtkUtils.cpp:76
virtual bool linkWith(QWidget *win)
Links the overlay dialog with a MDI window.
Definition: ecvOverlayDialog.cpp:32
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
virtual void showColors(bool state)
Sets colors visibility.
Definition: ecvDrawableObject.h:84
virtual bool addPointIndex(unsigned globalIndex)
Point global index insertion mechanism.
Definition: ReferenceCloud.cpp:84
#define slots
Definition: PythonPlugin.cpp:25
ccMesh * createNewMeshFromSelection(bool removeSelectedTriangles, std::vector< int > *newIndexesOfRemainingTriangles=nullptr, bool withChildEntities=false)
Creates a new mesh with the selected vertices only.
Definition: ecvMesh.cpp:2747
int height
Definition: FileIOFactory.cpp:143
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
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
virtual VisibilityTableType & getTheVisibilityArray()
Returns associated visibility array.
Definition: ecvGenericPointCloud.h:168
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
constexpr Rgb yellow(MAX, MAX, 0)
Definition: sfEditDlg.h:16
Definition: MainWindow.h:117
virtual bool start()
Starts process.
Definition: ecvOverlayDialog.cpp:80
@ POLY_LINE
Definition: CVTypes.h:112
static ccShiftedObject * ToShifted(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccShiftedObject.
Definition: ecvHObjectCaster.cpp:108
constexpr Rgb green(0, MAX, 0)
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
static int SelectEntity(const ccHObject::Container &entities, int defaultSelectedIndex=0, QWidget *parent=0, QString label=QString())
Static shortcut: unique selection mode.
Definition: ecvItemSelectionDlg.cpp:74
@ WIDGET_POLYLINE_2D
Definition: ecvDrawContext.h:89
unsigned size() const
Returns current size.
Definition: ecv2DLabel.h:74
void clearDepthBuffer()
Removes the associated depth buffer.
Definition: ecvGBLSensor.cpp:80
@ LABEL_2D
Definition: CVTypes.h:140
virtual void putObjectBackIntoDBTree(ccHObject *obj, const ccHObjectContext &context)=0
Adds back object to DB tree.
Ground-based Laser sensor.
Definition: ecvGBLSensor.h:26
2D viewport object
Definition: ecv2DViewportObject.h:15
unsigned index
Point/triangle index.
Definition: ecv2DLabel.h:128
Generic mesh interface.
Definition: ecvGenericMesh.h:28
void setParameters(const ecvViewportParameters ¶ms)
Sets perspective view state.
Definition: ecv2DViewportObject.h:27
virtual void unallocateVisibilityArray()
Erases the points visibility information.
Definition: ecvGenericPointCloud.cpp:72
Shifted entity interface.
Definition: ecvShiftedObject.h:18
virtual ccGenericPointCloud * createNewCloudFromVisibilitySelection(bool removeSelectedPoints=false, VisibilityTableType *visTable=nullptr, std::vector< int > *newIndexesOfRemainingPoints=nullptr, bool silent=false, cloudViewer::ReferenceCloud *selection=nullptr)=0
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
Type z
Definition: CVGeom.h:137
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
ccHObject * parent
Definition: ecvMainAppInterface.h:81
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
virtual bool resize(unsigned n)
Presets the size of the vector used to store point references.
Definition: ReferenceCloud.cpp:64
void clear() override
Clears the entity from all its points and features.
Definition: ecvPointCloud.cpp:530
void shortcutTriggered(int key)
Signal emitted when an overridden key shortcut is pressed.
bool resize(unsigned numberOfPoints) override
Resizes all the active features arrays.
Definition: ecvPointCloud.cpp:1476
ccHObject * entity() const
Returns the associated entity (cloud or mesh)
Definition: ecv2DLabel.cpp:112
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
static bool IsCloudVerticesOfMesh(ccGenericPointCloud *cloud, ccGenericMesh **mesh=nullptr)
Helper to determine if the input cloud acts as vertices of a mesh.
Definition: ecvGenericMesh.cpp:800
Picked point descriptor.
Definition: ecv2DLabel.h:122
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
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
@ SUB_MESH
Definition: CVTypes.h:106
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
Generic overlay dialog interface.
Definition: ecvOverlayDialog.h:17
bool pushDisplayState() override
Pushes the current display state (overridden)
Definition: ecvHObject.cpp:1748
Triangular mesh.
Definition: ecvMesh.h:35
@ PRIMITIVE
Definition: CVTypes.h:119
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
Definition: ecvHObject.h:325
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
bool isAncestorOf(const ccHObject *anObject) const
Returns true if the current object is an ancestor of the specified one.
Definition: ecvHObject.cpp:699
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
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
static ccGBLSensor * ToGBLSensor(ccHObject *obj)
Definition: ecvHObjectCaster.cpp:245
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
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Type u[3]
Definition: CVGeom.h:139
virtual bool isLocked() const
Returns whether the object is locked or not.
Definition: ecvObject.h:112
bool createNewPolylinesFromSelection(std::vector< ccPolyline * > &output)
Creates a polyline mesh with the selected vertices only.
Definition: ecvPolyline.cpp:934
int viewport[4]
Viewport (GL_VIEWPORT)
Definition: ecvGenericDisplayTools.h:597
void popDisplayState(bool apply=true) override
Pops the last pushed display state (overridden)
Definition: ecvHObject.cpp:1759
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
bool is2DMode() const
Returns whether the polyline is considered as 2D or 3D.
Definition: ecvPolyline.h:63
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
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
constexpr unsigned char POINT_HIDDEN
Definition: CVConst.h:94
virtual bool resetVisibilityArray()
Resets the associated visibility array.
Definition: ecvGenericPointCloud.cpp:47
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
static ccGenericMesh * ToGenericMesh(ccHObject *obj)
Converts current object to ccGenericMesh (if possible)
Definition: ecvHObjectCaster.cpp:123
Colored polyline.
Definition: ecvPolyline.h:23
QString getViewId() const
Definition: ecvHObject.h:225
void clear(bool unusedParam=true) override
Clears the cloud.
Definition: Polyline.cpp:15
std::vector< unsigned char > VisibilityTableType
Array of "visibility" information for each point.
Definition: ecvGenericPointCloud.h:165
@ VIEWPORT_2D_OBJECT
Definition: CVTypes.h:141