ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PyGenericPointCloud< GenericPointCloudBase > Class Template Reference

#include <cloudbase.h>

Inheritance diagram for PyGenericPointCloud< GenericPointCloudBase >:
Collaboration diagram for PyGenericPointCloud< GenericPointCloudBase >:

Public Member Functions

ccGenericPointCloudclone (ccGenericPointCloud *destCloud=nullptr, bool ignoreChildren=false) override
 
const ecvColor::RgbgetScalarValueColor (ScalarType d) const override
 
const ecvColor::RgbgetPointScalarValueColor (unsigned pointIndex) const override
 
ScalarType getPointDisplayedDistance (unsigned pointIndex) const override
 
const ecvColor::RgbgetPointColor (unsigned pointIndex) const override
 
const CompressedNormTypegetPointNormalIndex (unsigned pointIndex) const override
 
const CCVector3getPointNormal (unsigned pointIndex) const override
 
void refreshBB () override
 
void applyRigidTransformation (const ccGLMatrix &trans) override
 
cloudViewer::ReferenceCloudcrop (const ccBBox &box, bool inside=true) override
 
cloudViewer::ReferenceCloudcrop (const ecvOrientedBBox &box) override
 
void removePoints (size_t index) override
 
void scale (PointCoordinateType fx, PointCoordinateType fy, PointCoordinateType fz, CCVector3 center=CCVector3(0, 0, 0)) override
 
- Public Member Functions inherited from PyGeometry< ccGenericPointCloud >
bool IsEmpty () const override
 
Eigen::Vector3d GetMinBound () const override
 Returns min bounds for geometry coordinates. More...
 
Eigen::Vector2d GetMin2DBound () const override
 
Eigen::Vector3d GetMaxBound () const override
 Returns max bounds for geometry coordinates. More...
 
Eigen::Vector2d GetMax2DBound () const override
 
Eigen::Vector3d GetCenter () const override
 Returns the center of the geometry coordinates. More...
 
ccBBox GetAxisAlignedBoundingBox () const override
 Returns an axis-aligned bounding box of the geometry. More...
 
ecvOrientedBBox GetOrientedBoundingBox () const override
 
ccGenericPointCloudTransform (const Eigen::Matrix4d &transformation) override
 Apply transformation (4x4 matrix) to the geometry coordinates. More...
 
- Public Member Functions inherited from PyObjectBase< ObjectBase >
CV_CLASS_ENUM getClassID () const override
 Returns class ID. More...
 
- Public Member Functions inherited from ccObject
 ccObject (QString name=QString())
 Default constructor. More...
 
 ccObject (const ccObject &object)
 Copy constructor. More...
 
virtual QString getName () const
 Returns object name. More...
 
virtual void setName (const QString &name)
 Sets object name. More...
 
virtual void setRemoveFlag (bool removeFlag)
 Sets removeFlag. More...
 
virtual bool getRemoveFlag ()
 Returns removeFlag. More...
 
virtual unsigned getUniqueID () const
 Returns object unique ID. More...
 
virtual void setUniqueID (unsigned ID)
 Changes unique ID. More...
 
virtual bool isEnabled () const
 Returns whether the object is enabled or not. More...
 
virtual void setEnabled (bool state)
 Sets the "enabled" property. More...
 
virtual void toggleActivation ()
 Toggles the "enabled" property. More...
 
virtual bool isLocked () const
 Returns whether the object is locked or not. More...
 
virtual void setLocked (bool state)
 Sets the "enabled" property. More...
 
bool isLeaf () const
 
bool isCustom () const
 
bool isHierarchy () const
 
bool isKindOf (CV_CLASS_ENUM type) const
 
bool isA (CV_CLASS_ENUM type) const
 
QVariant getMetaData (const QString &key) const
 Returns a given associated meta data. More...
 
bool removeMetaData (const QString &key)
 Removes a given associated meta-data. More...
 
