HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GUI_GUSelectionProxy.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GUI_GUSelectionProxy.h ( GUI Library, C++)
7  *
8  * COMMENTS:
9  * A helper class for allowing a GUI_DetailLook to indirectly reference a
10  * GU_SelectionHandle. The indirection lets us change the GU_Selection
11  * assigned to a GUI_DetailLook without having to reference a different
12  * proxy. Finally, this class also tracks the GUI_DetailLook referring
13  * to this proxy.
14  */
15 
16 #ifndef GUI_GUSelectionProxy_h
17 #define GUI_GUSelectionProxy_h
18 
19 #include <GU/GU_SelectType.h>
21 #include "GUI_API.h"
22 
23 class GUI_DetailLook;
24 
26 {
27 public:
30 
32  { mySelection = selection; }
34  { return mySelection; }
35 
36  void setLook(GUI_DetailLook *look)
37  { myLook = look; }
39  { return myLook; }
40 private:
41  GU_SelectionHandle mySelection;
42  GUI_DetailLook *myLook;
43 };
44 
45 
46 #endif
void setSelection(GU_SelectionHandle selection)
GU_SelectionHandle getSelection() const
#define GUI_API
Definition: GUI_API.h:10
GUI_DetailLook * getLook() const
void setLook(GUI_DetailLook *look)