Open3D (C++ API)  0.18.0+252c867
Public Types | Public Member Functions | Protected Member Functions
open3d::geometry::Geometry Class Referenceabstract

The base geometry class. More...

#include <Geometry.h>

Inheritance diagram for open3d::geometry::Geometry:
open3d::geometry::Geometry2D open3d::geometry::Geometry3D open3d::geometry::Image open3d::geometry::RGBDImage open3d::visualization::SelectionPolygon open3d::geometry::AxisAlignedBoundingBox open3d::geometry::LineSet open3d::geometry::MeshBase open3d::geometry::Octree open3d::geometry::OrientedBoundingBox open3d::geometry::PointCloud open3d::geometry::VoxelGrid open3d::visualization::PointCloudPicker

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...
 
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)
 

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::geometry::Geometry::~Geometry ( )
inlinevirtual

◆ Geometry()

open3d::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::geometry::Geometry::Clear ( )
pure virtual

◆ Dimension()

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

Returns whether the geometry is 2D or 3D.

◆ GetGeometryType()

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

Returns one of registered geometry types.

◆ GetName()

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

◆ IsEmpty()

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

◆ SetName()

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

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