ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::t::geometry::Geometry Class Referenceabstract

The base geometry class. More...

#include <Geometry.h>

Inheritance diagram for cloudViewer::t::geometry::Geometry:
Collaboration diagram for cloudViewer::t::geometry::Geometry:

Public Types

enum class  GeometryType {
  Unspecified = 0 , PointCloud = 1 , VoxelGrid = 2 , Octree = 3 ,
  LineSet = 4 , MeshBase = 5 , TriangleMesh = 6 , HalfEdgeTriangleMesh = 7 ,
  Image = 8 , RGBDImage = 9 , TetraMesh = 10 , OrientedBoundingBox = 11 ,
  AxisAlignedBoundingBox = 12
}
 Specifies possible geometry types. More...
 

Public Member Functions

virtual ~Geometry ()
 
virtual GeometryClear ()=0
 Clear all elements in the geometry. More...
 
virtual bool IsEmpty () const =0
 Returns true iff the geometry is empty. More...
 
virtual core::Device GetDevice () const =0
 Returns the device of the geometry. More...
 
GeometryType GetGeometryType () const
 Returns one of registered geometry types. More...
 
int Dimension () const
 Returns whether the geometry is 2D or 3D. More...
 
std::string GetName () const
 
void SetName (const std::string &name)
 
- Public Member Functions inherited from cloudViewer::core::IsDevice
 IsDevice ()=default
 
virtual ~IsDevice ()=default
 
bool IsCPU () const
 
bool IsCUDA () const
 
bool IsSYCL () const
 

Protected Member Functions

 Geometry (GeometryType type, int dimension)
 Parameterized Constructor. More...
 

Detailed Description

The base geometry class.

Definition at line 23 of file Geometry.h.

Member Enumeration Documentation

◆ GeometryType

Specifies possible geometry types.

Enumerator
Unspecified 

Unspecified geometry type.

PointCloud 

PointCloud.

VoxelGrid 

VoxelGrid.

Octree 

Octree.

LineSet 

LineSet.

MeshBase 

MeshBase.

TriangleMesh 

TriangleMesh.

HalfEdgeTriangleMesh 

HalfEdgeTriangleMesh.

Image 

Image.

RGBDImage 

RGBDImage.

TetraMesh 

TetraMesh.

OrientedBoundingBox 

OrientedBoundingBox.

AxisAlignedBoundingBox 

AxisAlignedBoundingBox.

Definition at line 28 of file Geometry.h.

Constructor & Destructor Documentation

◆ ~Geometry()

virtual cloudViewer::t::geometry::Geometry::~Geometry ( )
inlinevirtual

Definition at line 58 of file Geometry.h.

◆ Geometry()

cloudViewer::t::geometry::Geometry::Geometry ( GeometryType  type,
int  dimension 
)
inlineprotected

Parameterized Constructor.

Parameters
typeSpecifies the type of geometry of the object constructed.
dimensionSpecifies whether the dimension is 2D or 3D.

Definition at line 65 of file Geometry.h.

Member Function Documentation

◆ Clear()

◆ Dimension()

int cloudViewer::t::geometry::Geometry::Dimension ( ) const
inline

Returns whether the geometry is 2D or 3D.

Definition at line 82 of file Geometry.h.

◆ GetDevice()

◆ GetGeometryType()

GeometryType cloudViewer::t::geometry::Geometry::GetGeometryType ( ) const
inline

◆ GetName()

std::string cloudViewer::t::geometry::Geometry::GetName ( ) const
inline

Definition at line 84 of file Geometry.h.

◆ IsEmpty()

◆ SetName()

void cloudViewer::t::geometry::Geometry::SetName ( const std::string &  name)
inline

Definition at line 85 of file Geometry.h.

References name.


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