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();
119 static HdContainerDataSourceHandle
121 const HdIntArrayDataSourceHandle &faceVertexCounts,
122 const HdIntArrayDataSourceHandle &faceVertexIndices,
123 const HdIntArrayDataSourceHandle &holeIndices,
124 const HdTokenDataSourceHandle &orientation
138 const HdIntArrayDataSourceHandle &faceVertexCounts);
141 const HdIntArrayDataSourceHandle &faceVertexIndices);
144 const HdIntArrayDataSourceHandle &holeIndices);
147 const HdTokenDataSourceHandle &orientation);
151 HdContainerDataSourceHandle
Build();
154 HdIntArrayDataSourceHandle _faceVertexCounts;
155 HdIntArrayDataSourceHandle _faceVertexIndices;
156 HdIntArrayDataSourceHandle _holeIndices;
157 HdTokenDataSourceHandle _orientation;
168 static HdTokenDataSourceHandle BuildOrientationDataSource(
174PXR_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.
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.