ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PyGenericTriangleMesh< GenericTriangleMesh > Class Template Reference

#include <geometry_trampoline.h>

Inheritance diagram for PyGenericTriangleMesh< GenericTriangleMesh >:
Collaboration diagram for PyGenericTriangleMesh< GenericTriangleMesh >:

Public Member Functions

ccGenericPointCloudgetAssociatedCloud () const override
 
void refreshBB () override
 
unsigned capacity () const override
 
bool hasMaterials () const override
 
const ccMaterialSetgetMaterialSet () const override
 
bool hasTextures () const override
 
TextureCoordsContainergetTexCoordinatesTable () const override
 
void getTriangleTexCoordinates (unsigned triIndex, TexCoords2D *&tx1, TexCoords2D *&tx2, TexCoords2D *&tx3) const override
 
void getTexCoordinates (unsigned index, TexCoords2D *&tx) const override
 
bool hasPerTriangleTexCoordIndexes () const override
 
void getTriangleTexCoordinatesIndexes (unsigned triangleIndex, int &i1, int &i2, int &i3) const override
 
bool hasTriNormals () const override
 
void getTriangleNormalIndexes (unsigned triangleIndex, int &i1, int &i2, int &i3) const override
 
bool getTriangleNormals (unsigned triangleIndex, CCVector3 &Na, CCVector3 &Nb, CCVector3 &Nc) const override
 
NormsIndexesTableTypegetTriNormsTable () const override
 
bool interpolateColors (unsigned triIndex, const CCVector3 &P, ecvColor::Rgb &C) override
 
bool getColorFromMaterial (unsigned triIndex, const CCVector3 &P, ecvColor::Rgb &C, bool interpolateColorIfNoTexture) override
 
bool getVertexColorFromMaterial (unsigned triIndex, unsigned char vertIndex, ecvColor::Rgb &C, bool returnColorIfNoTexture) override
 
bool interpolateNormalsBC (unsigned triIndex, const CCVector3d &w, CCVector3 &N) override
 
- Public Member Functions inherited from PyGeometry< ccGenericMesh >
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
 
