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  ~OP3D_GenericSelector() override;
38 
39  static BM_InputSelector *ourConstructor(BM_View &viewer,
40  PI_SelectorTemplate &templ);
41 
42  const char *className() const override;
43 
44 protected:
46  PI_GeometryType geo_type,
47  int &group_menu_type) override;
48  PI_GeometryType groupMenuValueToGeometryType(
49  int group_menu_type) const;
50 
51 private:
53 
54  // Return the list of valid selection types for this selector.
55  const PI_SelectionEntry *selectionTypes() const
56  { return (PI_SelectionEntry *)getTemplate().data(); }
57 };
58 
59 #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[]
const char * className() const override
#define OP3D_API
Definition: OP3D_API.h:10
Definition: core.h:982
OP3D_API PI_SelectionEntry OP3DthePointSelTypes[]
OP3D_API PI_SelectionEntry OP3DtheAllSelTypes[]
#define SELECTOR_SETUP_TABLE()