Blender
V4.3
source
blender
io
usd
hydra
light.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2011-2022 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
7
#include <pxr/base/tf/hashmap.h>
8
#include <pxr/usd/sdf/assetPath.h>
9
#include <pxr/usd/sdf/path.h>
10
11
#include "
BKE_light.h
"
12
13
#include "
object.hh
"
14
15
namespace
blender::io::hydra
{
16
17
class
InstancerData;
18
19
class
LightData
:
public
ObjectData
{
20
friend
InstancerData
;
21
22
protected
:
23
std::map<pxr::TfToken, pxr::VtValue>
data_
;
24
pxr::TfToken
prim_type_
;
25
26
public
:
27
LightData
(
HydraSceneDelegate
*scene_delegate,
const
Object
*
object
, pxr::SdfPath
const
&
prim_id
);
28
29
void
init
()
override
;
30
void
insert
()
override
;
31
void
remove
()
override
;
32
void
update
()
override
;
33
34
pxr::VtValue
get_data
(pxr::TfToken
const
&key)
const override
;
35
36
protected
:
37
pxr::TfToken
prim_type
(
const
Light
*light);
38
};
39
40
}
// namespace blender::io::hydra
BKE_light.h
General operations, lookup, etc. for blender lights.
blender::io::hydra::HydraSceneDelegate
Definition
hydra_scene_delegate.hh:36
blender::io::hydra::IdData::prim_id
pxr::SdfPath prim_id
Definition
id.hh:36
blender::io::hydra::InstancerData
Definition
instancer.hh:16
blender::io::hydra::LightData
Definition
light.hh:19
blender::io::hydra::LightData::prim_type
pxr::TfToken prim_type(const Light *light)
Definition
io/usd/hydra/light.cc:147
blender::io::hydra::LightData::update
void update() override
Definition
io/usd/hydra/light.cc:111
blender::io::hydra::LightData::insert
void insert() override
Definition
io/usd/hydra/light.cc:99
blender::io::hydra::LightData::init
void init() override
Definition
io/usd/hydra/light.cc:26
blender::io::hydra::LightData::remove
void remove() override
Definition
io/usd/hydra/light.cc:105
blender::io::hydra::LightData::prim_type_
pxr::TfToken prim_type_
Definition
light.hh:24
blender::io::hydra::LightData::data_
std::map< pxr::TfToken, pxr::VtValue > data_
Definition
light.hh:23
blender::io::hydra::LightData::get_data
pxr::VtValue get_data(pxr::TfToken const &key) const override
Definition
io/usd/hydra/light.cc:136
blender::io::hydra::ObjectData
Definition
object.hh:23
LightData
LightData
Definition
eevee_light_culling_info.hh:14
blender::io::hydra
Definition
io/usd/hydra/curves.cc:24
object.hh
Light
Definition
DNA_light_types.h:22
Object
Definition
DNA_object_types.h:193
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0