Open3D (C++ API)
Public Member Functions | Protected Member Functions
open3d::geometry::Geometry2D Class Referenceabstract

The base geometry class for 2D geometries. More...

#include <Geometry2D.h>

Inheritance diagram for open3d::geometry::Geometry2D:
open3d::geometry::Geometry open3d::geometry::Image open3d::geometry::RGBDImage open3d::visualization::SelectionPolygon

Public Member Functions

 ~Geometry2D () override
 
GeometryClear () override=0
 Clear all elements in the geometry. More...
 
bool IsEmpty () const override=0
 Returns true iff the geometry is empty. More...
 
virtual Eigen::Vector2d GetMinBound () const =0
 Returns min bounds for geometry coordinates. More...
 
virtual Eigen::Vector2d GetMaxBound () const =0
 Returns max bounds for geometry coordinates. More...
 
- Public Member Functions inherited from open3d::geometry::Geometry
virtual ~Geometry ()
 
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

 Geometry2D (GeometryType type)
 Parameterized Constructor. More...
 
- Protected Member Functions inherited from open3d::geometry::Geometry
 Geometry (GeometryType type, int dimension)
 Parameterized Constructor. More...
 

Additional Inherited Members

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

Detailed Description

The base geometry class for 2D geometries.

Main class for 2D geometries, Derives all data from Geometry Base class.

Constructor & Destructor Documentation

◆ ~Geometry2D()

open3d::geometry::Geometry2D::~Geometry2D ( )
inlineoverride

◆ Geometry2D()

open3d::geometry::Geometry2D::Geometry2D ( GeometryType  type)
inlineprotected

Parameterized Constructor.

Parameters
typetype of object based on GeometryType

Member Function Documentation

◆ Clear()

Geometry& open3d::geometry::Geometry2D::Clear ( )
overridepure virtual

◆ GetMaxBound()

virtual Eigen::Vector2d open3d::geometry::Geometry2D::GetMaxBound ( ) const
pure virtual

Returns max bounds for geometry coordinates.

Implemented in open3d::geometry::Image, open3d::visualization::SelectionPolygon, and open3d::geometry::RGBDImage.

◆ GetMinBound()

virtual Eigen::Vector2d open3d::geometry::Geometry2D::GetMinBound ( ) const
pure virtual

Returns min bounds for geometry coordinates.

Implemented in open3d::geometry::Image, open3d::visualization::SelectionPolygon, and open3d::geometry::RGBDImage.

◆ IsEmpty()

bool open3d::geometry::Geometry2D::IsEmpty ( ) const
overridepure virtual

Returns true iff the geometry is empty.

Implements open3d::geometry::Geometry.

Implemented in open3d::geometry::Image, open3d::visualization::SelectionPolygon, and open3d::geometry::RGBDImage.


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