Free Electron
DrawSelection.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_DrawSelection_h__
8 #define __viewer_DrawSelection_h__
9 
10 #include "window/WindowEvent.h"
11 #include "viewer/Mask.h"
12 
13 namespace fe
14 {
15 namespace ext
16 {
17 
18 /** Draw a box indicating the selected region
19 
20  @copydoc DrawSelection_info
21  */
22 class FE_DL_EXPORT DrawSelection:
23  public Initialize<DrawSelection>,
24  virtual public Mask,
25  virtual public HandlerI
26 {
27  public:
28  DrawSelection(void);
29 virtual ~DrawSelection(void);
30 
31  void initialize(void);
32 
33 virtual void handle( fe::Record &record);
34 
35  private:
36  void drawBox(sp<DrawI> spDraw,Real x1,Real y1,Real x2,Real y2);
37  void drawMarker(sp<DrawI> spDraw, Real x, Real y);
38 
39  AsSelection m_asSel;
40  AsWindata m_asWindata;
41  AsSignal m_asSignal;
42 
43  sp<DrawMode> m_spBoxMode;
44 };
45 
46 
47 } /* namespace ext */
48 } /* namespace fe */
49 
50 
51 #endif /* __viewer_DrawSelection_h__ */
window data
Definition: datatoolAS.h:38
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
Draw a box indicating the selected region.
Definition: DrawSelection.h:22
screen space selection
Definition: windowAS.h:36