qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Static Public Member Functions | List of all members
ccHObjectCaster Class Reference

Useful class to (try to) statically cast a basic ccHObject to a given type. More...

#include <ccHObjectCaster.h>

Static Public Member Functions

static ccPointCloudToPointCloud (ccHObject *obj, bool *isLockedVertices=nullptr)
 Converts current object to 'equivalent' ccPointCloud. More...
 
static ccGenericPointCloudToGenericPointCloud (ccHObject *obj, bool *isLockedVertices=nullptr)
 Converts current object to 'equivalent' ccGenericPointCloud. More...
 
static ccShiftedObjectToShifted (ccHObject *obj, bool *isLockedVertices=nullptr)
 Converts current object to 'equivalent' ccShiftedObject. More...
 
static ccGenericMeshToGenericMesh (ccHObject *obj)
 Converts current object to ccGenericMesh (if possible)
 
static ccMeshToMesh (ccHObject *obj)
 Converts current object to ccMesh (if possible)
 
static ccSubMeshToSubMesh (ccHObject *obj)
 Converts current object to ccSubMesh (if possible)
 
static ccPolylineToPolyline (ccHObject *obj)
 Converts current object to ccPolyline (if possible)
 
static ccFacetToFacet (ccHObject *obj)
 Converts current object to ccFacet (if possible)
 
static ccPlanarEntityInterfaceToPlanarEntity (ccHObject *obj)
 Converts current object to ccPlanarEntityInterface (if possible)
 
static ccGenericPrimitiveToPrimitive (ccHObject *obj)
 Converts current object to ccGenericPrimitive (if possible)
 
static ccSphereToSphere (ccHObject *obj)
 Converts current object to ccSphere (if possible)
 
static ccCylinderToCylinder (ccHObject *obj)
 Converts current object to ccCylinder (if possible)
 
static ccConeToCone (ccHObject *obj)
 Converts current object to ccCone (if possible)
 
static ccPlaneToPlane (ccHObject *obj)
 Converts current object to ccPlane (if possible)
 
static ccDishToDish (ccHObject *obj)
 Converts current object to ccDish (if possible)
 
static ccExtruToExtru (ccHObject *obj)
 Converts current object to ccExtru (if possible)
 
static ccTorusToTorus (ccHObject *obj)
 Converts current object to ccTorus (if possible)
 
static ccOctreeProxyToOctreeProxy (ccHObject *obj)
 Converts current object to ccOctreeProxy (if possible)
 
static ccOctreeToOctree (ccHObject *obj)
 Converts current object to ccOctree (if possible)
 
static ccKdTreeToKdTree (ccHObject *obj)
 Converts current object to ccKdTree (if possible)
 
static ccSensorToSensor (ccHObject *obj)
 Converts current object to ccSensor (if possible)
 
static ccGBLSensorToGBLSensor (ccHObject *obj)
 Converts current object to ccGBLSensor (if possible)
 
static ccCameraSensorToCameraSensor (ccHObject *obj)
 Converts current object to ccCameraSensor (if possible)
 
static ccImageToImage (ccHObject *obj)
 Converts current object to ccImage (if possible)
 
static cc2DLabelTo2DLabel (ccHObject *obj)
 Converts current object to cc2DLabel (if possible)
 
static cc2DViewportLabelTo2DViewportLabel (ccHObject *obj)
 Converts current object to cc2DViewportLabel (if possible)
 
static cc2DViewportObjectTo2DViewportObject (ccHObject *obj)
 Converts current object to cc2DViewportObject (if possible)
 
static ccIndexedTransformationBufferToTransBuffer (ccHObject *obj)
 Converts current object to ccIndexedTransformationBuffer (if possible)
 
static ccCoordinateSystemToCoordinateSystem (ccHObject *obj)
 Converts current object to ccCoordinateSystem (if possible)
 

Detailed Description

Useful class to (try to) statically cast a basic ccHObject to a given type.

Member Function Documentation

◆ ToGenericPointCloud()

ccGenericPointCloud * ccHObjectCaster::ToGenericPointCloud ( ccHObject obj,
bool *  isLockedVertices = nullptr 
)
static

Converts current object to 'equivalent' ccGenericPointCloud.

Warning: if a mesh is passed, this method returns its vertices.

◆ ToPointCloud()

ccPointCloud * ccHObjectCaster::ToPointCloud ( ccHObject obj,
bool *  isLockedVertices = nullptr 
)
static

Converts current object to 'equivalent' ccPointCloud.

Warning: if a mesh is passed, this method returns its vertices.

Parameters
objccHObject to dynamically cast to a ccPointCloud object
isLockedVerticesthe caller can be warned if the returned cloud corresponds to locked vertices

◆ ToShifted()

ccShiftedObject * ccHObjectCaster::ToShifted ( ccHObject obj,
bool *  isLockedVertices = nullptr 
)
static

Converts current object to 'equivalent' ccShiftedObject.

Warning: if a mesh is passed, this method returns its vertices.


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