void setMetaData (const QString &key, const QVariant &data)
 Sets a meta-data element. More...
 
void setMetaData (const QVariantMap &dataset, bool overwrite=false)
 Sets several meta-data elements at a time. More...
 
bool hasMetaData (const QString &key) const
 Returns whether a meta-data element with the given key exists or not. More...
 
const QVariantMap & metaData () const
 Returns meta-data map (const only) More...
 
void setBaseName (const QString &baseName)
 
QString getBaseName () const
 
void setFullPath (const QString &fullPaht)
 
QString getFullPath () const
 
- Public Member Functions inherited from ccSerializableObject
virtual ~ccSerializableObject ()=default
 Destructor. More...
 
virtual bool isSerializable () const
 Returns whether object is serializable of not. More...
 
- Public Member Functions inherited from PyGenericIndexedCloudPersist< ccGenericPointCloud >
const CCVector3getPointPersistentPtr (unsigned index) override
 
- Public Member Functions inherited from PyGenericIndexedCloud< GenericIndexedCloudBase >
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 ccSerializableObject
enum  DeserializationFlags { DF_POINT_COORDS_64_BITS , DF_SCALAR_VAL_32_BITS = 2 }
 Deserialization flags (bit-field) More...
 
typedef QMultiMap< unsigned, unsigned > LoadedIDMap
 Map of loaded unique IDs (old ID --> new ID) More...
 
- Public Types inherited from cloudViewer::GenericCloud
using genericPointAction = std::function< void(const CCVector3 &, ScalarType &)>
 Generic function applied to a point (used by foreach) More...
 
- Static Public Member Functions inherited from ccObject
static unsigned GetCurrentDBVersion ()
 Returns current database version. More...
 
static void SetUniqueIDGenerator (ccUniqueIDGenerator::Shared generator)
 Sets the unique ID generator. More...
 
static ccUniqueIDGenerator::Shared GetUniqueIDGenerator ()
 Returns the unique ID generator. More...
 
static unsigned GetNextUniqueID ()
 Returns a new unassigned unique ID. More...
 
static unsigned GetLastUniqueID ()
 Returns last assigned unique ID. More...
 
static CV_CLASS_ENUM ReadClassIDFromFile (QFile &in, short dataVersion)
 Helper: reads out class ID from a binary stream. More...
 
- Static Public Member Functions inherited from ccSerializableObject
static bool WriteError ()
 Sends a custom error message (write error) and returns 'false'. More...
 
static bool ReadError ()
 Sends a custom error message (read error) and returns 'false'. More...
 
static bool MemoryError ()
 Sends a custom error message (not enough memory) and returns 'false'. More...
 
static bool CorruptError ()
 Sends a custom error message (corrupted file) and returns 'false'. More...
 
- Protected Member Functions inherited from ccObject
virtual bool getFlagState (CV_OBJECT_FLAG flag) const
 Returns flag state. More...
 
virtual void setFlagState (CV_OBJECT_FLAG flag, bool state)
 Sets flag state. More...
 
bool toFile (QFile &out, short dataVersion) const override
 Saves data to binary stream. More...
 
short minimumFileVersion () const override
 Returns the minimum file version required to save this instance. More...
 
bool fromFile (QFile &in, short dataVersion, int flags, LoadedIDMap &oldToNewIDMap) override
 Reimplemented from ccSerializableObject::fromFile. More...
 
- Protected Attributes inherited from ccObject
QString m_name
 Object name. More...
 
QString m_baseName
 
QString m_filePath
 
bool m_removeFlag
 
unsigned m_flags
 Object flags. More...
 
QVariantMap m_metaData
 Associated meta-data. More...
 

Detailed Description

template<class GenericPointCloudBase = ccGenericPointCloud>
class PyGenericPointCloud< GenericPointCloudBase >

Definition at line 86 of file cloudbase.h.

Member Function Documentation

◆ applyRigidTransformation()

