Open3D (C++ API)  0.17.0+4d63591
Public Types | Public Member Functions | Protected Member Functions
open3d::t::geometry::Geometry Class Referenceabstract

The base geometry class. More...

#include <Geometry.h>

Inheritance diagram for open3d::t::geometry::Geometry:
open3d::core::IsDevice open3d::t::geometry::AxisAlignedBoundingBox open3d::t::geometry::Image open3d::t::geometry::LineSet open3d::t::geometry::OrientedBoundingBox open3d::t::geometry::PointCloud open3d::t::geometry::RGBDImage open3d::t::geometry::TriangleMesh

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 open3d::core::IsDevice
 IsDevice ()=default
 
virtual ~IsDevice ()=default
 
bool IsCPU () const
 
bool IsCUDA () const
 

Protected Member Functions

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

Detailed Description

The base geometry class.

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.

Constructor & Destructor Documentation

◆ ~Geometry()

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

◆ Geometry()

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

Member Function Documentation

◆ Clear()

virtual Geometry& open3d::t::geometry::Geometry::Clear ( )
pure virtual

◆ Dimension()

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

Returns whether the geometry is 2D or 3D.

◆ GetDevice()

virtual core::Device open3d::t::geometry::Geometry::GetDevice ( ) const
pure virtual

◆ GetGeometryType()

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

Returns one of registered geometry types.

◆ GetName()

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

◆ IsEmpty()

virtual bool open3d::t::geometry::Geometry::IsEmpty ( ) const
pure virtual

◆ SetName()

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

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