|
Blender V4.3
|
#include <instancer.hh>
Inherits blender::io::hydra::IdData.
Public Member Functions | |
| InstancerData (HydraSceneDelegate *scene_delegate, 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 |
| pxr::GfMatrix4d | transform (pxr::SdfPath const &id) const |
| pxr::HdPrimvarDescriptorVector | primvar_descriptors (pxr::HdInterpolation interpolation) const |
| pxr::VtIntArray | indices (pxr::SdfPath const &id) const |
| ObjectData * | object_data (pxr::SdfPath const &id) const |
| pxr::SdfPathVector | prototypes () const |
| void | available_materials (Set< pxr::SdfPath > &paths) const |
| void | update_double_sided (MaterialData *mat_data) |
| void | pre_update () |
| void | update_instance (DupliObject *dupli) |
| void | post_update () |
Public Member Functions inherited from blender::io::hydra::IdData | |
| IdData (HydraSceneDelegate *scene_delegate, const ID *id, pxr::SdfPath const &prim_id) | |
| virtual | ~IdData ()=default |
Additional Inherited Members | |
Public Attributes inherited from blender::io::hydra::IdData | |
| const ID * | id |
| pxr::SdfPath | prim_id |
Protected Attributes inherited from blender::io::hydra::IdData | |
| HydraSceneDelegate * | scene_delegate_ |
Definition at line 16 of file instancer.hh.
| blender::io::hydra::InstancerData::InstancerData | ( | HydraSceneDelegate * | scene_delegate, |
| pxr::SdfPath const & | prim_id ) |
Definition at line 23 of file instancer.cc.
| void blender::io::hydra::InstancerData::available_materials | ( | Set< pxr::SdfPath > & | paths | ) | const |
Definition at line 112 of file instancer.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 52 of file instancer.cc.
References ID_LOG.
Referenced by blender::io::hydra::HydraSceneDelegate::Get().
| pxr::VtIntArray blender::io::hydra::InstancerData::indices | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 83 of file instancer.cc.
Referenced by blender::io::hydra::HydraSceneDelegate::GetInstanceIndices().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 28 of file instancer.cc.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 30 of file instancer.cc.
| ObjectData * blender::io::hydra::InstancerData::object_data | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 88 of file instancer.cc.
| void blender::io::hydra::InstancerData::post_update | ( | ) |
Definition at line 188 of file instancer.cc.
References ID_LOG, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::io::hydra::IdData::prim_id, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::remove_if(), blender::io::hydra::IdData::scene_delegate_, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
| void blender::io::hydra::InstancerData::pre_update | ( | ) |
Definition at line 129 of file instancer.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
| pxr::HdPrimvarDescriptorVector blender::io::hydra::InstancerData::primvar_descriptors | ( | pxr::HdInterpolation | interpolation | ) | const |
Definition at line 72 of file instancer.cc.
Referenced by blender::io::hydra::HydraSceneDelegate::GetPrimvarDescriptors().
| pxr::SdfPathVector blender::io::hydra::InstancerData::prototypes | ( | ) | const |
Definition at line 101 of file instancer.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
Referenced by blender::io::hydra::HydraSceneDelegate::GetInstancerPrototypes().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 32 of file instancer.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), CLOG_INFO, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::io::hydra::LOG_HYDRA_SCENE, blender::io::hydra::IdData::prim_id, blender::io::hydra::IdData::scene_delegate_, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
| pxr::GfMatrix4d blender::io::hydra::InstancerData::transform | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 61 of file instancer.cc.
Referenced by blender::io::hydra::HydraSceneDelegate::GetInstancerTransform(), and blender::io::hydra::HydraSceneDelegate::GetTransform().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 50 of file instancer.cc.
| void blender::io::hydra::InstancerData::update_double_sided | ( | MaterialData * | mat_data | ) |
Definition at line 122 of file instancer.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
| void blender::io::hydra::InstancerData::update_instance | ( | DupliObject * | dupli | ) |
Definition at line 140 of file instancer.cc.
References blender::io::hydra::ObjectData::create(), blender::io::hydra::HydraSceneDelegate::depsgraph, blender::io::hydra::gf_matrix_from_transform(), ID_LOG, blender::io::hydra::ObjectData::is_mesh(), blender::io::hydra::HairData::is_supported(), blender::io::hydra::HairData::is_visible(), LISTBASE_FOREACH, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), DupliObject::mat, DupliObject::ob, psys_in_edit_mode(), and blender::io::hydra::IdData::scene_delegate_.