Open3D (C++ API)
0.19.0
Toggle main menu visibility
Loading...
Searching...
No Matches
cpp
open3d
t
geometry
DrawableGeometry.h
Go to the documentation of this file.
1
// ----------------------------------------------------------------------------
2
// - Open3D: www.open3d.org -
3
// ----------------------------------------------------------------------------
4
// Copyright (c) 2018-2024 www.open3d.org
5
// SPDX-License-Identifier: MIT
6
// ----------------------------------------------------------------------------
7
8
#pragma once
9
10
#include "
open3d/visualization/rendering/Material.h
"
11
12
namespace
open3d
{
13
namespace
t
{
14
namespace
geometry
{
15
19
class
DrawableGeometry
{
20
public
:
21
DrawableGeometry
() {}
22
~DrawableGeometry
() {}
23
25
bool
HasMaterial
()
const
{
return
material_.IsValid(); }
26
28
visualization::rendering::Material
&
GetMaterial
() {
return
material_; }
29
31
const
visualization::rendering::Material
&
GetMaterial
()
const
{
32
return
material_;
33
}
34
36
void
SetMaterial
(
const
visualization::rendering::Material
&material) {
37
material_ = material;
38
}
39
40
private
:
42
visualization::rendering::Material
material_;
43
};
44
45
}
// namespace geometry
46
}
// namespace t
47
}
// namespace open3d
Material.h
open3d::t::geometry::DrawableGeometry::~DrawableGeometry
~DrawableGeometry()
Definition
DrawableGeometry.h:22
open3d::t::geometry::DrawableGeometry::GetMaterial
const visualization::rendering::Material & GetMaterial() const
Get const reference to material associated with this Geometry.
Definition
DrawableGeometry.h:31
open3d::t::geometry::DrawableGeometry::DrawableGeometry
DrawableGeometry()
Definition
DrawableGeometry.h:21
open3d::t::geometry::DrawableGeometry::HasMaterial
bool HasMaterial() const
Check if a material has been applied to this Geometry with SetMaterial.
Definition
DrawableGeometry.h:25
open3d::t::geometry::DrawableGeometry::SetMaterial
void SetMaterial(const visualization::rendering::Material &material)
Set the material properties associate with this Geometry.
Definition
DrawableGeometry.h:36
open3d::t::geometry::DrawableGeometry::GetMaterial
visualization::rendering::Material & GetMaterial()
Get material associated with this Geometry.
Definition
DrawableGeometry.h:28
open3d::visualization::rendering::Material
Definition
Material.h:21
open3d::t::geometry
Definition
BoundingVolume.cpp:16
open3d::t
Definition
BoundingVolume.cpp:15
open3d
Definition
PinholeCameraIntrinsic.cpp:16
Generated by
1.17.0