|
Blender V5.0
|
#include <usd_reader_instance.hh>
Inherits blender::io::usd::USDXformReader.
Public Member Functions | |
| USDInstanceReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| bool | valid () const override |
| void | create_object (Main *bmain) override |
| void | set_instance_collection (Collection *coll) |
| pxr::SdfPath | proto_path () const |
| Public Member Functions inherited from blender::io::usd::USDXformReader | |
| USDXformReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| void | create_object (Main *bmain) override |
| void | read_object_data (Main *bmain, pxr::UsdTimeCode time) override |
| pxr::SdfPath | object_prim_path () const override |
| void | read_matrix (float r_mat[4][4], pxr::UsdTimeCode time, float scale, bool *r_is_constant) const |
| bool | use_parent_xform () const |
| void | set_use_parent_xform (bool flag) |
| bool | prim_has_xform_ops () const |
| Public Member Functions inherited from blender::io::usd::USDPrimReader | |
| USDPrimReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| virtual | ~USDPrimReader () |
| const pxr::UsdPrim & | prim () const |
| Object * | object () const |
| void | object (Object *ob) |
| USDPrimReader * | parent () const |
| void | parent (USDPrimReader *parent) |
| ReportList * | reports () const |
| int | refcount () const |
| void | incref () |
| void | decref () |
| StringRefNull | name () const |
| pxr::SdfPath | prim_path () const |
| virtual pxr::SdfPath | data_prim_path () const |
| void | set_is_in_instancer_proto (bool flag) |
| bool | is_in_instancer_proto () const |
| bool | is_in_proto () const |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::io::usd::USDXformReader | |
| bool | is_root_xform_prim () const |
| virtual std::optional< XformResult > | get_local_usd_xform (pxr::UsdTimeCode time) const |
| Protected Member Functions inherited from blender::io::usd::USDPrimReader | |
| void | set_props (bool merge_with_parent=false, pxr::UsdTimeCode time=pxr::UsdTimeCode::Default()) |
| Protected Attributes inherited from blender::io::usd::USDPrimReader | |
| StringRefNull | name_ |
| Object * | object_ |
| pxr::UsdPrim | prim_ |
| USDPrimReader * | parent_reader_ |
| const USDImportParams & | import_params_ |
| const ImportSettings * | settings_ |
| int | refcount_ |
| bool | is_in_instancer_proto_ |
Convert a USD instanced prim to a blender collection instance.
Definition at line 16 of file usd_reader_instance.hh.
|
inline |
Definition at line 19 of file usd_reader_instance.hh.
References blender::io::usd::USDPrimReader::prim(), and blender::io::usd::USDXformReader::USDXformReader().
|
overridevirtual |
Create an object that instances a collection.
Implements blender::io::usd::USDPrimReader.
Definition at line 15 of file usd_reader_instance.cc.
References BKE_object_add_only_object(), blender::io::usd::USDPrimReader::name_, OB_DUPLICOLLECTION, OB_EMPTY, and blender::io::usd::USDPrimReader::object_.
| pxr::SdfPath blender::io::usd::USDInstanceReader::proto_path | ( | ) | const |
Get the path of the USD prototype prim.
Definition at line 35 of file usd_reader_instance.cc.
References blender::io::usd::USDPrimReader::prim_.
Referenced by blender::io::usd::set_instance_collection().
| void blender::io::usd::USDInstanceReader::set_instance_collection | ( | Collection * | coll | ) |
Assign the given collection to the object.
Definition at line 23 of file usd_reader_instance.cc.
References Collection::id, id_us_min(), id_us_plus(), and blender::io::usd::USDPrimReader::object_.
Referenced by blender::io::usd::set_instance_collection().
|
inlineoverridevirtual |
Reimplemented from blender::io::usd::USDPrimReader.
Definition at line 26 of file usd_reader_instance.hh.
References blender::io::usd::USDPrimReader::prim_.