28 #ifndef PXR_IMAGING_HD_MESH_SCHEMA_H 29 #define PXR_IMAGING_HD_MESH_SCHEMA_H 31 #include "pxr/imaging/hd/api.h" 33 #include "pxr/imaging/hd/meshTopologySchema.h" 34 #include "pxr/imaging/hd/subdivisionTagsSchema.h" 35 #include "pxr/imaging/hd/geomSubsetsSchema.h" 38 PXR_NAMESPACE_OPEN_SCOPE
42 #define HDMESH_SCHEMA_TOKENS \ 51 HDMESH_SCHEMA_TOKENS);
58 HdMeshSchema(HdContainerDataSourceHandle container)
64 HdMeshTopologySchema GetTopology();
66 HdTokenDataSourceHandle GetSubdivisionScheme();
68 HdSubdivisionTagsSchema GetSubdivisionTags();
70 HdGeomSubsetsSchema GetGeomSubsets();
72 HdBoolDataSourceHandle GetDoubleSided();
82 static HdContainerDataSourceHandle
84 const HdContainerDataSourceHandle &topology,
85 const HdTokenDataSourceHandle &subdivisionScheme,
86 const HdContainerDataSourceHandle &subdivisionTags,
87 const HdContainerDataSourceHandle &geomSubsets,
88 const HdBoolDataSourceHandle &doubleSided
102 const HdContainerDataSourceHandle &topology);
105 const HdTokenDataSourceHandle &subdivisionScheme);
108 const HdContainerDataSourceHandle &subdivisionTags);
111 const HdContainerDataSourceHandle &geomSubsets);
114 const HdBoolDataSourceHandle &doubleSided);
118 HdContainerDataSourceHandle
Build();
121 HdContainerDataSourceHandle _topology;
122 HdTokenDataSourceHandle _subdivisionScheme;
123 HdContainerDataSourceHandle _subdivisionTags;
124 HdContainerDataSourceHandle _geomSubsets;
125 HdBoolDataSourceHandle _doubleSided;
134 static HdMeshSchema GetFromParent(
135 const HdContainerDataSourceHandle &fromParentContainer);
180 PXR_NAMESPACE_CLOSE_SCOPE
Represents an object that can identify the location of a data source.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
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...