This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
points.h
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HD_POINTS_H
8#define PXR_IMAGING_HD_POINTS_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/rprim.h"
14
15PXR_NAMESPACE_OPEN_SCOPE
16
22{
24 HdPointsGeomStyle geomStyle = HdPointsGeomStyleInvalid)
25 : geomStyle(geomStyle)
26 {}
27
28 bool IsEmpty() const {
29 return geomStyle == HdPointsGeomStyleInvalid;
30 }
31
32 HdPointsGeomStyle geomStyle;
33};
34
37class HdPoints: public HdRprim
38{
39public:
40 HD_API
41 ~HdPoints() override;
42
43 HD_API
44 TfTokenVector const & GetBuiltinPrimvarNames() const override;
45
47 HD_API
48 static void ConfigureRepr(TfToken const &reprName,
49 const HdPointsReprDesc &desc);
50
51protected:
54 HD_API
55 HdPoints(SdfPath const& id);
56
57 using _PointsReprConfig = _ReprDescConfigs<HdPointsReprDesc>;
58
59 HD_API
60 static _PointsReprConfig::DescArray _GetReprDesc(TfToken const &reprName);
61
62private:
63
64 // Class can not be default constructed or copied.
65 HdPoints() = delete;
66 HdPoints(const HdPoints &) = delete;
67 HdPoints &operator =(const HdPoints &) = delete;
68
69 static _PointsReprConfig _reprDescConfig;
70};
71
72
73PXR_NAMESPACE_CLOSE_SCOPE
74
75#endif // PXR_IMAGING_HD_POINTS_H
Hydra Schema for a point cloud.
Definition: points.h:38
HD_API HdPoints(SdfPath const &id)
Constructor.
HD_API TfTokenVector const & GetBuiltinPrimvarNames() const override
Returns the names of built-in primvars, i.e.
static HD_API void ConfigureRepr(TfToken const &reprName, const HdPointsReprDesc &desc)
Configure geometric style of drawItems for reprName.
The render engine state for a given rprim from the scene graph.
Definition: rprim.h:38
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Descriptor to configure a drawItem for a repr.
Definition: points.h:22
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440