Free Electron
WindowController.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __viewer__WindowController_h__
8 #define __viewer__WindowController_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /** Window controller
16 
17  @copydoc WindowController_info
18  */
19 class FE_DL_EXPORT WindowController :
20  virtual public HandlerI,
21  virtual public Mask,
22  public Initialize<WindowController>
23 {
24  public:
25  WindowController(void);
26 virtual ~WindowController(void);
27 
28  void initialize(void);
29 
30  // AS HandlerI
31 virtual void handleBind(sp<SignalerI> spSignalerI, sp<Layout> spLayout);
32 virtual void handle(Record &record);
33  private:
34  AsSignal m_asSignal;
35  AsOrtho m_asOrtho;
36  AsSelection m_asSel;
37 
38  bool m_init;
39 
40  WindowEvent::Mask m_orthoZoom;
41  WindowEvent::Mask m_orthoZoomUp;
42  WindowEvent::Mask m_orthoZoomDown;
43  WindowEvent::Mask m_orthoCenter;
44  WindowEvent::Mask m_orthoCenterUp;
45  WindowEvent::Mask m_orthoCenterDown;
46  WindowEvent::Mask m_orthoCenterLeft;
47  WindowEvent::Mask m_orthoCenterRight;
48  WindowEvent::Mask m_orthoRecenter;
49  WindowEvent::Mask m_quit;
50  WindowEvent::Mask m_pause;
51 };
52 
53 
54 } /* namespace ext */
55 } /* namespace fe */
56 
57 
58 #endif /* __viewer__WindowController_h__ */
59 
orthographic projection related
Definition: windowAS.h:257
possible attributes of a top level signal
Definition: datatoolAS.h:16
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Window controller.
Definition: WindowController.h:19
screen space selection
Definition: windowAS.h:36