![]() |
|
Scene object abstraction for scene adapter implementations. More...
#include <object.h>
Inheritance diagram for EsfObjectInterface:Public Member Functions | |
| ESF_API bool | IsValid (EsfJournal *journal) const |
| ESF_API SdfPath | GetPath (EsfJournal *journal) const |
| ESF_API TfToken | GetName (EsfJournal *journal) const |
| ESF_API EsfPrim | GetPrim (EsfJournal *journal) const |
| EsfStage | GetStage () const |
| ESF_API EsfSchemaConfigKey | GetSchemaConfigKey (EsfJournal *journal) const |
| Returns an opaque value that is guaranteed to be unique and stable. | |
| virtual bool | IsPrim () const =0 |
| virtual bool | IsAttribute () const =0 |
| virtual bool | IsRelationship () const =0 |
| virtual EsfObject | AsObject () const =0 |
| virtual EsfAttribute | AsAttribute () const =0 |
| virtual EsfRelationship | AsRelationship () const =0 |
| virtual EsfPrim | AsPrim () const =0 |
Metadata | |
| ESF_API VtValue | GetMetadata (const TfToken &key) const |
Returns the value of the metadata field indicated by key. | |
| ESF_API bool | IsValidMetadataKey (const TfToken &key) const |
Returns true if the field indicated by key is a valid metadata field for this object. | |
| ESF_API TfType | GetMetadataValueType (const TfToken &key) const |
Returns the value type for the indicated key. | |
Protected Member Functions | |
| EsfObjectInterface (const SdfPath &path) | |
| This constructor may only be called by the scene adapter implementation. | |
| const SdfPath & | _GetPath () const |
| Gets the path to this object used for journaling. | |
| virtual EsfStage | _GetStage () const =0 |
Static Protected Member Functions | |
| static EsfSchemaConfigKey | CreateSchemaConfigKey (const void *const id) |
Scene object abstraction for scene adapter implementations.
The scene object abstraction closely resembles the read-only interface of UsdObject.
The public methods of this class are called by the exec network compiler. Each method takes an argument of type EsfJournal* which captures the conditions for recompilation.
This class and all classes derived from it are compatible with EsfFixedSizePolymorphicHolder.
|
inlineprotected |
|
inlineprotected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inlinestaticprotected |
Returns the value of the metadata field indicated by key.
Emits an error if key is not a valid metadata key.
Returns the value type for the indicated key.
Emits an error if key is not a valid metadata key.
| ESF_API TfToken GetName | ( | EsfJournal * | journal | ) | const |
| ESF_API SdfPath GetPath | ( | EsfJournal * | journal | ) | const |
| ESF_API EsfPrim GetPrim | ( | EsfJournal * | journal | ) | const |
| ESF_API EsfSchemaConfigKey GetSchemaConfigKey | ( | EsfJournal * | journal | ) | const |
Returns an opaque value that is guaranteed to be unique and stable.
Any prims that have the same typed schema and the same list of applied schemas will have the same schema config key.
|
inline |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| ESF_API bool IsValid | ( | EsfJournal * | journal | ) | const |
| ESF_API bool IsValidMetadataKey | ( | const TfToken & | key | ) | const |
Returns true if the field indicated by key is a valid metadata field for this object.