Unique id assigned to all imageable prims.
More...
#include <primIdSchema.h>
|
| class | Builder |
| | Utility class for setting sparse sets of child data source fields to be filled as arguments into BuildRetained. More...
|
| |
|
|
|
HD_API HdPrimIdDataSourceHandle | GetPrimId () const |
| |
| | HdSchema (HdContainerDataSourceHandle container) |
| |
| HD_API HdContainerDataSourceHandle | GetContainer () const |
| | Returns the container data source that this schema is interpreting.
|
| |
|
HD_API bool | IsDefined () const |
| |
| | operator bool () const |
| | Returns true if this schema is applied on top of a non-null container.
|
| |
|
| | HdPrimIdSchema (HdContainerDataSourceHandle container) |
| |
| static HD_API HdPrimIdSchema | GetFromParent (const HdContainerDataSourceHandle &fromParentContainer) |
| | Retrieves a container data source with the schema's default name token "primId" from the parent container and constructs a HdPrimIdSchema instance.
|
| |
Unique id assigned to all imageable prims.
Inverse map is in SceneGlobals. For example, these can be assigned by the HdsiPrimIdSceneIndex and used for an Id buffer for picking.
Definition at line 53 of file primIdSchema.h.
◆ HdPrimIdSchema()
◆ BuildRetained()
| static HD_API HdContainerDataSourceHandle BuildRetained |
( |
const HdPrimIdDataSourceHandle & | primId | ) |
|
|
static |
- Deprecated
- Use Builder instead.
Builds a container data source which includes the provided child data sources. Parameters with nullptr values are excluded. This is a low-level interface. For cases in which it's desired to define the container with a sparse set of child fields, the Builder class is often more convenient and readable.
◆ GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container representing this schema is found by default.
◆ GetFromParent()
| static HD_API HdPrimIdSchema GetFromParent |
( |
const HdContainerDataSourceHandle & | fromParentContainer | ) |
|
|
static |
Retrieves a container data source with the schema's default name token "primId" from the parent container and constructs a HdPrimIdSchema instance.
Because the requested container data source may not exist, the result should be checked with IsDefined() or a bool comparison before use.
◆ GetSchemaToken()
| static HD_API const TfToken & GetSchemaToken |
( |
| ) |
|
|
static |
Returns a token where the container representing this schema is found in a container by default.
The documentation for this class was generated from the following file: