AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ProxyShapeUI.h
1 //
2 // Copyright 2017 Animal Logic
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.//
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #pragma once
17 
18 #include "../Api.h"
19 
20 #include "maya/MPxSurfaceShapeUI.h"
21 #include "AL/usd/utils/ForwardDeclares.h"
22 
23 namespace AL {
24 namespace usdmaya {
25 namespace nodes {
26 
27 //----------------------------------------------------------------------------------------------------------------------
30 //----------------------------------------------------------------------------------------------------------------------
32  : public MPxSurfaceShapeUI
33 {
34  public:
35 
37  ProxyShapeUI();
38 
40  ~ProxyShapeUI();
41 
43  AL_USDMAYA_PUBLIC
44  static void* creator();
45 
51  void getDrawRequests(const MDrawInfo& drawInfo, bool isObjectAndActiveOnly, MDrawRequestQueue& requests) override;
52 
55  void draw(const MDrawRequest& request, M3dView& view) const override;
56 
62  bool select(MSelectInfo& selectInfo, MSelectionList& selectionList, MPointArray& worldSpaceSelectPts) const override;
63 };
64 
65 //----------------------------------------------------------------------------------------------------------------------
66 } // nodes
67 } // usdmaya
68 } // AL
69 //----------------------------------------------------------------------------------------------------------------------
bool select(MSelectInfo &selectInfo, MSelectionList &selectionList, MPointArray &worldSpaceSelectPts) const override
used to select the proxy shape
The UI component of the proxy shape node.
Definition: ProxyShapeUI.h:31
void getDrawRequests(const MDrawInfo &drawInfo, bool isObjectAndActiveOnly, MDrawRequestQueue &requests) override
legacy VP1 rendering interface
static AL_USDMAYA_PUBLIC void * creator()
returns a new instance of this UI component
void draw(const MDrawRequest &request, M3dView &view) const override