ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DrawableGeometry.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
11 
12 namespace cloudViewer {
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 cloudViewer
Mix-in class for geometry types that can be visualized.
const visualization::rendering::Material & GetMaterial() const
Get const reference to material associated with this Geometry.
bool HasMaterial() const
Check if a material has been applied to this Geometry with SetMaterial.
void SetMaterial(const visualization::rendering::Material &material)
Set the material properties associate with this Geometry.
visualization::rendering::Material & GetMaterial()
Get material associated with this Geometry.
Generic file read and write utility for python interface.