OpendTect-6_4  6.4
keybindings.h
Go to the documentation of this file.
1 #ifndef keybindings_h
2 #define keybindings_h
3 
4 /*+
5  ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: Dec 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 */
14 
15 #include "uiosgmod.h"
16 #include "bufstringset.h"
17 
18 #include <osgGeo/TrackballManipulator>
19 
20 
29 {
30 public:
31  KeyBindings(const char* nm=0)
32  : name_(nm) {};
33 
35 
39 
40 
41  static FixedString sName();
42  static FixedString sRotate();
43  static FixedString sPan();
44  static FixedString sZoom();
45 
46  static FixedString sControl();
47  static FixedString sShift();
48  static FixedString sRight();
49  static FixedString sLeft();
50  static FixedString sMiddle();
51  static FixedString sNone();
52 
53  static FixedString sSettingsKey();
54 };
55 
56 
62 {
63 public:
65 
68 };
69 
70 
76 {
77 public:
78  KeyBindMan();
79  ~KeyBindMan();
80 
81  void setTrackballManipulator(
82  osgGeo::TrackballManipulator*);
83 
84  void setKeyBindings(const char*);
85  void getAllKeyBindings(BufferStringSet&);
86  const char* getCurrentKeyBindings() const
87  { return curkeybinding_; }
88 
89 protected:
90 
91  void updateTrackballKeyBindings();
92 
95 
99 
100  osg::ref_ptr<osgGeo::TrackballManipulator> manipulator_;
101 };
102 
103 #endif
#define mExpClass(module)
Definition: commondefs.h:160
BufferString mousebut_
Definition: keybindings.h:66
KeyBindings(const char *nm=0)
Definition: keybindings.h:31
OD::String that holds an existing text string.
Definition: fixedstring.h:29
BufferString curkeybinding_
Definition: keybindings.h:94
BufferString keybut_
Definition: keybindings.h:67
Class for setting keybindings.
Definition: keybindings.h:28
Set of BufferString objects.
Definition: bufstringset.h:28
Event button.
Definition: keybindings.h:61
ObjectSet< KeyBindings > keyset_
Definition: keybindings.h:93
const char * getCurrentKeyBindings() const
Definition: keybindings.h:86
EventButton()
Definition: keybindings.h:64
EventButton rotate_
Definition: keybindings.h:98
BufferString rotate_
Definition: keybindings.h:37
osg::ref_ptr< osgGeo::TrackballManipulator > manipulator_
Definition: keybindings.h:100
EventButton pan_
Definition: keybindings.h:97
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferString name_
Definition: keybindings.h:32
Manages keybindings.
Definition: keybindings.h:75
BufferString pan_
Definition: keybindings.h:38
EventButton zoom_
Definition: keybindings.h:96
BufferString zoom_
Definition: keybindings.h:36

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019