HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP3D_GenericSelector.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: OP3D_GenericSelector.h
7  *
8  * COMMENTS:
9  * This selector is designed to work with any op type. The desired
10  * selection type, parameter fields, and other information that varies
11  * from op to op is passed in the template.
12  */
13 
14 #ifndef __OP3D_GenericSelector_h__
15 #define __OP3D_GenericSelector_h__
16 
17 #include "OP3D_API.h"
18 #include <GU/GU_SelectType.h>
19 #include <PI/PI_ClassManager.h>
20 #include "OP3D_InputSelector.h"
21 
31 
33 {
34 public:
35  OP3D_GenericSelector(OP3D_View &view,
36  PI_SelectorTemplate &templ);
37  virtual ~OP3D_GenericSelector();
38 
39  static BM_InputSelector *ourConstructor(BM_View &viewer,
40  PI_SelectorTemplate &templ);
41 
42  virtual const char *className() const override;
43 
44 protected:
45  virtual void updateGroupMenuValue(PI_GeometryType geo_type,
46  int &group_menu_type) override;
47  PI_GeometryType groupMenuValueToGeometryType(
48  int group_menu_type) const;
49 
50 private:
52 
53  // Return the list of valid selection types for this selector.
54  const PI_SelectionEntry *selectionTypes() const
55  { return (PI_SelectionEntry *)getTemplate().data(); }
56 };
57 
58 #endif
PI_SelectorTemplate & getTemplate()
virtual void updateGroupMenuValue(PI_GeometryType geo_type, int &group_menu_type)=0
OP3D_API PI_SelectionEntry OP3DthePrimPointSelTypes[]
OP3D_API PI_SelectionEntry OP3DthePrimSelOnly[]
PI_GeometryType
OP3D_API PI_SelectionEntry OP3DthePrimSelTypes[]
OP3D_API PI_SelectionEntry OP3DtheEdgeSelTypes[]
OP3D_API PI_SelectionEntry OP3DthePrimEdgeSelTypes[]
OP3D_API PI_SelectionEntry OP3DtheUVSelTypes[]
OP3D_API PI_SelectionEntry OP3DtheBreakpointSelTypes[]
#define OP3D_API
Definition: OP3D_API.h:10
virtual const char * className() const override
OP3D_API PI_SelectionEntry OP3DthePointSelTypes[]
OP3D_API PI_SelectionEntry OP3DtheAllSelTypes[]
#define SELECTOR_SETUP_TABLE()