24 #ifndef PXR_IMAGING_HD_BASIS_CURVES_H
25 #define PXR_IMAGING_HD_BASIS_CURVES_H
28 #include "pxr/imaging/hd/api.h"
29 #include "pxr/imaging/hd/version.h"
30 #include "pxr/imaging/hd/rprim.h"
32 PXR_NAMESPACE_OPEN_SCOPE
34 #define HD_BASISCURVES_REPR_DESC_TOKENS \
40 HD_BASISCURVES_REPR_DESC_TOKENS);
48 HdBasisCurvesGeomStyle geomStyle = HdBasisCurvesGeomStyleInvalid,
50 : geomStyle(geomStyle),
54 bool IsEmpty()
const {
55 return geomStyle == HdBasisCurvesGeomStyleInvalid;
58 HdBasisCurvesGeomStyle geomStyle;
93 typedef _ReprDescConfigs<HdBasisCurvesReprDesc> _BasisCurvesReprConfig;
96 static _BasisCurvesReprConfig::DescArray
97 _GetReprDesc(
TfToken const &reprName);
101 HdBasisCurves() =
delete;
102 HdBasisCurves(
const HdBasisCurves &) =
delete;
103 HdBasisCurves &operator =(
const HdBasisCurves &) =
delete;
105 static _BasisCurvesReprConfig _reprDescConfig;
121 PXR_NAMESPACE_CLOSE_SCOPE
123 #endif // PXR_IMAGING_HD_BASIS_CURVES_H
virtual HD_API HdBasisCurvesTopology GetBasisCurvesTopology(SdfPath const &id)
Gets the topological curve data for a given prim.
Describes how the geometry of a prim should be displayed.
Token for efficient comparison, assignment, and hashing of known strings.
The render engine state for a given rprim from the scene graph.
Adapter class providing data exchange with the client scene graph.
Descriptor to configure a drawItem for a repr.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
std::vector< TfToken > TfTokenVector
Convenience types.
SdfPath const & GetId() const
Returns the identifier of this Rprim.
HdBasisCurvesTopology GetBasisCurvesTopology(HdSceneDelegate *delegate) const
Topology.
A path value used to locate objects in layers or scenegraphs.
Topology data for basisCurves.
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.
virtual HD_API HdDisplayStyle GetDisplayStyle(SdfPath const &id)
Returns the refinement level for the given prim in the range [0,8].
Hydra Schema for a collection of curves using a particular basis.
HD_API TfTokenVector const & GetBuiltinPrimvarNames() const override
Returns the names of built-in primvars, i.e.
TfToken shadingTerminal
Specifies how the fragment color should be computed from primvar; this can be used to render heatmap ...