|
Blender V4.3
|
#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 16 of file io/usd/hydra/object.cc.
|
virtual |
Reimplemented in blender::io::hydra::CurvesData, blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Definition at line 120 of file io/usd/hydra/object.cc.
|
static |
Definition at line 23 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, and blender::io::hydra::IdData::prim_id.
Referenced by blender::io::hydra::InstancerData::update_instance().
|
virtual |
Reimplemented in blender::io::hydra::MeshData, and blender::io::hydra::VolumeData.
Definition at line 105 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 129 of file io/usd/hydra/object.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), 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 76 of file io/usd/hydra/object.cc.
References blender::io::hydra::VolumeModifierData::is_volume_modifier(), OB_CURVES_LEGACY, OB_FONT, OB_MBALL, OB_MESH, and OB_SURF.
Referenced by blender::io::hydra::InstancerData::update_instance().
|
static |
Definition at line 57 of file io/usd/hydra/object.cc.
References OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_LAMP, OB_MBALL, OB_MESH, OB_SURF, and OB_VOLUME.
|
static |
Definition at line 94 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 110 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 115 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 127 of file io/usd/hydra/object.cc.
|
protectedvirtual |
Reimplemented in blender::io::hydra::HairData, blender::io::hydra::VolumeModifierData, and blender::io::hydra::WorldData.
Definition at line 122 of file io/usd/hydra/object.cc.
References blender::io::hydra::gf_matrix_from_transform(), and ptr.
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 25 of file object.hh.
Referenced by blender::io::hydra::HydraSceneDelegate::GetTransform().
| bool blender::io::hydra::ObjectData::visible = true |
Definition at line 26 of file object.hh.
Referenced by blender::io::hydra::HydraSceneDelegate::GetVisible().