![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
A kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure. More...
#include <DgmOctreeReferenceCloud.h>
Public Member Functions | |
| DgmOctreeReferenceCloud (DgmOctree::NeighboursSet *associatedSet, unsigned count=0) | |
| Default constructor. More... | |
| unsigned | size () const override |
| Returns the number of points. More... | |
| void | forEach (genericPointAction action) override |
| Fast iteration mechanism. More... | |
| void | getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax) override |
| Returns the cloud bounding box. More... | |
| void | placeIteratorAtBeginning () override |
| Sets the cloud iterator at the beginning. More... | |
| const CCVector3 * | getNextPoint () override |
| Returns the next point (relatively to the global iterator position) More... | |
| bool | enableScalarField () override |
| Enables the scalar field associated to the cloud. More... | |
| bool | isScalarFieldEnabled () const override |
| Returns true if the scalar field is enabled, false otherwise. More... | |
| void | setPointScalarValue (unsigned pointIndex, ScalarType value) override |
| Sets the ith point associated scalar value. More... | |
| ScalarType | getPointScalarValue (unsigned pointIndex) const override |
| Returns the ith point associated scalar value. More... | |
| const CCVector3 * | getPoint (unsigned index) const override |
| Returns the ith point. More... | |
| void | getPoint (unsigned index, CCVector3 &P) const override |
| Returns the ith point. More... | |
| void | getPoint (unsigned index, double P[3]) const override |
| const CCVector3 * | getPointPersistentPtr (unsigned index) override |
| Returns the ith point as a persistent pointer. More... | |
| void | forwardIterator () |
| Forwards global iterator. More... | |
Public Member Functions inherited from cloudViewer::GenericIndexedCloudPersist | |
| ~GenericIndexedCloudPersist () override=default | |
| Default destructor. More... | |
Public Member Functions inherited from cloudViewer::GenericIndexedCloud | |
| ~GenericIndexedCloud () override=default | |
| Default destructor. 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... | |
Public Member Functions inherited from cloudViewer::GenericCloud | |
| GenericCloud ()=default | |
| Default constructor. More... | |
| virtual | ~GenericCloud ()=default |
| Default destructor. More... | |
| virtual bool | hasPoints () const |
| virtual unsigned char | testVisibility (const CCVector3 &P) const |
Protected Member Functions | |
| virtual void | computeBB () |
| Computes the cloud bounding-box (internal) More... | |
Protected Attributes | |
| unsigned | m_globalIterator |
| Iterator on the point references container. More... | |
| CCVector3 | m_bbMin |
| Bounding-box min corner. More... | |
| CCVector3 | m_bbMax |
| Bounding-box max corner. More... | |
| bool | m_validBB |
| Bounding-box validity. More... | |
| DgmOctree::NeighboursSet * | m_set |
| Associated PointDescriptor set. More... | |
| unsigned | m_size |
| Number of points. 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 kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure.
| DgmOctreeReferenceCloud::DgmOctreeReferenceCloud | ( | DgmOctree::NeighboursSet * | associatedSet, |
| unsigned | count = 0 |
||
| ) |
Default constructor.
| associatedSet | associated NeighboursSet |
| count | number of values to use (0 = all) |
|
protectedvirtual |
Computes the cloud bounding-box (internal)
References count, m_bbMax, m_bbMin, m_set, m_validBB, size(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by getBoundingBox().
|
inlineoverridevirtual |
Enables the scalar field associated to the cloud.
If the scalar field structure is not yet initialized/allocated, this method gives the signal for its creation. Otherwise, if possible the structure size should be pre-reserved with the same number of elements as the point cloud.
Implements cloudViewer::GenericCloud.
|
overridevirtual |
Fast iteration mechanism.
Virtual method to apply a function to the whole cloud
| action | the function to apply (see GenericCloud::genericPointAction) |
Implements cloudViewer::GenericCloud.
|
inline |
Forwards global iterator.
Referenced by define_DgmOctreeReferenceCloud().
|
overridevirtual |
Returns the cloud bounding box.
Virtual method to request the cloud bounding box limits
| bbMin | lower bounding-box limits (Xmin,Ymin,Zmin) |
| bbMax | higher bounding-box limits (Xmax,Ymax,Zmax) |
Implements cloudViewer::GenericCloud.
References computeBB(), m_bbMax, m_bbMin, and m_validBB.
|
inlineoverridevirtual |
Returns the next point (relatively to the global iterator position)
Virtual method to handle the cloud global iterator. Global iterator position should be increased by one each time this method is called. Warning:
Implements cloudViewer::GenericCloud.
References size.
|
inlineoverridevirtual |
Returns the ith point.
Virtual method to request a point with a specific index. WARNINGS:
| index | of the requested point (between 0 and the cloud size minus 1) |
Implements cloudViewer::GenericIndexedCloud.
References size.
Referenced by cloudViewer::CloudSamplingTools::applyNoiseFilterAtLevel(), and ccTrace::getSegmentCostCurve().
|
inlineoverridevirtual |
Returns the ith point.
Virtual method to request a point with a specific index. Index must be valid (undefined behavior if index is invalid)
| index | of the requested point (between 0 and the cloud size minus 1) |
| P | output point |
Implements cloudViewer::GenericIndexedCloud.
References size.
|
inlineoverridevirtual |
Reimplemented from cloudViewer::GenericIndexedCloud.
References size.
|
inlineoverridevirtual |
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) |
Implements cloudViewer::GenericIndexedCloudPersist.
References size.
|
inlineoverridevirtual |
Returns the ith point associated scalar value.
Implements cloudViewer::GenericCloud.
References size.
|
inlineoverridevirtual |
Returns true if the scalar field is enabled, false otherwise.
Implements cloudViewer::GenericCloud.
|
inlineoverridevirtual |
Sets the cloud iterator at the beginning.
Virtual method to handle the cloud global iterator
Implements cloudViewer::GenericCloud.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Returns the number of points.
Virtual method to request the cloud size
Implements cloudViewer::GenericCloud.
Referenced by computeBB(), and forEach().
|
protected |
Bounding-box max corner.
Referenced by computeBB(), and getBoundingBox().
|
protected |
Bounding-box min corner.
Referenced by computeBB(), and getBoundingBox().
|
protected |
Iterator on the point references container.
|
protected |
Associated PointDescriptor set.
Referenced by computeBB(), and forEach().
|
protected |
Number of points.
|
protected |
Bounding-box validity.
Referenced by computeBB(), and getBoundingBox().