AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup Struct Reference

An internal structure used to store a mapping between an SdfPath, the type of prim found at that location, the maya transform that may have been created (assuming the translator plugin specifies that it needs a parent transform), and any nodes that the translator plugin may have created. More...

#include <TranslatorContext.h>

Public Member Functions

 PrimLookup (const SdfPath &path, const TfToken &type, MObject mayaObj)
 ctor More...
 
 ~PrimLookup ()
 dtor
 
const SdfPath & path () const
 get the prim path of this reference More...
 
MObjectHandle objectHandle () const
 get the maya object of the node More...
 
MObject object () const
 get the maya object of the node More...
 
TfToken type () const
 get the prim type More...
 
MObjectHandleArray & createdNodes ()
 get created maya nodes More...
 
const MObjectHandleArray & createdNodes () const
 get created maya nodes More...
 

Detailed Description

An internal structure used to store a mapping between an SdfPath, the type of prim found at that location, the maya transform that may have been created (assuming the translator plugin specifies that it needs a parent transform), and any nodes that the translator plugin may have created.

Constructor & Destructor Documentation

AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::PrimLookup ( const SdfPath &  path,
const TfToken &  type,
MObject  mayaObj 
)
inline

ctor

Parameters
paththe prim path of the items we will be tracking
typethe USD typename of the prim at the specified path. Used to help us determine which translator plugin to call to tear down this prim.
mayaObjthe maya transform

Member Function Documentation

MObjectHandleArray& AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::createdNodes ( )
inline

get created maya nodes

Returns
the created maya nodes for this prim translator
const MObjectHandleArray& AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::createdNodes ( ) const
inline

get created maya nodes

Returns
the created maya nodes for this prim translator
MObject AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::object ( ) const
inline

get the maya object of the node

Returns
the maya node for this reference
MObjectHandle AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::objectHandle ( ) const
inline

get the maya object of the node

Returns
the maya node for this reference
const SdfPath& AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::path ( ) const
inline

get the prim path of this reference

Returns
the prim path for this reference
TfToken AL::usdmaya::fileio::translators::TranslatorContext::PrimLookup::type ( ) const
inline

get the prim type

Returns
the type stored for this prim

The documentation for this struct was generated from the following file: