18#ifndef PXR_IMAGING_HD_PRIM_ID_SCHEMA_H
19#define PXR_IMAGING_HD_PRIM_ID_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
35using HdPrimIdDataSourceHandle = HdPrimIdDataSource::Handle;
38#define HD_PRIM_ID_SCHEMA_TOKENS \
42 HD_PRIM_ID_SCHEMA_TOKENS);
69 const HdContainerDataSourceHandle &fromParentContainer);
80 HdPrimIdDataSourceHandle GetPrimId()
const;
110 static HdContainerDataSourceHandle
112 const HdPrimIdDataSourceHandle &primId
126 const HdPrimIdDataSourceHandle &primId);
130 HdContainerDataSourceHandle
Build();
133 HdPrimIdDataSourceHandle _primId;
140PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
Unique id assigned to all imageable prims.
static HD_API HdContainerDataSourceHandle BuildRetained(const HdPrimIdDataSourceHandle &primId)
static HD_API HdPrimIdSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "primId" from the parent conta...
static HD_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
static HD_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
Schema classes represent a structured view of the inherently unstructured container data source passe...
A datasource representing a concretely-typed sampled value.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.