OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "callback.h"
16 
25 class uiGraphicsView;
26 class uiPolygonItem;
27 template <class T> class ODPolygon;
28 
30 {
31 public:
32 
35 
36  void enable();
37  void disable();
38  bool isEnabled() const { return enabled_; }
39 
40  void setPolygonMode(bool);
41  bool isPolygonMode() const;
42 
43  const ODPolygon<int>& selection() const { return odpolygon_; }
44 
48 
49 protected:
50 
54 
55 
57  bool enabled_;
58 
62 };
63 
64 
ODPolygon
(Closed) sequence of connected 2-D coordinates.
Definition: polygon.h:27
uiGVFreehandAreaSelectionTool::isPolygonMode
bool isPolygonMode() const
uiGVFreehandAreaSelectionTool
Definition: uigvfreehandareaselectiontool.h:30
uiGVFreehandAreaSelectionTool::uiGVFreehandAreaSelectionTool
uiGVFreehandAreaSelectionTool(uiGraphicsView &)
uiGVFreehandAreaSelectionTool::setPolygonMode
void setPolygonMode(bool)
uiGVFreehandAreaSelectionTool::pointAdded
Notifier< uiGVFreehandAreaSelectionTool > pointAdded
Definition: uigvfreehandareaselectiontool.h:46
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiGVFreehandAreaSelectionTool::ispolygonmode_
bool ispolygonmode_
Definition: uigvfreehandareaselectiontool.h:56
uiGraphicsView
Definition: uigraphicsview.h:51
uiGVFreehandAreaSelectionTool::gv_
uiGraphicsView & gv_
Definition: uigvfreehandareaselectiontool.h:51
uiGVFreehandAreaSelectionTool::selection
const ODPolygon< int > & selection() const
Definition: uigvfreehandareaselectiontool.h:43
uiGVFreehandAreaSelectionTool::started
Notifier< uiGVFreehandAreaSelectionTool > started
Definition: uigvfreehandareaselectiontool.h:45
uiGVFreehandAreaSelectionTool::enabled_
bool enabled_
Definition: uigvfreehandareaselectiontool.h:57
callback.h
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
uiGVFreehandAreaSelectionTool::mouseMoveCB
void mouseMoveCB(CallBacker *)
uiGVFreehandAreaSelectionTool::polygonselitem_
uiPolygonItem * polygonselitem_
Definition: uigvfreehandareaselectiontool.h:52
uiGVFreehandAreaSelectionTool::isEnabled
bool isEnabled() const
Definition: uigvfreehandareaselectiontool.h:38
uiGVFreehandAreaSelectionTool::disable
void disable()
uiGVFreehandAreaSelectionTool::mousePressCB
void mousePressCB(CallBacker *)
uiPolygonItem
Definition: uigraphicsitemimpl.h:192
Notifier< uiGVFreehandAreaSelectionTool >
uiGVFreehandAreaSelectionTool::~uiGVFreehandAreaSelectionTool
~uiGVFreehandAreaSelectionTool()
uiGVFreehandAreaSelectionTool::enable
void enable()
uiGVFreehandAreaSelectionTool::odpolygon_
ODPolygon< int > & odpolygon_
Definition: uigvfreehandareaselectiontool.h:53
uiGVFreehandAreaSelectionTool::mouseReleaseCB
void mouseReleaseCB(CallBacker *)
uiGVFreehandAreaSelectionTool::stopped
Notifier< uiGVFreehandAreaSelectionTool > stopped
Definition: uigvfreehandareaselectiontool.h:47

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