18#ifndef PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H
19#define PXR_IMAGING_HD_MESH_TOPOLOGY_SCHEMA_H
23#include "pxr/imaging/hd/api.h"
26#include "pxr/imaging/hd/schema.h"
31PXR_NAMESPACE_OPEN_SCOPE
36#define HD_MESH_TOPOLOGY_SCHEMA_TOKENS \
46 HD_MESH_TOPOLOGY_SCHEMA_TOKENS);
53class HdMeshTopologySchema :
public HdSchema
59 HdMeshTopologySchema(HdContainerDataSourceHandle container)
68 static HdMeshTopologySchema GetFromParent(
69 const HdContainerDataSourceHandle &fromParentContainer);
80 HdIntArrayDataSourceHandle GetFaceVertexCounts()
const;
83 HdIntArrayDataSourceHandle GetFaceVertexIndices()
const;
86 HdIntArrayDataSourceHandle GetHoleIndices()
const;
89 HdTokenDataSourceHandle GetOrientation()
const;
99 static const TfToken &GetSchemaToken();
145 static HdContainerDataSourceHandle
147 const HdIntArrayDataSourceHandle &faceVertexCounts,
148 const HdIntArrayDataSourceHandle &faceVertexIndices,
149 const HdIntArrayDataSourceHandle &holeIndices,
150 const HdTokenDataSourceHandle &orientation
163 Builder &SetFaceVertexCounts(
164 const HdIntArrayDataSourceHandle &faceVertexCounts);
166 Builder &SetFaceVertexIndices(
167 const HdIntArrayDataSourceHandle &faceVertexIndices);
169 Builder &SetHoleIndices(
170 const HdIntArrayDataSourceHandle &holeIndices);
172 Builder &SetOrientation(
173 const HdTokenDataSourceHandle &orientation);
177 HdContainerDataSourceHandle
Build();
180 HdIntArrayDataSourceHandle _faceVertexCounts;
181 HdIntArrayDataSourceHandle _faceVertexIndices;
182 HdIntArrayDataSourceHandle _holeIndices;
183 HdTokenDataSourceHandle _orientation;
194 static HdTokenDataSourceHandle BuildOrientationDataSource(
200PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
HD_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
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.