 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
28 inline unsigned size()
const override {
return m_size; }
29 void forEach(genericPointAction action)
override;
35 return (m_globalIterator <
size() ? m_set->at(m_globalIterator++).point
45 ScalarType value)
override {
46 assert(pointIndex <
size());
47 m_set->at(pointIndex).squareDistd =
static_cast<double>(value);
50 assert(pointIndex <
size());
51 return static_cast<ScalarType
>(m_set->at(pointIndex).squareDistd);
55 assert(index <
size());
56 return m_set->at(index).point;
59 assert(index <
size());
60 P = *m_set->at(index).point;
62 inline void getPoint(
unsigned index,
double P[3])
const override {
63 assert(index <
size());
64 P[0] = m_set->at(index).point->x;
65 P[1] = m_set->at(index).point->y;
66 P[2] = m_set->at(index).point->z;
70 assert(index <
size());
71 return m_set->at(index).point;
79 virtual void computeBB();
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void getPoint(unsigned index, CCVector3 &P) const override
Returns the ith point.
Definition: DgmOctreeReferenceCloud.h:58
unsigned size() const override
Returns the number of points.
Definition: DgmOctreeReferenceCloud.h:28
DgmOctree::NeighboursSet * m_set
Associated PointDescriptor set.
Definition: DgmOctreeReferenceCloud.h:92
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Sets the ith point associated scalar value.
Definition: DgmOctreeReferenceCloud.h:44
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: DgmOctreeReferenceCloud.h:54
bool isScalarFieldEnabled() const override
Returns true if the scalar field is enabled, false otherwise.
Definition: DgmOctreeReferenceCloud.h:41
bool enableScalarField() override
Enables the scalar field associated to the cloud.
Definition: DgmOctreeReferenceCloud.h:38
void forwardIterator()
Forwards global iterator.
Definition: DgmOctreeReferenceCloud.h:75
int size
Definition: FileIOFactory.cpp:130
void getPoint(unsigned index, double P[3]) const override
Definition: DgmOctreeReferenceCloud.h:62
const CCVector3 * getNextPoint() override
Returns the next point (relatively to the global iterator position)
Definition: DgmOctreeReferenceCloud.h:34
A kind of ReferenceCloud based on the DgmOctree::NeighboursSet structure.
Definition: DgmOctreeReferenceCloud.h:17
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
unsigned m_globalIterator
Iterator on the point references container.
Definition: DgmOctreeReferenceCloud.h:82
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
Definition: DgmOctree.h:133
int count
Definition: FileIOFactory.cpp:132
unsigned m_size
Number of points.
Definition: DgmOctreeReferenceCloud.h:95
CCVector3 m_bbMax
Bounding-box max corner.
Definition: DgmOctreeReferenceCloud.h:87
CCVector3 m_bbMin
Bounding-box min corner.
Definition: DgmOctreeReferenceCloud.h:85
const CCVector3 * getPointPersistentPtr(unsigned index) override
Returns the ith point as a persistent pointer.
Definition: DgmOctreeReferenceCloud.h:69
ScalarType getPointScalarValue(unsigned pointIndex) const override
Returns the ith point associated scalar value.
Definition: DgmOctreeReferenceCloud.h:49
bool m_validBB
Bounding-box validity.
Definition: DgmOctreeReferenceCloud.h:89
void placeIteratorAtBeginning() override
Sets the cloud iterator at the beginning.
Definition: DgmOctreeReferenceCloud.h:33
#define CV_CORE_LIB_API
Definition: CVCoreLibWin.h:15