Loading...
Searching...
No Matches
cone.h
1//
2// Copyright 2022 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_CONE_H
8#define EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_CONE_H
9
10#include "pxr/pxr.h"
11#if PXR_VERSION >= 2208
12
13#include "hdPrman/gprim.h"
14#include "pxr/imaging/hd/rprim.h"
15
16#include "Riley.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20class HdPrman_Cone final : public HdPrman_Gprim<HdRprim>
21{
22public:
23 using BASE = HdPrman_Gprim<HdRprim>;
24
25 HF_MALLOC_TAG_NEW("new HdPrman_Cone");
26
27 HdPrman_Cone(SdfPath const& id);
28
29 HdDirtyBits GetInitialDirtyBitsMask() const override;
30
31 TfTokenVector const &GetBuiltinPrimvarNames() const override;
32
33protected:
34 bool _ConvertGeometry(
35 HdPrman_RenderParam *renderParam,
36 HdSceneDelegate *sceneDelegate,
37 const SdfPath &id,
38 RtUString *primType,
39 RtPrimVarList *primvars,
40 std::vector<HdGeomSubset> *geomSubsets,
41 std::vector<RtPrimVarList> *geomSubsetPrimvars) override;
42};
43
44PXR_NAMESPACE_CLOSE_SCOPE
45
46#endif // PXR_VERSION >= 2208
47
48#endif // EXT_RMANPKG_PLUGIN_RENDERMAN_PLUGIN_HD_PRMAN_CONE_H
A mix-in template that adds shared gprim behavior to support various HdRprim types.
Definition: gprim.h:30
Adapter class providing data exchange with the client scene graph.
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440