OpendTect  6.3
uipolardiagram.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: Karthika
8  Date: Sep 2009
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uitoolsmod.h"
14 #include "uigraphicsview.h"
15 
16 class uiCircleItem;
17 class uiLineItem;
18 class uiMarkerItem;
19 class uiTextItem;
20 
29 public:
30 
32  ~uiPolarDiagram();
33 
34  // angles in user degrees
35  void setValues(float azimuth, float dip);
36  void getValues(float* azimuth, float* dip) const;
37 
39 
40 protected:
41 
42  void draw();
43  void drawCircles();
44  void drawSegments();
45  void drawPointer();
46  void updatePointer();
47  void mouseEventCB(CallBacker*);
48  void reSizedCB(CallBacker*);
49 
51  int radius_;
52  float azimuth_; // user degrees
53  float dip_; // degrees
54 
60 
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
Notifier< uiPolarDiagram > valueChanged
Definition: uipolardiagram.h:38
ObjectSet< uiTextItem > azimuthtextitms_
Definition: uipolardiagram.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
float azimuth_
Definition: uipolardiagram.h:52
uiMarkerItem * pointeritm_
Definition: uipolardiagram.h:57
Definition: uiparent.h:24
Definition: uigraphicsitemimpl.h:344
Displays a polar diagram which can be used to set the azimuth and the dip by gyrating the pointer...
Definition: uipolardiagram.h:27
float dip_
Definition: uipolardiagram.h:53
Definition: uigraphicsitemimpl.h:97
ObjectSet< uiLineItem > segmentitms_
Definition: uipolardiagram.h:56
Definition: uigraphicsview.h:49
uiPoint center_
Definition: uipolardiagram.h:50
Definition: uigraphicsitemimpl.h:277
Definition: uigraphicsitemimpl.h:109
int radius_
Definition: uipolardiagram.h:51
ObjectSet< uiCircleItem > circleitms_
Definition: uipolardiagram.h:55
ObjectSet< uiTextItem > diptextitms_
Definition: uipolardiagram.h:59

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