![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
The base geometry class. More...
#include <Geometry.h>


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 Geometry & | Clear ()=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 cloudViewer::core::IsDevice | |
| IsDevice ()=default | |
| virtual | ~IsDevice ()=default |
| bool | IsCPU () const |
| bool | IsCUDA () const |
| bool | IsSYCL () const |
Protected Member Functions | |
| Geometry (GeometryType type, int dimension) | |
| Parameterized Constructor. More... | |
The base geometry class.
Definition at line 23 of file Geometry.h.
|
strong |
Specifies possible geometry types.
Definition at line 28 of file Geometry.h.
|
inlinevirtual |
Definition at line 58 of file Geometry.h.
|
inlineprotected |
Parameterized Constructor.
| type | Specifies the type of geometry of the object constructed. |
| dimension | Specifies whether the dimension is 2D or 3D. |
Definition at line 65 of file Geometry.h.
|
pure virtual |
Clear all elements in the geometry.
Implemented in cloudViewer::t::geometry::PyGeometry< GeometryBase >, cloudViewer::t::geometry::TriangleMesh, cloudViewer::t::geometry::RGBDImage, cloudViewer::t::geometry::PointCloud, cloudViewer::t::geometry::LineSet, cloudViewer::t::geometry::Image, cloudViewer::t::geometry::OrientedBoundingBox, and cloudViewer::t::geometry::AxisAlignedBoundingBox.
Referenced by cloudViewer::t::geometry::pybind_geometry_class().
|
inline |
Returns whether the geometry is 2D or 3D.
Definition at line 82 of file Geometry.h.
|
pure virtual |
Returns the device of the geometry.
Implements cloudViewer::core::IsDevice.
Implemented in cloudViewer::t::geometry::PyGeometry< GeometryBase >, cloudViewer::t::geometry::TriangleMesh, cloudViewer::t::geometry::RGBDImage, cloudViewer::t::geometry::PointCloud, cloudViewer::t::geometry::LineSet, cloudViewer::t::geometry::Image, cloudViewer::t::geometry::OrientedBoundingBox, and cloudViewer::t::geometry::AxisAlignedBoundingBox.
Referenced by cloudViewer::t::geometry::pybind_geometry_class().
|
inline |
Returns one of registered geometry types.
Definition at line 79 of file Geometry.h.
Referenced by cloudViewer::t::geometry::vtkutils::CreateVtkPolyDataFromGeometry(), and cloudViewer::visualization::rendering::GeometryBuffersBuilder::GetBuilder().
|
inline |
Definition at line 84 of file Geometry.h.
|
pure virtual |
Returns true iff the geometry is empty.
Implemented in cloudViewer::t::geometry::PyGeometry< GeometryBase >, cloudViewer::t::geometry::TriangleMesh, cloudViewer::t::geometry::RGBDImage, cloudViewer::t::geometry::PointCloud, cloudViewer::t::geometry::LineSet, cloudViewer::t::geometry::Image, cloudViewer::t::geometry::OrientedBoundingBox, and cloudViewer::t::geometry::AxisAlignedBoundingBox.
Referenced by cloudViewer::visualization::rendering::FilamentScene::AddGeometry(), and cloudViewer::t::geometry::pybind_geometry_class().
|
inline |
Definition at line 85 of file Geometry.h.
References name.