Loading...
Searching...
No Matches
object.h File Reference
+ Include dependency graph for object.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UsdObject
 Base class for Usd scenegraph objects, providing common API. More...
 

Enumerations

enum  UsdObjType {
  UsdTypeObject , UsdTypePrim , UsdTypeProperty , UsdTypeAttribute ,
  UsdTypeRelationship , Usd_NumObjTypes
}
 Enum values to represent the various Usd object types. More...
 

Functions

 TF_DECLARE_WEAK_PTRS (UsdStage)
 
bool UsdIsSubtype (UsdObjType baseType, UsdObjType subType)
 Return true if subType is the same as or a subtype of baseType, false otherwise.
 
bool UsdIsConvertible (UsdObjType from, UsdObjType to)
 Return true if from is convertible to to, false otherwise.
 
bool UsdIsConcrete (UsdObjType type)
 Return true if type is a concrete object type, namely one of Prim, Attribute, or Relationship.
 

Enumeration Type Documentation

◆ UsdObjType

enum UsdObjType

Enum values to represent the various Usd object types.

Definition at line 51 of file object.h.

Function Documentation

◆ UsdIsConcrete()

bool UsdIsConcrete ( UsdObjType  type)
inline

Return true if type is a concrete object type, namely one of Prim, Attribute, or Relationship.

Definition at line 101 of file object.h.

◆ UsdIsConvertible()

bool UsdIsConvertible ( UsdObjType  from,
UsdObjType  to 
)
inline

Return true if from is convertible to to, false otherwise.

Equivalent to UsdIsSubtype(to, from).

Definition at line 94 of file object.h.

◆ UsdIsSubtype()

bool UsdIsSubtype ( UsdObjType  baseType,
UsdObjType  subType 
)
inline

Return true if subType is the same as or a subtype of baseType, false otherwise.

Definition at line 86 of file object.h.