Open3D (C++ API)  0.18.0+252c867
Geometry2D.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Eigen/Core>
11 
13 
14 namespace open3d {
15 namespace geometry {
16 
22 class Geometry2D : public Geometry {
23 public:
24  ~Geometry2D() override {}
25 
26 protected:
31 
32 public:
33  Geometry& Clear() override = 0;
34  bool IsEmpty() const override = 0;
36  virtual Eigen::Vector2d GetMinBound() const = 0;
38  virtual Eigen::Vector2d GetMaxBound() const = 0;
39 };
40 
41 } // namespace geometry
42 } // namespace open3d
The base geometry class for 2D geometries.
Definition: Geometry2D.h:22
Geometry & Clear() override=0
Clear all elements in the geometry.
Geometry2D(GeometryType type)
Parameterized Constructor.
Definition: Geometry2D.h:30
virtual Eigen::Vector2d GetMaxBound() const =0
Returns max bounds for geometry coordinates.
~Geometry2D() override
Definition: Geometry2D.h:24
bool IsEmpty() const override=0
Returns true iff the geometry is empty.
virtual Eigen::Vector2d GetMinBound() const =0
Returns min bounds for geometry coordinates.
The base geometry class.
Definition: Geometry.h:18
GeometryType
Specifies possible geometry types.
Definition: Geometry.h:23
char type
Definition: FilePCD.cpp:41
Definition: PinholeCameraIntrinsic.cpp:16