 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
47 std::vector<unsigned>* originalPointIndexes = 0,
48 bool enableVisualDebugMode =
false,
49 double maxAngleDeg = 0.0);
69 std::vector<ccPolyline*>& parts,
70 bool allowSplitting =
true,
72 bool enableVisualDebugMode =
false);
93 std::vector<cloudViewer::PointProjectionTools::IndexedCCVector2>&
95 std::list<cloudViewer::PointProjectionTools::IndexedCCVector2*>&
100 bool enableVisualDebugMode =
false,
101 double maxAngleDeg = 90.0);
bool addPickedPoint(ccGenericPointCloud *cloud, unsigned pointIndex, bool entityCenter=false)
Adds a point to this label.
Definition: ecv2DLabel.cpp:400
VertexIterator itA
Definition: PointProjectionTools.cpp:506
constexpr double M_PI
Pi.
Definition: CVConst.h:19
unsigned nearestPointIndex
Definition: PointProjectionTools.cpp:507
virtual bool reserve(unsigned n)
Reserves some memory for hosting the point references.
Definition: ReferenceCloud.cpp:51
void setDisplayedIn2D(bool state)
Whether to display the label in 2D.
Definition: ecv2DLabel.h:114
Weighted graph edge.
Definition: PointProjectionTools.cpp:491
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
Bounding box structure.
Definition: ecvBBox.h:25
static void vnormalize(PointCoordinateType p[])
Definition: CVGeom.h:569
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
virtual void setSelected(bool state)
Selects/Unselects entity.
Definition: ecvDrawableObject.h:70
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
@ None
Definition: Neighbourhood.h:76
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
void setPointSize(unsigned size=0)
Sets point size.
Definition: ecvGenericPointCloud.h:275
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
float nearestPointSquareDist
Definition: PointProjectionTools.cpp:508
bool operator<(const Edge &e) const
Definition: ecvContourExtractor.cpp:55
const double * e
Definition: essential_matrix_poly.h:10
@ UseYAsUpDir
Definition: Neighbourhood.h:76
void swap(cloudViewer::core::SmallVectorImpl< T > &LHS, cloudViewer::core::SmallVectorImpl< T > &RHS)
Implement std::swap in terms of SmallVector swap.
Definition: SmallVector.h:1370
bool reserve(unsigned numberOfPoints) override
Reserves memory for all the active features.
Definition: ecvPointCloud.cpp:1452
Type x
Definition: CVGeom.h:36
Definition: Neighbourhood.h:25
Type dot(const Vector2Tpl &v) const
Dot product.
Definition: CVGeom.h:71
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
int points
Definition: FileIOFactory.cpp:144
void setClosed(bool state)
Sets whether the polyline is closed or not.
Definition: Polyline.h:29
Edge(const VertexIterator &A, unsigned _nearestPointIndex, float _nearestPointSquareDist)
Definition: ecvContourExtractor.cpp:47
void clear() override
Clears the entity from all its points and features.
Definition: ecvPointCloud.cpp:530
Type y
Definition: CVGeom.h:36
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
bool projectPointsOn2DPlane(std::vector< Vec2D > &points2D, const PointCoordinateType *planeEquation=nullptr, CCVector3 *O=nullptr, CCVector3 *X=nullptr, CCVector3 *Y=nullptr, InputVectorsUsage vectorsUsage=None)
Projects points on the best fitting LS plane.
Definition: Neighbourhood.h:89
static PointCoordinateType vdot(const PointCoordinateType p[], const PointCoordinateType q[])
Definition: CVGeom.h:520
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
InputVectorsUsage
Definition: Neighbourhood.h:76
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:61
Edge()
Definition: ecvContourExtractor.cpp:45
Type y
Definition: CVGeom.h:137
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
constexpr Rgb red(MAX, 0, 0)
void addPoint(const CCVector3 &P)
Adds a 3D point to the database.
Definition: PointCloudTpl.h:246
void * X
Definition: SmallVector.cpp:45
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Type u[3]
Definition: CVGeom.h:139
@ UseOXYasBase
Definition: Neighbourhood.h:76
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
bool split(PointCoordinateType maxEdgeLength, std::vector< ccPolyline * > &parts)
Splits the polyline into several parts based on a maximum edge length.
Definition: ecvPolyline.cpp:415
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
Colored polyline.
Definition: ecvPolyline.h:23
void clear(bool unusedParam=true) override
Clears the cloud.
Definition: Polyline.cpp:15