18#ifndef PXR_IMAGING_HD_CAPSULE_SCHEMA_H
19#define PXR_IMAGING_HD_CAPSULE_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
25#include "pxr/imaging/hd/schema.h"
30PXR_NAMESPACE_OPEN_SCOPE
35#define HD_CAPSULE_SCHEMA_TOKENS \
47 HD_CAPSULE_SCHEMA_TOKENS);
52class HdCapsuleSchema :
public HdSchema
58 HdCapsuleSchema(HdContainerDataSourceHandle container)
67 static HdCapsuleSchema GetFromParent(
68 const HdContainerDataSourceHandle &fromParentContainer);
79 HdDoubleDataSourceHandle GetHeight()
const;
82 HdDoubleDataSourceHandle GetRadius()
const;
85 HdDoubleDataSourceHandle GetRadiusTop()
const;
88 HdDoubleDataSourceHandle GetRadiusBottom()
const;
91 HdTokenDataSourceHandle GetAxis()
const;
101 static const TfToken &GetSchemaToken();
121 static HdContainerDataSourceHandle
123 const HdDoubleDataSourceHandle &height,
124 const HdDoubleDataSourceHandle &radius,
125 const HdDoubleDataSourceHandle &radiusTop,
126 const HdDoubleDataSourceHandle &radiusBottom,
127 const HdTokenDataSourceHandle &axis
141 const HdDoubleDataSourceHandle &height);
144 const HdDoubleDataSourceHandle &radius);
147 const HdDoubleDataSourceHandle &radiusTop);
150 const HdDoubleDataSourceHandle &radiusBottom);
153 const HdTokenDataSourceHandle &axis);
157 HdContainerDataSourceHandle
Build();
160 HdDoubleDataSourceHandle _height;
161 HdDoubleDataSourceHandle _radius;
162 HdDoubleDataSourceHandle _radiusTop;
163 HdDoubleDataSourceHandle _radiusBottom;
164 HdTokenDataSourceHandle _axis;
176 static HdTokenDataSourceHandle BuildAxisDataSource(
182PXR_NAMESPACE_CLOSE_SCOPE
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.
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.