24 #ifndef PXRUSDMAYAGL_USD_PROXY_SHAPE_ADAPTER_H
25 #define PXRUSDMAYAGL_USD_PROXY_SHAPE_ADAPTER_H
31 #include "pxrUsdMayaGL/api.h"
34 #include "pxr/base/gf/matrix4d.h"
35 #include "pxr/imaging/hd/renderIndex.h"
36 #include "pxr/usd/sdf/path.h"
37 #include "pxr/usd/usd/prim.h"
38 #include "pxr/usdImaging/usdImaging/delegate.h"
40 #include <maya/M3dView.h>
41 #include <maya/MHWGeometryUtilities.h>
42 #include <maya/MPxSurfaceShape.h>
47 PXR_NAMESPACE_OPEN_SCOPE
50 class UsdMayaProxyDrawOverride;
51 class UsdMayaProxyShapeUI;
86 void SetRootXform(
const GfMatrix4d& transform)
override;
89 const SdfPath& GetDelegateID()
const override;
103 const MDagPath& shapeDagPath,
104 const unsigned int displayStyle,
105 const MHWRender::DisplayStatus displayStatus)
override;
115 ~PxrMayaHdUsdProxyShapeAdapter()
override;
132 SdfPathVector _excludedPrimPaths;
134 std::shared_ptr<UsdImagingDelegate> _delegate;
141 friend class UsdMayaProxyShapeUI;
145 PXR_NAMESPACE_CLOSE_SCOPE
The Hydra render index is a flattened representation of the client scene graph, which may be composed...
PXRUSDMAYAGL_API bool _Sync(const MDagPath &shapeDagPath, const unsigned int displayStyle, const MHWRender::DisplayStatus displayStatus) override
Update the shape adapter's state from the shape with the given shapeDagPath and display state...
Abstract base class for objects that manage translation of Maya shape node data and viewport state fo...
Stores a 4x4 matrix of double elements.
PXRUSDMAYAGL_API bool UpdateVisibility(const M3dView *view=nullptr) override
Update the shape adapter's visibility state from the display status of its shape. ...
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
PXRUSDMAYAGL_API bool IsVisible() const override
Gets whether the shape adapter's shape is visible.
A path value used to locate objects in layers or scenegraphs.
Class to manage translation of USD proxy shape node data and viewport state for imaging with Hydra...
PXRUSDMAYAGL_API PxrMayaHdUsdProxyShapeAdapter()
Construct a new uninitialized PxrMayaHdUsdProxyShapeAdapter.
friend class UsdMayaProxyDrawOverride
The classes that maintain ownership of and are responsible for updating the shape adapter for their s...