|
Blender V5.0
|
#include <object.hh>
Inherits blender::io::hydra::IdData.
Inherited by blender::io::hydra::CurvesData, blender::io::hydra::LightData, blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Public Member Functions | |
| 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 |
| virtual void | init ()=0 |
| virtual void | insert ()=0 |
| virtual void | remove ()=0 |
| virtual void | update ()=0 |
Static Public Member Functions | |
| 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 | |
| pxr::GfMatrix4d | transform |
| bool | visible = true |
| Public Attributes inherited from blender::io::hydra::IdData | |
| const ID * | id |
| pxr::SdfPath | prim_id |
Protected Member Functions | |
| virtual void | write_transform () |
| virtual void | write_materials () |
| MaterialData * | get_or_create_material (const Material *mat) |
Additional Inherited Members | |
| Protected Attributes inherited from blender::io::hydra::IdData | |
| HydraSceneDelegate * | scene_delegate_ |
| blender::io::hydra::ObjectData::ObjectData | ( | HydraSceneDelegate * | scene_delegate, |
| const Object * | object, | ||
| pxr::SdfPath const & | prim_id ) |
Definition at line 19 of file io/usd/hydra/object.cc.
References blender::io::hydra::IdData::id, blender::io::hydra::IdData::IdData(), nullptr, blender::io::hydra::IdData::prim_id, and transform.
Referenced by blender::io::hydra::CurvesData::CurvesData(), blender::io::hydra::LightData::LightData(), blender::io::hydra::MeshData::MeshData(), and blender::io::hydra::VolumeData::VolumeData().
|
virtual |
Reimplemented in blender::io::hydra::CurvesData, blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Definition at line 124 of file io/usd/hydra/object.cc.
|
static |
Definition at line 27 of file io/usd/hydra/object.cc.
References BLI_assert_unreachable, blender::io::hydra::VolumeModifierData::is_volume_modifier(), OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_LAMP, OB_MBALL, OB_MESH, OB_SURF, OB_VOLUME, blender::io::hydra::IdData::prim_id, and Object::type.
Referenced by blender::io::hydra::InstancerData::update_instance().
|
virtual |
Reimplemented in blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Definition at line 109 of file io/usd/hydra/object.cc.
References get_data().
Referenced by blender::io::hydra::HydraSceneDelegate::Get(), and get_data().
|
virtual |
Implements blender::io::hydra::IdData.
Reimplemented in blender::io::hydra::VolumeData.
|
protected |
Definition at line 133 of file io/usd/hydra/object.cc.
References blender::io::hydra::MaterialData::init(), blender::io::hydra::MaterialData::insert(), and blender::io::hydra::IdData::scene_delegate_.
Referenced by blender::io::hydra::CurvesData::write_materials(), blender::io::hydra::MeshData::write_materials(), and blender::io::hydra::VolumeData::write_materials().
|
static |
Definition at line 80 of file io/usd/hydra/object.cc.
References blender::io::hydra::VolumeModifierData::is_volume_modifier(), OB_CURVES_LEGACY, OB_FONT, OB_MBALL, OB_MESH, OB_SURF, and Object::type.
Referenced by blender::io::hydra::InstancerData::update_instance().
|
static |
Definition at line 61 of file io/usd/hydra/object.cc.
References OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_LAMP, OB_MBALL, OB_MESH, OB_SURF, OB_VOLUME, and Object::type.
|
static |
Definition at line 98 of file io/usd/hydra/object.cc.
References BKE_object_is_visible_in_viewport(), BKE_object_visibility(), DAG_EVAL_VIEWPORT, DEG_get_mode(), blender::io::hydra::HydraSceneDelegate::depsgraph, ret, and blender::io::hydra::HydraSceneDelegate::view3d.
|
virtual |
Reimplemented in blender::io::hydra::CurvesData, and blender::io::hydra::VolumeData.
Definition at line 114 of file io/usd/hydra/object.cc.
Referenced by blender::io::hydra::HydraSceneDelegate::GetMaterialId(), and material_id().
|
virtual |
Reimplemented in blender::io::hydra::MeshData.
Definition at line 119 of file io/usd/hydra/object.cc.
References material_id().
|
protectedvirtual |
Reimplemented in blender::io::hydra::CurvesData, blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Definition at line 131 of file io/usd/hydra/object.cc.
|
protectedvirtual |
Reimplemented in blender::io::hydra::HairData, and blender::io::hydra::VolumeModifierData.
Definition at line 126 of file io/usd/hydra/object.cc.
References blender::io::hydra::gf_matrix_from_transform(), ptr, and transform.
Referenced by blender::io::hydra::CurvesData::init(), blender::io::hydra::LightData::init(), blender::io::hydra::MeshData::init(), blender::io::hydra::VolumeData::init(), blender::io::hydra::CurvesData::update(), blender::io::hydra::LightData::update(), blender::io::hydra::MeshData::update(), and blender::io::hydra::VolumeData::update().
| pxr::GfMatrix4d blender::io::hydra::ObjectData::transform |
Definition at line 24 of file object.hh.
Referenced by blender::io::hydra::HydraSceneDelegate::GetTransform(), blender::io::hydra::WorldData::init(), ObjectData(), blender::io::hydra::HairData::write_transform(), write_transform(), and blender::io::hydra::VolumeModifierData::write_transform().