Blender
V3.3
|
#include <usd_reader_xform.h>
Public Member Functions | |
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) |
bool | use_parent_xform () const |
void | set_use_parent_xform (bool flag) |
bool | prim_has_xform_ops () const |
![]() | |
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) |
int | refcount () const |
void | incref () |
void | decref () |
const std::string & | name () const |
const std::string & | prim_path () const |
Protected Member Functions | |
bool | is_root_xform_prim () const |
Additional Inherited Members | |
![]() | |
std::string | name_ |
std::string | prim_path_ |
Object * | object_ |
pxr::UsdPrim | prim_ |
const USDImportParams & | import_params_ |
USDPrimReader * | parent_reader_ |
const ImportSettings * | settings_ |
int | refcount_ |
Definition at line 11 of file usd_reader_xform.h.
|
inline |
Definition at line 20 of file usd_reader_xform.h.
|
overridevirtual |
Implements blender::io::usd::USDPrimReader.
Definition at line 30 of file usd_reader_xform.cc.
References BKE_object_add_only_object(), Object::data, Object::empty_drawsize, blender::io::usd::USDPrimReader::name_, OB_EMPTY, and blender::io::usd::USDPrimReader::object_.
|
protected |
Definition at line 128 of file usd_reader_xform.cc.
References blender::io::usd::USDPrimReader::prim_.
Referenced by set_use_parent_xform().
bool blender::io::usd::USDXformReader::prim_has_xform_ops | ( | ) | const |
Definition at line 114 of file usd_reader_xform.cc.
References blender::io::usd::USDPrimReader::prim_.
Referenced by blender::io::usd::merge_with_parent().
void blender::io::usd::USDXformReader::read_matrix | ( | float | r_mat[4][4], |
float | time, | ||
float | scale, | ||
bool * | r_is_constant | ||
) |
Definition at line 61 of file usd_reader_xform.cc.
References blender::io::usd::ImportSettings::conversion_mat, blender::io::usd::ImportSettings::do_convert_mat, mul_m4_m4m4(), blender::io::usd::USDPrimReader::prim_, scale_m4_fl(), blender::io::usd::USDPrimReader::settings_, time, and unit_m4().
Referenced by read_object_data(), and USD_get_transform().
|
overridevirtual |
Reimplemented from blender::io::usd::USDPrimReader.
Definition at line 37 of file usd_reader_xform.cc.
References BKE_constraint_add_for_object(), BKE_object_apply_mat4(), BLI_strncpy(), blender::io::usd::ImportSettings::cache_file, CONSTRAINT_TYPE_TRANSFORM_CACHE, data, bConstraint::data, FILE_MAX, id_us_plus(), blender::io::usd::USDPrimReader::import_params_, blender::io::usd::USDPrimReader::object_, blender::io::usd::USDPrimReader::prim_, blender::io::usd::USDPrimReader::prim_path(), blender::io::usd::USDPrimReader::prim_path_, read_matrix(), USDImportParams::scale, and blender::io::usd::USDPrimReader::settings_.
Referenced by blender::io::usd::USDCameraReader::read_object_data(), blender::io::usd::USDCurvesReader::read_object_data(), blender::io::usd::USDLightReader::read_object_data(), blender::io::usd::USDMeshReader::read_object_data(), blender::io::usd::USDNurbsReader::read_object_data(), and blender::io::usd::USDVolumeReader::read_object_data().
Definition at line 38 of file usd_reader_xform.h.
References is_root_xform_prim().
Referenced by blender::io::usd::merge_with_parent().
|
inline |
Definition at line 34 of file usd_reader_xform.h.
Referenced by blender::io::usd::merge_with_parent().