Blender V5.3
blender::io::usd::USDXformReader Class Reference

#include <usd_reader_xform.hh>

Inherits blender::io::usd::USDPrimReader.

Inherited by blender::io::usd::USDCameraReader, blender::io::usd::USDGeomReader, blender::io::usd::USDInstanceReader, blender::io::usd::USDLightReader, blender::io::usd::USDSkeletonReader, and blender::io::usd::USDVolumeReader.

Public Member Functions

 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 (float4x4 &r_mat, 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
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 ()
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

Protected Member Functions

virtual 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())

Additional Inherited Members

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_

Detailed Description

Definition at line 28 of file usd_reader_xform.hh.

Constructor & Destructor Documentation

◆ USDXformReader()

Member Function Documentation

◆ create_object()

◆ get_local_usd_xform()

std::optional< XformResult > blender::io::usd::USDXformReader::get_local_usd_xform ( pxr::UsdTimeCode time) const
protectedvirtual

Return the USD prim's local transformation.

Parameters
timeTime code for evaluating the transform.
Returns
Optional tuple with the following elements:
  • The transform matrix.
  • A boolean flag indicating whether the matrix is constant over time.

Definition at line 152 of file usd_reader_xform.cc.

Referenced by read_matrix().

◆ is_root_xform_prim()

bool blender::io::usd::USDXformReader::is_root_xform_prim ( ) const
protectedvirtual

◆ object_prim_path()

pxr::SdfPath blender::io::usd::USDXformReader::object_prim_path ( ) const
overridevirtual

Reimplemented from blender::io::usd::USDPrimReader.

Definition at line 62 of file usd_reader_xform.cc.

◆ prim_has_xform_ops()

bool blender::io::usd::USDXformReader::prim_has_xform_ops ( ) const

Definition at line 99 of file usd_reader_xform.cc.

References blender::io::usd::USDPrimReader::prim_.

◆ read_matrix()

◆ read_object_data()

◆ set_use_parent_xform()

void blender::io::usd::USDXformReader::set_use_parent_xform ( bool flag)
inline

Definition at line 51 of file usd_reader_xform.hh.

◆ use_parent_xform()

bool blender::io::usd::USDXformReader::use_parent_xform ( ) const
inline

Definition at line 47 of file usd_reader_xform.hh.

Referenced by read_object_data().


The documentation for this class was generated from the following files: