|
Blender V4.3
|
#include <light.hh>
Inherits blender::io::hydra::ObjectData.
Inherited by blender::io::hydra::WorldData.
Public Member Functions | |
| LightData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| void | init () override |
| void | insert () override |
| void | remove () override |
| void | update () override |
| pxr::VtValue | get_data (pxr::TfToken const &key) const override |
Public Member Functions inherited from blender::io::hydra::ObjectData | |
| ObjectData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| virtual pxr::VtValue | get_data (pxr::SdfPath const &id, pxr::TfToken const &key) const |
| virtual pxr::SdfPath | material_id () const |
| virtual pxr::SdfPath | material_id (pxr::SdfPath const &id) const |
| virtual void | available_materials (Set< pxr::SdfPath > &paths) const |
| virtual pxr::VtValue | get_data (pxr::TfToken const &key) const=0 |
Public Member Functions inherited from blender::io::hydra::IdData | |
| IdData (HydraSceneDelegate *scene_delegate, const ID *id, pxr::SdfPath const &prim_id) | |
| virtual | ~IdData ()=default |
Protected Member Functions | |
| pxr::TfToken | prim_type (const Light *light) |
Protected Member Functions inherited from blender::io::hydra::ObjectData | |
| virtual void | write_transform () |
| virtual void | write_materials () |
| MaterialData * | get_or_create_material (const Material *mat) |
Protected Attributes | |
| std::map< pxr::TfToken, pxr::VtValue > | data_ |
| pxr::TfToken | prim_type_ |
Protected Attributes inherited from blender::io::hydra::IdData | |
| HydraSceneDelegate * | scene_delegate_ |
Additional Inherited Members | |
Static Public Member Functions inherited from blender::io::hydra::ObjectData | |
| static std::unique_ptr< ObjectData > | create (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) |
| static bool | is_supported (const Object *object) |
| static bool | is_mesh (const Object *object) |
| static bool | is_visible (HydraSceneDelegate *scene_delegate, const Object *object, int mode=OB_VISIBLE_SELF) |
Public Attributes inherited from blender::io::hydra::ObjectData | |
| pxr::GfMatrix4d | transform |
| bool | visible = true |
Public Attributes inherited from blender::io::hydra::IdData | |
| const ID * | id |
| pxr::SdfPath | prim_id |
| LightData::LightData | ( | HydraSceneDelegate * | scene_delegate, |
| const Object * | object, | ||
| pxr::SdfPath const & | prim_id ) |
Definition at line 19 of file io/usd/hydra/light.cc.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 136 of file io/usd/hydra/light.cc.
References data_, and ID_LOGN.
Referenced by blender::io::hydra::HydraSceneDelegate::GetLightParamValue().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Reimplemented in blender::io::hydra::WorldData.
Definition at line 26 of file io/usd/hydra/light.cc.
References Light::area_size, BLI_assert_unreachable, data_, blender::io::hydra::IdData::id, ID_LOGN, LA_AREA, LA_AREA_DISK, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SPOT, LA_SUN, M_PI, prim_type(), prim_type_, RAD2DEGF, and blender::io::hydra::ObjectData::write_transform().
Referenced by update().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 99 of file io/usd/hydra/light.cc.
References ID_LOGN, blender::io::hydra::IdData::prim_id, prim_type_, and blender::io::hydra::IdData::scene_delegate_.
Referenced by update(), and blender::io::hydra::WorldData::update().
|
protected |
Definition at line 147 of file io/usd/hydra/light.cc.
References BLI_assert_unreachable, LA_AREA, LA_AREA_DISK, LA_AREA_ELLIPSE, LA_AREA_RECT, LA_AREA_SQUARE, LA_LOCAL, LA_SPOT, and LA_SUN.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 105 of file io/usd/hydra/light.cc.
References ID_LOG, blender::io::hydra::IdData::prim_id, prim_type_, and blender::io::hydra::IdData::scene_delegate_.
Referenced by update(), and blender::io::hydra::WorldData::update().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Reimplemented in blender::io::hydra::WorldData.
Definition at line 111 of file io/usd/hydra/light.cc.
References ID_LOGN, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, init(), insert(), blender::io::hydra::IdData::prim_id, prim_type(), prim_type_, remove(), blender::io::hydra::IdData::scene_delegate_, and blender::io::hydra::ObjectData::write_transform().
|
protected |
Definition at line 23 of file light.hh.
Referenced by get_data(), init(), blender::io::hydra::WorldData::init(), and blender::io::hydra::WorldData::update().
|
protected |