![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
A generic 3D point cloud with index-based and presistent access to points. More...
#include <GenericIndexedCloudPersist.h>


Public Member Functions | |
| ~GenericIndexedCloudPersist () override=default | |
| Default destructor. More... | |
| virtual const CCVector3 * | getPointPersistentPtr (unsigned index)=0 |
| Returns the ith point as a persistent pointer. More... | |
Public Member Functions inherited from cloudViewer::GenericIndexedCloud | |
| ~GenericIndexedCloud () override=default | |
| Default destructor. More... | |
| virtual const CCVector3 * | getPoint (unsigned index) const =0 |
| Returns the ith point. More... | |
| virtual void | getPoint (unsigned index, CCVector3 &P) const =0 |
| Returns the ith point. More... | |
| virtual void | getPoint (unsigned index, double P[3]) const |
| virtual bool | normalsAvailable () const |
| Returns whether normals are available. More... | |
| virtual const CCVector3 * | getNormal (unsigned index) const |
| If per-point normals are available, returns the one at a specific index. More... | |
Public Member Functions inherited from cloudViewer::GenericCloud | |
| GenericCloud ()=default | |
| Default constructor. More... | |
| virtual | ~GenericCloud ()=default |
| Default destructor. More... | |
| virtual unsigned | size () const =0 |
| Returns the number of points. More... | |
| virtual bool | hasPoints () const |
| virtual void | forEach (genericPointAction action)=0 |
| Fast iteration mechanism. More... | |
| virtual void | getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax)=0 |
| Returns the cloud bounding box. More... | |
| virtual unsigned char | testVisibility (const CCVector3 &P) const |
| virtual void | placeIteratorAtBeginning ()=0 |
| Sets the cloud iterator at the beginning. More... | |
| virtual const CCVector3 * | getNextPoint ()=0 |
| Returns the next point (relatively to the global iterator position) More... | |
| virtual bool | enableScalarField ()=0 |
| Enables the scalar field associated to the cloud. More... | |
| virtual bool | isScalarFieldEnabled () const =0 |
| Returns true if the scalar field is enabled, false otherwise. More... | |
| virtual void | setPointScalarValue (unsigned pointIndex, ScalarType value)=0 |
| Sets the ith point associated scalar value. More... | |
| virtual ScalarType | getPointScalarValue (unsigned pointIndex) const =0 |
| Returns the ith point associated scalar value. More... | |
Additional Inherited Members | |
Public Types inherited from cloudViewer::GenericCloud | |
| using | genericPointAction = std::function< void(const CCVector3 &, ScalarType &)> |
| Generic function applied to a point (used by foreach) More... | |
A generic 3D point cloud with index-based and presistent access to points.
Implements the GenericIndexedCloud interface.
Definition at line 18 of file GenericIndexedCloudPersist.h.
|
overridedefault |
Default destructor.
|
pure virtual |
Returns the ith point as a persistent pointer.
Virtual method to request a point with a specific index. WARNING: the returned object MUST be persistent in order to be compatible with parallel strategies!
| index | of the requested point (between 0 and the cloud size minus 1) |
Implemented in cloudViewer::ReferenceCloud, cloudViewer::PointCloudTpl< ccGenericPointCloud >, cloudViewer::PointCloudTpl< GenericIndexedCloudPersist >, and cloudViewer::DgmOctreeReferenceCloud.
Referenced by define_GenericIndexedCloudPersist(), cloudViewer::DgmOctree::findNearestNeighborsStartingFromCell(), cloudViewer::DgmOctree::findTheNearestNeighborStartingFromCell(), cloudViewer::ReferenceCloud::forEach(), and cloudViewer::ReferenceCloud::getCurrentPointCoordinates().