24#ifndef PXR_IMAGING_HD_DRAW_ITEM_H
25#define PXR_IMAGING_HD_DRAW_ITEM_H
28#include "pxr/imaging/hd/api.h"
29#include "pxr/imaging/hd/version.h"
30#include "pxr/imaging/hd/perfLog.h"
31#include "pxr/imaging/hd/drawingCoord.h"
32#include "pxr/imaging/hd/rprimSharedData.h"
34#include "pxr/imaging/hf/perfLog.h"
40PXR_NAMESPACE_OPEN_SCOPE
67 HF_MALLOC_TAG_NEW(
"new HdDrawItem");
70 HdDrawItem(HdRprimSharedData
const *sharedData);
75 SdfPath const &GetRprimID()
const {
return _sharedData->rprimID; }
77 GfBBox3d const & GetBounds()
const {
return _sharedData->bounds; }
80 return _sharedData->bounds.GetRange();
84 return _sharedData->bounds.GetMatrix();
88 return &_drawingCoord;
94 TfToken const& GetMaterialTag()
const {
98 void SetMaterialTag(
TfToken const &materialTag) {
99 _materialTag = materialTag;
105 return _drawingCoord;
120 HdRprimSharedData
const *_sharedData;
130PXR_NAMESPACE_CLOSE_SCOPE
Basic type: arbitrarily oriented 3D bounding box.
Stores a 4x4 matrix of double elements.
Basic type: 3-dimensional floating point range.
A draw item is a light-weight representation of an HdRprim's resources and material to be used for re...
bool GetVisible() const
Returns the authored visibility, expressed by the delegate.
HdRprimSharedData const * _GetSharedData() const
Returns the shared data.
HdDrawingCoord const & _GetDrawingCoord() const
Returns the drawingCoord.
A tiny set of integers, which provides an indirection mapping from the conceptual space of an HdRprim...
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.