OpendTect-6_4  6.4
uipolardiagram.h
Go to the documentation of this file.
1 #ifndef uipolardiagram_h
2 #define uipolardiagram_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Karthika
9  Date: Sep 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigraphicsview.h"
17 
18 class uiCircleItem;
19 class uiLineItem;
20 class uiMarkerItem;
21 class uiTextItem;
22 
31 public:
32 
34  ~uiPolarDiagram();
35 
36  // angles in user degrees
37  void setValues(float azimuth, float dip);
38  void getValues(float* azimuth, float* dip) const;
39 
41 
42 protected:
43 
44  void draw();
45  void drawCircles();
46  void drawSegments();
47  void drawPointer();
48  void updatePointer();
49  void mouseEventCB(CallBacker*);
50  void reSizedCB(CallBacker*);
51 
53  int radius_;
54  float azimuth_; // user degrees
55  float dip_; // degrees
56 
62 
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
Notifier< uiPolarDiagram > valueChanged
Definition: uipolardiagram.h:40
ObjectSet< uiTextItem > azimuthtextitms_
Definition: uipolardiagram.h:60
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
float azimuth_
Definition: uipolardiagram.h:54
uiMarkerItem * pointeritm_
Definition: uipolardiagram.h:59
Definition: uiparent.h:26
Definition: uigraphicsitemimpl.h:337
Displays a polar diagram which can be used to set the azimuth and the dip by gyrating the pointer...
Definition: uipolardiagram.h:29
float dip_
Definition: uipolardiagram.h:55
Definition: uigraphicsitemimpl.h:98
ObjectSet< uiLineItem > segmentitms_
Definition: uipolardiagram.h:58
Definition: uigraphicsview.h:51
uiPoint center_
Definition: uipolardiagram.h:52
Definition: uigraphicsitemimpl.h:273
Definition: uigraphicsitemimpl.h:110
int radius_
Definition: uipolardiagram.h:53
ObjectSet< uiCircleItem > circleitms_
Definition: uipolardiagram.h:57
ObjectSet< uiTextItem > diptextitms_
Definition: uipolardiagram.h:61

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