A storage-efficient point cloud structure that can also handle an unlimited number of scalar fields.
More...
|
| PointCloud ()=default |
| Default constructor.
|
|
| ~PointCloud () override=default |
| Default destructor.
|
|
bool | reserveNormals (unsigned newCount) |
| Reserves memory to store the normals.
|
|
bool | resize (unsigned newNumberOfPoints) override |
| Resizes the point database. More...
|
|
void | addNormal (const CCVector3 &N) |
| Adds a normal. More...
|
|
std::vector< CCVector3 > & | normals () |
| Returns the set of normals.
|
|
const std::vector< CCVector3 > & | normals () const |
| Returns the set of normals (const version)
|
|
bool | normalsAvailable () const override |
| Returns whether normals are available. More...
|
|
const CCVector3 * | getNormal (unsigned pointIndex) const override |
| If per-point normals are available, returns the one at a specific index. More...
|
|
| PointCloudTpl () |
| Default constructor.
|
|
| PointCloudTpl (const char * name, unsigned ID) |
| Alternate constructor with a name and ID.
|
|
| PointCloudTpl (const PointCloudTpl &rhs) |
| Copy Constructor.
|
|
virtual | ~PointCloudTpl () |
| Default destructor.
|
|
PointCloudTpl & | operator= (const PointCloudTpl &rhs) |
| Copy Assignment.
|
|
unsigned | size () const override |
|
void | forEach (GenericCloud::genericPointAction action) override |
|
void | getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax) override |
|
void | placeIteratorAtBeginning () override |
|
const CCVector3 * | getNextPoint () override |
|
bool | enableScalarField () override |
|
bool | isScalarFieldEnabled () const override |
|
void | setPointScalarValue (unsigned pointIndex, ScalarType value) override |
|
ScalarType | getPointScalarValue (unsigned pointIndex) const override |
|
const CCVector3 * | getPoint (unsigned index) const override |
|
void | getPoint (unsigned index, CCVector3 &P) const override |
|
const CCVector3 * | getPointPersistentPtr (unsigned index) const override |
|
void | addPointScalarValue (ScalarType value) |
| Adds a scalar values to the active 'in' scalar field. More...
|
|
virtual bool | resize (unsigned newNumberOfPoints) |
| Resizes the point database. More...
|
|
virtual bool | reserve (unsigned newCapacity) |
| Reserves memory for the point database. More...
|
|
void | reset () |
| Clears the cloud database. More...
|
|
void | addPoint (const CCVector3 &P) |
| Adds a 3D point to the database. More...
|
|
virtual void | invalidateBoundingBox () |
| Invalidates bounding box. More...
|
|
unsigned | getNumberOfScalarFields () const |
| Returns the number of associated (and active) scalar fields. More...
|
|
ScalarField * | getScalarField (int index) const |
| Returns a pointer to a specific scalar field. More...
|
|
const char * | getScalarFieldName (int index) const |
| Returns the name of a specific scalar field. More...
|
|
int | getScalarFieldIndexByName (const char *name) const |
| Returns the index of a scalar field represented by its name. More...
|
|
ScalarField * | getCurrentInScalarField () const |
| Returns the scalar field currently associated to the cloud input. More...
|
|
ScalarField * | getCurrentOutScalarField () const |
| Returns the scalar field currently associated to the cloud output. More...
|
|
void | setCurrentInScalarField (int index) |
| Sets the INPUT scalar field. More...
|
|
int | getCurrentInScalarFieldIndex () |
| Returns current INPUT scalar field index (or -1 if none)
|
|
void | setCurrentOutScalarField (int index) |
| Sets the OUTPUT scalar field. More...
|
|
int | getCurrentOutScalarFieldIndex () |
| Returns current OUTPUT scalar field index (or -1 if none)
|
|
void | setCurrentScalarField (int index) |
| Sets both the INPUT & OUTPUT scalar field. More...
|
|
virtual int | addScalarField (const char *uniqueName) |
| Creates a new scalar field and registers it. More...
|
|
bool | renameScalarField (int index, const char *newName) |
| Renames a specific scalar field. More...
|
|
virtual void | deleteScalarField (int index) |
| Deletes a specific scalar field. More...
|
|
virtual void | deleteAllScalarFields () |
| Deletes all scalar fields associated to this cloud.
|
|
unsigned | capacity () const |
| Returns cloud capacity (i.e. reserved size)
|
|
| GenericIndexedCloudPersist ()=default |
| Default constructor.
|
|
| GenericIndexedCloudPersist (const char *name, unsigned ID) |
| Mock constructor for compatibility with the PointCloudTpl interface. More...
|
|
| ~GenericIndexedCloudPersist () override=default |
| Default destructor.
|
|
virtual const CCVector3 * | getPointPersistentPtr (unsigned index) const =0 |
| Returns the ith point as a persistent pointer. More...
|
|
| GenericIndexedCloud ()=default |
| Default constructor.
|
|
| ~GenericIndexedCloud () override=default |
| Default destructor.
|
|
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 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...
|
|
| GenericCloud ()=default |
| Default constructor.
|
|
virtual | ~GenericCloud ()=default |
| Default destructor.
|
|
virtual unsigned | size () const =0 |
| Returns the number of points. More...
|
|
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 |
| Returns a given point visibility state (relatively to a sensor for instance) More...
|
|
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...
|
|
A storage-efficient point cloud structure that can also handle an unlimited number of scalar fields.