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

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