|
Blender V5.3
|
#include <populate_context.hh>
Public Member Functions | |
| PopulateContext (Depsgraph *depsgraph, Main *bmain, Scene *scene, const View3D *view3d, const pxr::SdfPath &root_path, bool use_materialx, Span< pxr::TfToken > material_render_contexts, Span< pxr::TfToken > shader_source_types, Map< const Material *, EmittedMaterial > &emitted_materials, Map< EmittedGeometryKey, EmittedGeometry > &emitted_geometry, Map< const Object *, Vector< const ID * > > &instance_geometries_by_object, const Set< pxr::SdfPath > ¤t_paths) | |
Path naming scheme for each prim | |
| pxr::SdfPath | object_prim_id (const Object *object) const |
| pxr::SdfPath | submesh_prim_id (const Object *object, int submesh_index) const |
| pxr::SdfPath | hair_prim_id (const Object *object, const ParticleSystem *psys) const |
| pxr::SdfPath | material_prim_id (const Material *material) const |
| pxr::SdfPath | instancer_prim_id () const |
| pxr::SdfPath | instancer_proto_root (const Object *source) const |
| pxr::SdfPath | instancer_proto_submesh (const Object *source, int submesh_index) const |
| pxr::SdfPath | instance_clone_prim_id (const Object *source, int instance_index) const |
Materials | |
| const EmittedMaterial * | get_or_create_material (const Material *material) |
BObjectInfo / EmittedGeometryKey | |
| EmittedGeometryKey | emitted_geometry_key (const BObjectInfo &info, const pxr::TfToken &type) const |
Emit | |
| void | emit_prim (const pxr::SdfPath &path, const pxr::TfToken &type, const pxr::HdContainerDataSourceHandle &ds) |
| void | emit_object_prim (EmittedObject &emitted, const pxr::SdfPath &path, const pxr::TfToken &type, const pxr::HdContainerDataSourceHandle &ds, const pxr::GfMatrix4d &geometry_xform=pxr::GfMatrix4d(1.0)) |
Instances and Prototypes | |
| pxr::HdContainerDataSourceHandle | proto_instanced_by (const Object *source) const |
| void | add_instance (const Object *source, const float dupli_mat[4][4]) |
Definition at line 48 of file populate_context.hh.
|
inline |
Definition at line 49 of file populate_context.hh.
References bmain, depsgraph, emitted_geometry, emitted_materials, emitted_paths, instance_geometries_by_object, material_render_contexts, root_path, scene, shader_source_types, use_materialx, and view3d.
| void blender::io::hydra::PopulateContext::add_instance | ( | const Object * | source, |
| const float | dupli_mat[4][4] ) |
Definition at line 216 of file populate_context.cc.
References blender::io::hydra::gf_matrix_from_transform(), instance_transforms, per_proto_indices, and proto_range_by_source.
Referenced by blender::io::hydra::HydraSceneIndex::populate().
| void blender::io::hydra::PopulateContext::emit_object_prim | ( | EmittedObject & | emitted, |
| const pxr::SdfPath & | path, | ||
| const pxr::TfToken & | type, | ||
| const pxr::HdContainerDataSourceHandle & | ds, | ||
| const pxr::GfMatrix4d & | geometry_xform = pxr::GfMatrix4d(1.0) ) |
Definition at line 160 of file populate_context.cc.
References blender::io::hydra::EmittedObjectPrim::base_data_source, emit_prim(), blender::io::hydra::EmittedObjectPrim::geometry_xform, blender::io::hydra::EmittedObjectPrim::path, blender::io::hydra::EmittedObject::prims, and blender::io::hydra::EmittedObjectPrim::type.
Referenced by blender::io::hydra::emit_curves_object(), blender::io::hydra::emit_hair_for_object(), blender::io::hydra::emit_light_object(), blender::io::hydra::emit_mesh_object(), and blender::io::hydra::emit_volume_object().
| void blender::io::hydra::PopulateContext::emit_prim | ( | const pxr::SdfPath & | path, |
| const pxr::TfToken & | type, | ||
| const pxr::HdContainerDataSourceHandle & | ds ) |
Definition at line 149 of file populate_context.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), emitted_paths, new_paths, to_add, and to_dirty.
Referenced by blender::io::hydra::EmittedWorld::emit(), blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_hair_proto(), blender::io::hydra::emit_light_dupli(), blender::io::hydra::emit_mesh_proto(), emit_object_prim(), blender::io::hydra::emit_volume_dupli(), and blender::io::hydra::HydraSceneIndex::populate().
| EmittedGeometryKey blender::io::hydra::PopulateContext::emitted_geometry_key | ( | const BObjectInfo & | info, |
| const pxr::TfToken & | type ) const |
Definition at line 70 of file populate_context.cc.
References blender::DEG_get_mode(), depsgraph, blender::Object::id, blender::io::hydra::BObjectInfo::is_real_object_data(), blender::io::hydra::BObjectInfo::object_data, blender::io::hydra::object_disables_geometry_sharing(), blender::io::hydra::BObjectInfo::real_object, and scene.
Referenced by blender::io::hydra::emit_curves_object(), blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_mesh_object(), and blender::io::hydra::emit_mesh_proto().
| const EmittedMaterial * blender::io::hydra::PopulateContext::get_or_create_material | ( | const Material * | material | ) |
Definition at line 189 of file populate_context.cc.
References blender::io::hydra::build_emitted_material(), emitted_materials, new_emitted_materials, and used_emitted_materials.
Referenced by blender::io::hydra::emit_volume_dupli(), blender::io::hydra::emit_volume_object(), blender::io::hydra::get_or_build_emitted_curves(), blender::io::hydra::get_or_build_emitted_mesh(), blender::io::hydra::HydraSceneIndex::populate(), and blender::io::hydra::resolve_curves_material().
| pxr::SdfPath blender::io::hydra::PopulateContext::hair_prim_id | ( | const Object * | object, |
| const ParticleSystem * | psys ) const |
Definition at line 101 of file populate_context.cc.
References root_path, and SNPRINTF.
Referenced by blender::io::hydra::emit_hair_for_object().
| pxr::SdfPath blender::io::hydra::PopulateContext::instance_clone_prim_id | ( | const Object * | source, |
| int | instance_index ) const |
Definition at line 135 of file populate_context.cc.
References instance_index, instancer_proto_root(), and SNPRINTF.
Referenced by blender::io::hydra::emit_light_dupli(), and blender::io::hydra::emit_volume_dupli().
| pxr::SdfPath blender::io::hydra::PopulateContext::instancer_prim_id | ( | ) | const |
Definition at line 115 of file populate_context.cc.
References root_path.
Referenced by instancer_proto_root(), blender::io::hydra::HydraSceneIndex::populate(), and proto_instanced_by().
| pxr::SdfPath blender::io::hydra::PopulateContext::instancer_proto_root | ( | const Object * | source | ) | const |
Definition at line 120 of file populate_context.cc.
References blender::Object::id, instancer_prim_id(), and SNPRINTF.
Referenced by blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_hair_proto(), instance_clone_prim_id(), instancer_proto_submesh(), and proto_instanced_by().
| pxr::SdfPath blender::io::hydra::PopulateContext::instancer_proto_submesh | ( | const Object * | source, |
| int | submesh_index ) const |
Definition at line 127 of file populate_context.cc.
References instancer_proto_root(), and SNPRINTF.
Referenced by blender::io::hydra::emit_mesh_proto().
| pxr::SdfPath blender::io::hydra::PopulateContext::material_prim_id | ( | const Material * | material | ) | const |
Definition at line 108 of file populate_context.cc.
References root_path, and SNPRINTF.
Referenced by blender::io::hydra::build_emitted_material().
| pxr::SdfPath blender::io::hydra::PopulateContext::object_prim_id | ( | const Object * | object | ) | const |
Definition at line 87 of file populate_context.cc.
References root_path, and SNPRINTF.
Referenced by blender::io::hydra::emit_curves_object(), blender::io::hydra::emit_light_object(), blender::io::hydra::emit_volume_object(), and submesh_prim_id().
| pxr::HdContainerDataSourceHandle blender::io::hydra::PopulateContext::proto_instanced_by | ( | const Object * | source | ) | const |
Definition at line 209 of file populate_context.cc.
References blender::io::hydra::build_instanced_by_data_source(), instancer_prim_id(), and instancer_proto_root().
Referenced by blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_hair_proto(), and blender::io::hydra::emit_mesh_proto().
| pxr::SdfPath blender::io::hydra::PopulateContext::submesh_prim_id | ( | const Object * | object, |
| int | submesh_index ) const |
Definition at line 94 of file populate_context.cc.
References object_prim_id(), and SNPRINTF.
Referenced by blender::io::hydra::emit_mesh_object().
| Vector<pxr::SdfPath> blender::io::hydra::PopulateContext::all_proto_paths |
Definition at line 109 of file populate_context.hh.
Referenced by blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_hair_proto(), blender::io::hydra::emit_mesh_proto(), and blender::io::hydra::HydraSceneIndex::populate().
| Main* blender::io::hydra::PopulateContext::bmain |
Definition at line 78 of file populate_context.hh.
Referenced by blender::io::hydra::build_emitted_material(), blender::io::hydra::emit_volume_dupli(), blender::io::hydra::emit_volume_object(), and PopulateContext().
| Depsgraph* blender::io::hydra::PopulateContext::depsgraph |
Definition at line 77 of file populate_context.hh.
Referenced by blender::io::hydra::build_emitted_material(), blender::io::hydra::emit_hair_for_object(), blender::io::hydra::emit_hair_proto(), blender::io::hydra::emit_volume_object(), emitted_geometry_key(), and PopulateContext().
| Map<EmittedGeometryKey, EmittedGeometry>& blender::io::hydra::PopulateContext::emitted_geometry |
Definition at line 88 of file populate_context.hh.
Referenced by blender::io::hydra::get_or_build_emitted_curves(), blender::io::hydra::get_or_build_emitted_mesh(), and PopulateContext().
| Map<const Material *, EmittedMaterial>& blender::io::hydra::PopulateContext::emitted_materials |
Definition at line 87 of file populate_context.hh.
Referenced by get_or_create_material(), and PopulateContext().
| const Set<pxr::SdfPath>& blender::io::hydra::PopulateContext::emitted_paths |
Definition at line 89 of file populate_context.hh.
Referenced by emit_prim(), and PopulateContext().
| Map<const Object *, Vector<const ID *> >& blender::io::hydra::PopulateContext::instance_geometries_by_object |
Definition at line 90 of file populate_context.hh.
Referenced by blender::io::hydra::get_or_build_emitted_curves(), blender::io::hydra::get_or_build_emitted_mesh(), and PopulateContext().
| pxr::VtMatrix4dArray blender::io::hydra::PopulateContext::instance_transforms |
Definition at line 111 of file populate_context.hh.
Referenced by add_instance(), and blender::io::hydra::HydraSceneIndex::populate().
| Span<pxr::TfToken> blender::io::hydra::PopulateContext::material_render_contexts |
Definition at line 83 of file populate_context.hh.
Referenced by blender::io::hydra::build_emitted_material(), and PopulateContext().
Definition at line 94 of file populate_context.hh.
Referenced by get_or_create_material(), and blender::io::hydra::HydraSceneIndex::populate().
| Map<const Object *, EmittedObject> blender::io::hydra::PopulateContext::new_emitted_objects |
Definition at line 106 of file populate_context.hh.
Referenced by blender::io::hydra::HydraSceneIndex::populate().
| Set<pxr::SdfPath> blender::io::hydra::PopulateContext::new_paths |
Definition at line 101 of file populate_context.hh.
Referenced by blender::io::hydra::EmittedWorld::emit(), emit_prim(), and blender::io::hydra::HydraSceneIndex::populate().
Definition at line 113 of file populate_context.hh.
Referenced by blender::io::hydra::emit_light_dupli(), and blender::io::hydra::emit_volume_dupli().
| Vector<pxr::VtIntArray> blender::io::hydra::PopulateContext::per_proto_indices |
Definition at line 110 of file populate_context.hh.
Referenced by add_instance(), blender::io::hydra::emit_curves_proto(), blender::io::hydra::emit_hair_proto(), blender::io::hydra::emit_mesh_proto(), and blender::io::hydra::HydraSceneIndex::populate().
| Map<const Object *, IndexRange> blender::io::hydra::PopulateContext::proto_range_by_source |
Definition at line 112 of file populate_context.hh.
Referenced by add_instance(), and blender::io::hydra::HydraSceneIndex::populate().
| pxr::SdfPath blender::io::hydra::PopulateContext::root_path |
Definition at line 81 of file populate_context.hh.
Referenced by hair_prim_id(), instancer_prim_id(), material_prim_id(), object_prim_id(), and PopulateContext().
| Scene* blender::io::hydra::PopulateContext::scene |
Definition at line 79 of file populate_context.hh.
Referenced by blender::io::hydra::emit_volume_object(), emitted_geometry_key(), and PopulateContext().
| Span<pxr::TfToken> blender::io::hydra::PopulateContext::shader_source_types |
Definition at line 84 of file populate_context.hh.
Referenced by blender::io::hydra::build_emitted_material(), and PopulateContext().
| pxr::HdRetainedSceneIndex::AddedPrimEntries blender::io::hydra::PopulateContext::to_add |
Definition at line 102 of file populate_context.hh.
Referenced by emit_prim(), and blender::io::hydra::HydraSceneIndex::populate().
| pxr::HdSceneIndexObserver::DirtiedPrimEntries blender::io::hydra::PopulateContext::to_dirty |
Definition at line 103 of file populate_context.hh.
Referenced by emit_prim(), and blender::io::hydra::HydraSceneIndex::populate().
| bool blender::io::hydra::PopulateContext::use_materialx |
Definition at line 82 of file populate_context.hh.
Referenced by blender::io::hydra::build_emitted_material(), and PopulateContext().
| Set<EmittedGeometryKey> blender::io::hydra::PopulateContext::used_emitted_geometry |
Definition at line 97 of file populate_context.hh.
Referenced by blender::io::hydra::get_or_build_emitted_curves(), blender::io::hydra::get_or_build_emitted_mesh(), and blender::io::hydra::HydraSceneIndex::populate().
Definition at line 93 of file populate_context.hh.
Referenced by get_or_create_material(), and blender::io::hydra::HydraSceneIndex::populate().
Definition at line 98 of file populate_context.hh.
Referenced by blender::io::hydra::get_or_build_emitted_curves(), blender::io::hydra::get_or_build_emitted_mesh(), and blender::io::hydra::HydraSceneIndex::populate().
| const View3D* blender::io::hydra::PopulateContext::view3d |
Definition at line 80 of file populate_context.hh.
Referenced by blender::io::hydra::emit_light_dupli(), blender::io::hydra::emit_light_object(), and PopulateContext().