ccGenericMeshTransform (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 PyGenericIndexedMesh< ccGenericMesh >
cloudViewer::GenericTriangle_getTriangle (unsigned triangleIndex) override
 Returns the ith triangle. More...
 
cloudViewer::VerticesIndexesgetTriangleVertIndexes (unsigned triangleIndex) override
 Returns the indexes of the vertices of a given triangle. More...
 
void getTriangleVertices (unsigned triangleIndex, CCVector3 &A, CCVector3 &B, CCVector3 &C) const override
 Returns the vertices of a given triangle. More...
 
void getTriangleVertices (unsigned triangleIndex, double A[3], double B[3], double C[3]) const override
 
cloudViewer::VerticesIndexesgetNextTriangleVertIndexes () override
 
bool interpolateNormals (unsigned triIndex, const CCVector3 &P, CCVector3 &N) override
 Interpolates normal(s) inside a given triangle. More...
 
bool normalsAvailable () const override
 Returns whether normals are available. More...
 
- Public Member Functions inherited from PyGenericMesh< GenericMeshBase >
unsigned size () const override
 Returns the number of triangles. More...
 
void forEach (std::function< void(cloudViewer::GenericTriangle &)> action) override
 
void getBoundingBox (CCVector3 &bbMin, CCVector3 &bbMax) override
 Returns the mesh bounding-box. More...
 
void placeIteratorAtBeginning () override
 Places the mesh iterator at the beginning. More...
 
cloudViewer::GenericTriangle_getNextTriangle () override
 Returns the next triangle (relatively to the global iterator position) More...
 
- Public Member Functions inherited from cloudViewer::GenericMesh
 GenericMesh ()=default
 
virtual ~GenericMesh ()=default
 Default destructor. More...
 
virtual bool hasTriangles () const
 
virtual void forEach (genericTriangleAction action)=0
 Fast iteration mechanism. More...
 

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::GenericMesh
enum class  SimplificationContraction { Average , Quadric }
 Indicates the method that is used for mesh simplification if multiple vertices are combined to a single one. More...
 
enum class  FilterScope { All , Color , Normal , Vertex }
 Indicates the scope of filter operations. More...
 
enum class  DeformAsRigidAsPossibleEnergy { Spokes , Smoothed }
 
using genericTriangleAction = std::function< void(GenericTriangle &)>
 Generic function to apply to a triangle (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 GenericTriangleMesh = ccGenericMesh>
class PyGenericTriangleMesh< GenericTriangleMesh >

Definition at line 151 of file geometry_trampoline.h.

Member Function Documentation

◆ capacity()

template<class GenericTriangleMesh = ccGenericMesh>
unsigned PyGenericTriangleMesh< GenericTriangleMesh >::capacity ( ) const
inlineoverride

Definition at line 163 of file geometry_trampoline.h.

◆ getAssociatedCloud()

template<class GenericTriangleMesh = ccGenericMesh>
ccGenericPointCloud* PyGenericTriangleMesh< GenericTriangleMesh >::getAssociatedCloud ( ) const
inlineoverride

Definition at line 157 of file geometry_trampoline.h.

◆ getColorFromMaterial()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::getColorFromMaterial ( unsigned  triIndex,
const CCVector3 P,
ecvColor::Rgb C,
bool  interpolateColorIfNoTexture 
)
inlineoverride

Definition at line 223 of file geometry_trampoline.h.

◆ getMaterialSet()

template<class GenericTriangleMesh = ccGenericMesh>
const ccMaterialSet* PyGenericTriangleMesh< GenericTriangleMesh >::getMaterialSet ( ) const
inlineoverride

Definition at line 169 of file geometry_trampoline.h.

◆ getTexCoordinates()

template<class GenericTriangleMesh = ccGenericMesh>
void PyGenericTriangleMesh< GenericTriangleMesh >::getTexCoordinates ( unsigned  index,
TexCoords2D *&  tx 
) const
inlineoverride

Definition at line 185 of file geometry_trampoline.h.

◆ getTexCoordinatesTable()

template<class GenericTriangleMesh = ccGenericMesh>
TextureCoordsContainer* PyGenericTriangleMesh< GenericTriangleMesh >::getTexCoordinatesTable ( ) const
inlineoverride

Definition at line 175 of file geometry_trampoline.h.

◆ getTriangleNormalIndexes()

template<class GenericTriangleMesh = ccGenericMesh>
void PyGenericTriangleMesh< GenericTriangleMesh >::getTriangleNormalIndexes ( unsigned  triangleIndex,
int &  i1,
int &  i2,
int &  i3 
) const
inlineoverride

Definition at line 201 of file geometry_trampoline.h.

◆ getTriangleNormals()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::getTriangleNormals ( unsigned  triangleIndex,
CCVector3 Na,
CCVector3 Nb,
CCVector3 Nc 
) const
inlineoverride

Definition at line 208 of file geometry_trampoline.h.

◆ getTriangleTexCoordinates()

template<class GenericTriangleMesh = ccGenericMesh>
void PyGenericTriangleMesh< GenericTriangleMesh >::getTriangleTexCoordinates ( unsigned  triIndex,
TexCoords2D *&  tx1,
TexCoords2D *&  tx2,
TexCoords2D *&  tx3 
) const
inlineoverride

Definition at line 178 of file geometry_trampoline.h.

◆ getTriangleTexCoordinatesIndexes()

template<class GenericTriangleMesh = ccGenericMesh>
void PyGenericTriangleMesh< GenericTriangleMesh >::getTriangleTexCoordinatesIndexes ( unsigned  triangleIndex,
int &  i1,
int &  i2,
int &  i3 
) const
inlineoverride

Definition at line 191 of file geometry_trampoline.h.

◆ getTriNormsTable()

template<class GenericTriangleMesh = ccGenericMesh>
NormsIndexesTableType* PyGenericTriangleMesh< GenericTriangleMesh >::getTriNormsTable ( ) const
inlineoverride

Definition at line 215 of file geometry_trampoline.h.

◆ getVertexColorFromMaterial()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::getVertexColorFromMaterial ( unsigned  triIndex,
unsigned char  vertIndex,
ecvColor::Rgb C,
bool  returnColorIfNoTexture 
)
inlineoverride

Definition at line 230 of file geometry_trampoline.h.

◆ hasMaterials()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::hasMaterials ( ) const
inlineoverride

Definition at line 166 of file geometry_trampoline.h.

◆ hasPerTriangleTexCoordIndexes()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::hasPerTriangleTexCoordIndexes ( ) const
inlineoverride

Definition at line 188 of file geometry_trampoline.h.

◆ hasTextures()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::hasTextures ( ) const
inlineoverride

Definition at line 172 of file geometry_trampoline.h.

◆ hasTriNormals()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::hasTriNormals ( ) const
inlineoverride

Definition at line 198 of file geometry_trampoline.h.

◆ interpolateColors()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::interpolateColors ( unsigned  triIndex,
const CCVector3 P,
ecvColor::Rgb C 
)
inlineoverride

Definition at line 218 of file geometry_trampoline.h.

◆ interpolateNormalsBC()

template<class GenericTriangleMesh = ccGenericMesh>
bool PyGenericTriangleMesh< GenericTriangleMesh >::interpolateNormalsBC ( unsigned  triIndex,
const CCVector3d w,
CCVector3 N 
)
inlineoverride

Definition at line 238 of file geometry_trampoline.h.

◆ refreshBB()

template<class GenericTriangleMesh = ccGenericMesh>
void PyGenericTriangleMesh< GenericTriangleMesh >::refreshBB ( )
inlineoverride

Definition at line 160 of file geometry_trampoline.h.


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