7#ifndef PXR_IMAGING_HD_BASIS_CURVES_H
8#define PXR_IMAGING_HD_BASIS_CURVES_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/rprim.h"
15PXR_NAMESPACE_OPEN_SCOPE
17#define HD_BASISCURVES_REPR_DESC_TOKENS \
19 (surfaceShaderUnlit) \
24 HD_BASISCURVES_REPR_DESC_TOKENS);
33 HdBasisCurvesGeomStyle geomStyle = HdBasisCurvesGeomStyleInvalid,
35 : geomStyle(geomStyle),
39 bool IsEmpty()
const {
40 return geomStyle == HdBasisCurvesGeomStyleInvalid;
43 HdBasisCurvesGeomStyle geomStyle;
79 using _BasisCurvesReprConfig = _ReprDescConfigs<HdBasisCurvesReprDesc>;
82 static _BasisCurvesReprConfig::DescArray
83 _GetReprDesc(
TfToken const &reprName);
91 static _BasisCurvesReprConfig _reprDescConfig;
107PXR_NAMESPACE_CLOSE_SCOPE
Hydra Schema for a collection of curves using a particular basis.
static HD_API bool IsEnabledForceRefinedCurves()
Returns whether refinement is always on or not.
static HD_API void ConfigureRepr(TfToken const &reprName, HdBasisCurvesReprDesc desc)
Configure geometric style of drawItems for reprName.
HdBasisCurvesTopology GetBasisCurvesTopology(HdSceneDelegate *delegate) const
Topology.
HD_API TfTokenVector const & GetBuiltinPrimvarNames() const override
Returns the names of built-in primvars, i.e.
Topology data for basisCurves.
The render engine state for a given rprim from the scene graph.
SdfPath const & GetId() const
Returns the identifier of this Rprim.
Adapter class providing data exchange with the client scene graph.
virtual HD_API HdDisplayStyle GetDisplayStyle(SdfPath const &id)
Returns the display style for the given prim.
virtual HD_API HdBasisCurvesTopology GetBasisCurvesTopology(SdfPath const &id)
Gets the topological curve data for a given prim.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Descriptor to configure a drawItem for a repr.
TfToken shadingTerminal
Specifies how the fragment color should be computed from primvar; this can be used to render heatmap ...
Describes how the geometry of a prim should be displayed.
std::vector< TfToken > TfTokenVector
Convenience types.