OpendTect-6_4  6.4
uigvfreehandareaselectiontool.h
Go to the documentation of this file.
1 #ifndef uigvfreehandareaselectiontool_h
2 #define uigvfreehandareaselectiontool_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Ranojay
9  Date: Nov 2015
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "callback.h"
17 
26 class uiGraphicsView;
27 class uiPolygonItem;
28 template <class T> class ODPolygon;
29 
31 {
32 public:
33 
36 
37  void enable();
38  void disable();
39  bool isEnabled() const { return enabled_; }
40 
41  void setPolygonMode(bool);
42  bool isPolygonMode() const;
43 
44  const ODPolygon<int>& selection() const { return odpolygon_; }
45 
49 
50 protected:
51 
55 
56 
58  bool enabled_;
59 
60  void mousePressCB(CallBacker*);
61  void mouseReleaseCB(CallBacker*);
62  void mouseMoveCB(CallBacker*);
63 };
64 
65 
66 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
bool ispolygonmode_
Definition: uigvfreehandareaselectiontool.h:57
uiGraphicsView & gv_
Definition: uigvfreehandareaselectiontool.h:52
bool enabled_
Definition: uigvfreehandareaselectiontool.h:58
bool isEnabled() const
Definition: uigvfreehandareaselectiontool.h:39
Definition: uigraphicsitemimpl.h:192
(Closed) sequence of connected 2-D coordinates.
Definition: polygon.h:27
Notifier< uiGVFreehandAreaSelectionTool > pointAdded
Definition: uigvfreehandareaselectiontool.h:47
const ODPolygon< int > & selection() const
Definition: uigvfreehandareaselectiontool.h:44
Notifier< uiGVFreehandAreaSelectionTool > started
Definition: uigvfreehandareaselectiontool.h:46
uiPolygonItem * polygonselitem_
Definition: uigvfreehandareaselectiontool.h:53
Definition: uigvfreehandareaselectiontool.h:30
Definition: uigraphicsview.h:51
Notifier< uiGVFreehandAreaSelectionTool > stopped
Definition: uigvfreehandareaselectiontool.h:48
ODPolygon< int > & odpolygon_
Definition: uigvfreehandareaselectiontool.h:54

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