template<class GenericPointCloudBase = ccGenericPointCloud>
void PyGenericPointCloud< GenericPointCloudBase >::applyRigidTransformation ( const ccGLMatrix trans)
inlineoverride

Definition at line 133 of file cloudbase.h.

◆ clone()

template<class GenericPointCloudBase = ccGenericPointCloud>
ccGenericPointCloud* PyGenericPointCloud< GenericPointCloudBase >::clone ( ccGenericPointCloud destCloud = nullptr,
bool  ignoreChildren = false 
)
inlineoverride

Definition at line 94 of file cloudbase.h.

◆ crop() [1/2]

template<class GenericPointCloudBase = ccGenericPointCloud>
cloudViewer::ReferenceCloud* PyGenericPointCloud< GenericPointCloudBase >::crop ( const ccBBox box,
bool  inside = true 
)
inlineoverride

Definition at line 136 of file cloudbase.h.

◆ crop() [2/2]

template<class GenericPointCloudBase = ccGenericPointCloud>
cloudViewer::ReferenceCloud* PyGenericPointCloud< GenericPointCloudBase >::crop ( const ecvOrientedBBox box)
inlineoverride

Definition at line 141 of file cloudbase.h.

◆ getPointColor()

template<class GenericPointCloudBase = ccGenericPointCloud>
const ecvColor::Rgb& PyGenericPointCloud< GenericPointCloudBase >::getPointColor ( unsigned  pointIndex) const
inlineoverride

Definition at line 110 of file cloudbase.h.

◆ getPointDisplayedDistance()

template<class GenericPointCloudBase = ccGenericPointCloud>
ScalarType PyGenericPointCloud< GenericPointCloudBase >::getPointDisplayedDistance ( unsigned  pointIndex) const
inlineoverride

Definition at line 107 of file cloudbase.h.

◆ getPointNormal()

template<class GenericPointCloudBase = ccGenericPointCloud>
const CCVector3& PyGenericPointCloud< GenericPointCloudBase >::getPointNormal ( unsigned  pointIndex) const
inlineoverride

Definition at line 119 of file cloudbase.h.

◆ getPointNormalIndex()

template<class GenericPointCloudBase = ccGenericPointCloud>
const CompressedNormType& PyGenericPointCloud< GenericPointCloudBase >::getPointNormalIndex ( unsigned  pointIndex) const
inlineoverride

Definition at line 114 of file cloudbase.h.

◆ getPointScalarValueColor()

template<class GenericPointCloudBase = ccGenericPointCloud>
const ecvColor::Rgb* PyGenericPointCloud< GenericPointCloudBase >::getPointScalarValueColor ( unsigned  pointIndex) const
inlineoverride

Definition at line 102 of file cloudbase.h.

◆ getScalarValueColor()

template<class GenericPointCloudBase = ccGenericPointCloud>
const ecvColor::Rgb* PyGenericPointCloud< GenericPointCloudBase >::getScalarValueColor ( ScalarType  d) const
inlineoverride

Definition at line 99 of file cloudbase.h.

◆ refreshBB()

template<class GenericPointCloudBase = ccGenericPointCloud>
void PyGenericPointCloud< GenericPointCloudBase >::refreshBB ( )
inlineoverride

Definition at line 123 of file cloudbase.h.

◆ removePoints()

template<class GenericPointCloudBase = ccGenericPointCloud>
void PyGenericPointCloud< GenericPointCloudBase >::removePoints ( size_t  index)
inlineoverride

Definition at line 145 of file cloudbase.h.

◆ scale()

template<class GenericPointCloudBase = ccGenericPointCloud>
void PyGenericPointCloud< GenericPointCloudBase >::scale ( PointCoordinateType  fx,
PointCoordinateType  fy,
PointCoordinateType  fz,
CCVector3  center = CCVector3(0, 0, 0) 
)
inlineoverride

Definition at line 148 of file cloudbase.h.


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