Blender  V3.3
Public Member Functions | Protected Member Functions | List of all members
blender::io::usd::USDXformReader Class Reference

#include <usd_reader_xform.h>

Inheritance diagram for blender::io::usd::USDXformReader:
blender::io::usd::USDPrimReader blender::io::usd::USDCameraReader blender::io::usd::USDGeomReader blender::io::usd::USDLightReader blender::io::usd::USDVolumeReader blender::io::usd::USDCurvesReader blender::io::usd::USDMeshReader blender::io::usd::USDNurbsReader

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
 
- 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
 
Objectobject () const
 
void object (Object *ob)
 
USDPrimReaderparent () 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

- Protected Attributes inherited from blender::io::usd::USDPrimReader
std::string name_
 
std::string prim_path_
 
Objectobject_
 
pxr::UsdPrim prim_
 
const USDImportParamsimport_params_
 
USDPrimReaderparent_reader_
 
const ImportSettingssettings_
 
int refcount_
 

Detailed Description

Definition at line 11 of file usd_reader_xform.h.

Constructor & Destructor Documentation

◆ USDXformReader()

blender::io::usd::USDXformReader::USDXformReader ( const pxr::UsdPrim &  prim,
const USDImportParams import_params,
const ImportSettings settings 
)
inline

Definition at line 20 of file usd_reader_xform.h.

Member Function Documentation

◆ create_object()

void blender::io::usd::USDXformReader::create_object ( Main bmain,
double  motionSampleTime 
)
overridevirtual

◆ is_root_xform_prim()

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

Definition at line 128 of file usd_reader_xform.cc.

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

Referenced by set_use_parent_xform().

◆ prim_has_xform_ops()

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

◆ read_matrix()

void blender::io::usd::USDXformReader::read_matrix ( float  r_mat[4][4],
float  time,
float  scale,
bool r_is_constant 
)

◆ read_object_data()

void blender::io::usd::USDXformReader::read_object_data ( Main bmain,
double  motionSampleTime 
)
overridevirtual

◆ set_use_parent_xform()

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

Definition at line 38 of file usd_reader_xform.h.

References is_root_xform_prim().

Referenced by blender::io::usd::merge_with_parent().

◆ use_parent_xform()

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

Definition at line 34 of file usd_reader_xform.h.

Referenced by blender::io::usd::merge_with_parent().


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