HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DM_InputSelector.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: DM_InputSelector.h ( Direct Manipulation Library, C++)
7  *
8  * COMMENTS:
9  * The base class for objects that select the inputs of a sop or obj.
10  */
11 
12 #ifndef __DM_InputSelector_h__
13 #define __DM_InputSelector_h__
14 
15 #include "DM_API.h"
16 #include <GUI/GUI_RenderCommon.h>
17 #include <BM/BM_InputSelector.h>
18 #include <GEO/GEO_PrimTypeCompat.h>
19 #include <GU/GU_SelectType.h>
20 
22 {
23 public:
24  DM_InputSelector(BM_View &viewer,
25  PI_SelectorTemplate &templ);
26  virtual ~DM_InputSelector();
27 
28  virtual const char *className() const;
29 
30  // Gets a string representing the current selection.
31  virtual void generateAllSelectionStrings(UT_String &sel_string,
32  bool only_one_gdp,
33  bool force_numeric,
34  bool consume_selections);
35 
36  // Override this virtual to allow other classes to programatically force
37  // this selector to convert any current pre-seleciton in the viewport to
38  // a real selection on the geometry. Does nothing by default.
39  virtual void commitViewportPreSelection(UI_Event *event,
40  GU_SelectionRule sel_rule);
41 
42  // Override this virtual to let the selector expose a list of looks
43  // that the selector can pick from.
44  virtual void getSelectableLooks(GUI_DetailList &look_list);
45 
46  // Override this virtual to return the types of primitives that this
47  // selector is interested in.
48  virtual GEO_PrimTypeCompat::TypeMask primMask() const;
49 };
50 
51 #endif
virtual const char * className() const
struct _cl_event * event
Definition: glcorearb.h:2960
#define DM_API
Definition: DM_API.h:10
GU_SelectionRule
Definition: GU_SelectType.h:40
Contains transitional objects to provide some backward compatibility for code that references old GEO...