|
Blender V4.3
|
#include <usd_reader_geom.hh>
Inherits blender::io::usd::USDXformReader.
Inherited by blender::io::usd::USDCurvesReader, blender::io::usd::USDMeshReader, blender::io::usd::USDNurbsReader, blender::io::usd::USDPointsReader, and blender::io::usd::USDShapeReader.
Public Member Functions | |
| USDGeomReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings) | |
| virtual void | read_geometry (bke::GeometrySet &geometry_set, USDMeshReadParams params, const char **r_err_str)=0 |
| virtual bool | topology_changed (const Mesh *, double) |
| void | add_cache_modifier () |
| void | add_subdiv_modifier () |
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, double motionSampleTime) override |
| void | read_object_data (Main *bmain, double motionSampleTime) override |
| void | read_matrix (float r_mat[4][4], float 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 |
| virtual bool | valid () 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 () |
| const std::string & | name () const |
| const std::string & | 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 (float time) const |
Protected Member Functions inherited from blender::io::usd::USDPrimReader | |
| void | set_props (bool merge_with_parent=false, pxr::UsdTimeCode motionSampleTime=pxr::UsdTimeCode::Default()) |
Protected Attributes inherited from blender::io::usd::USDPrimReader | |
| std::string | name_ |
| std::string | prim_path_ |
| Object * | object_ |
| pxr::UsdPrim | prim_ |
| const USDImportParams & | import_params_ |
| USDPrimReader * | parent_reader_ |
| const ImportSettings * | settings_ |
| int | refcount_ |
| bool | is_in_instancer_proto_ |
Definition at line 17 of file usd_reader_geom.hh.
|
inline |
Definition at line 20 of file usd_reader_geom.hh.
| void blender::io::usd::USDGeomReader::add_cache_modifier | ( | ) |
Definition at line 18 of file usd_reader_geom.cc.
References BKE_modifier_new(), BKE_modifiers_persistent_uid_init(), BLI_addtail(), MeshSeqCacheModifierData::cache_file, eModifierType_MeshSequenceCache, blender::io::usd::ImportSettings::get_cache_file, CacheFile::id, id_us_plus(), blender::io::usd::USDPrimReader::import_params_, blender::io::usd::USDImportParams::mesh_read_flag, Object::modifiers, blender::io::usd::USDPrimReader::object_, MeshSeqCacheModifierData::object_path, blender::io::usd::USDPrimReader::prim_, MeshSeqCacheModifierData::read_flag, blender::io::usd::USDPrimReader::settings_, and STRNCPY.
Referenced by blender::io::usd::USDMeshReader::read_object_data(), blender::io::usd::USDNurbsReader::read_object_data(), blender::io::usd::USDPointsReader::read_object_data(), and blender::io::usd::USDShapeReader::read_object_data().
| void blender::io::usd::USDGeomReader::add_subdiv_modifier | ( | ) |
Definition at line 37 of file usd_reader_geom.cc.
References BKE_modifier_new(), BKE_modifiers_persistent_uid_init(), BLI_addtail(), eModifierType_Subsurf, Object::modifiers, and blender::io::usd::USDPrimReader::object_.
Referenced by blender::io::usd::USDMeshReader::read_object_data().
|
pure virtual |
|
inlinevirtual |
Reimplemented in blender::io::usd::USDMeshReader, and blender::io::usd::USDShapeReader.
Definition at line 31 of file usd_reader_geom.hh.
Referenced by blender::io::usd::USD_mesh_topology_changed().