Open3D (C++ API)  0.18.0+252c867
DrawableGeometry.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 
11 
12 namespace open3d {
13 namespace t {
14 namespace geometry {
15 
20 public:
23 
25  bool HasMaterial() const { return material_.IsValid(); }
26 
29 
32  return material_;
33  }
34 
37  material_ = material;
38  }
39 
40 private:
43 };
44 
45 } // namespace geometry
46 } // namespace t
47 } // namespace open3d
Mix-in class for geometry types that can be visualized.
Definition: DrawableGeometry.h:19
~DrawableGeometry()
Definition: DrawableGeometry.h:22
const visualization::rendering::Material & GetMaterial() const
Get const reference to material associated with this Geometry.
Definition: DrawableGeometry.h:31
DrawableGeometry()
Definition: DrawableGeometry.h:21
bool HasMaterial() const
Check if a material has been applied to this Geometry with SetMaterial.
Definition: DrawableGeometry.h:25
void SetMaterial(const visualization::rendering::Material &material)
Set the material properties associate with this Geometry.
Definition: DrawableGeometry.h:36
visualization::rendering::Material & GetMaterial()
Get material associated with this Geometry.
Definition: DrawableGeometry.h:28
bool IsValid() const
Definition: Material.h:53
Definition: PinholeCameraIntrinsic.cpp:16