ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PyGenericIndexedCloud< GenericIndexedCloudBase > Class Template Reference

#include <cloudbase.h>

Inheritance diagram for PyGenericIndexedCloud< GenericIndexedCloudBase >:
Collaboration diagram for PyGenericIndexedCloud< GenericIndexedCloudBase >:

Public Member Functions

const CCVector3getPoint (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
 
- Public Member Functions inherited from PyGenericCloud< cloudViewer::GenericIndexedCloud >
unsigned size () const override
 Returns the number of points. More...
 
void forEach (cloudViewer::GenericCloud::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 CCVector3getNextPoint () 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...
 
- 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 CCVector3getNormal (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
 

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...
 

Detailed Description

template<class GenericIndexedCloudBase = cloudViewer::GenericIndexedCloud>
class PyGenericIndexedCloud< GenericIndexedCloudBase >

Definition at line 55 of file cloudbase.h.

Member Function Documentation

◆ getPoint() [1/3]

template<class GenericIndexedCloudBase = cloudViewer::GenericIndexedCloud>
const CCVector3* PyGenericIndexedCloud< GenericIndexedCloudBase >::getPoint ( unsigned  index) const
inlineoverridevirtual

Returns the ith point.

Virtual method to request a point with a specific index. WARNINGS:

  • the returned object may not be persistent!
  • THIS METHOD MAY NOT BE COMPATIBLE WITH PARALLEL STRATEGIES (see the DgmOctree::executeFunctionForAllCellsAtLevel_MT and DgmOctree::executeFunctionForAllCellsAtStartingLevel_MT methods). Consider the other version of getPoint instead or the GenericIndexedCloudPersist class.
    Parameters
    indexof the requested point (between 0 and the cloud size minus 1)
    Returns
    the requested point (undefined behavior if index is invalid)

Implements cloudViewer::GenericIndexedCloud.

Definition at line 59 of file cloudbase.h.

◆ getPoint() [2/3]

template<class GenericIndexedCloudBase = cloudViewer::GenericIndexedCloud>
void PyGenericIndexedCloud< GenericIndexedCloudBase >::getPoint ( unsigned  index,
CCVector3 P 
) const
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)

Parameters
indexof the requested point (between 0 and the cloud size minus 1)
Poutput point

Implements cloudViewer::GenericIndexedCloud.

Definition at line 63 of file cloudbase.h.

◆ getPoint() [3/3]

template<class GenericIndexedCloudBase = cloudViewer::GenericIndexedCloud>
void PyGenericIndexedCloud< GenericIndexedCloudBase >::getPoint ( unsigned  index,
double  P[3] 
) const
inlineoverridevirtual

Reimplemented from cloudViewer::GenericIndexedCloud.

Definition at line 66 of file cloudbase.h.


The documentation for this class was generated from the following file: