AL_USDMaya  0.16.6
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ProxyShapeUI.h
1 #pragma once
2 #include "AL/usdmaya/Common.h"
3 // warning: This file must be included before the maya api files.
4 // Maya #defines 'Bool' which causes a lot of problems with the 'Bool' typename in sdf
5 #include "maya/MPxSurfaceShapeUI.h"
6 
7 namespace AL {
8 namespace usdmaya {
9 namespace nodes {
10 
11 //----------------------------------------------------------------------------------------------------------------------
14 //----------------------------------------------------------------------------------------------------------------------
16  : public MPxSurfaceShapeUI
17 {
18  public:
19 
21  ProxyShapeUI();
22 
24  ~ProxyShapeUI();
25 
27  static void* creator();
28 
34  void getDrawRequests(const MDrawInfo& drawInfo, bool isObjectAndActiveOnly, MDrawRequestQueue& requests) override;
35 
38  void draw(const MDrawRequest& request, M3dView& view) const override;
39 
45  bool select(MSelectInfo& selectInfo, MSelectionList& selectionList, MPointArray& worldSpaceSelectPts) const override;
46 };
47 
48 //----------------------------------------------------------------------------------------------------------------------
49 } // nodes
50 } // usdmaya
51 } // AL
52 //----------------------------------------------------------------------------------------------------------------------
bool select(MSelectInfo &selectInfo, MSelectionList &selectionList, MPointArray &worldSpaceSelectPts) const override
used to select the proxy shape
static void * creator()
returns a new instance of this UI component
The UI component of the proxy shape node.
Definition: ProxyShapeUI.h:15
void getDrawRequests(const MDrawInfo &drawInfo, bool isObjectAndActiveOnly, MDrawRequestQueue &requests) override
legacy VP1 rendering interface
void draw(const MDrawRequest &request, M3dView &view) const override