Open3D (C++ API)  0.17.0
Loading...
Searching...
No Matches
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
12namespace open3d {
13namespace t {
14namespace geometry {
15
20public:
23
25 bool HasMaterial() const { return material_.IsValid(); }
26
29
32 return material_;
33 }
34
37 material_ = material;
38 }
39
40private:
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:49
Definition PinholeCameraIntrinsic.cpp:16