Open3D (C++ API)  0.18.0
Loading...
Searching...
No Matches
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
14namespace open3d {
15namespace geometry {
16
22class Geometry2D : public Geometry {
23public:
24 ~Geometry2D() override {}
25
26protected:
31
32public:
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
Geometry2D(GeometryType type)
Parameterized Constructor.
Definition Geometry2D.h:30
Geometry & Clear() override=0
Clear all elements in the geometry.
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