OpendTect  6.3
uimarkerstyle.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6  Author: K. Tingdahl
7  Date: July 2010
8 ________________________________________________________________________
9 
10 -*/
11 
12 #include "uitoolsmod.h"
13 #include "uigroup.h"
14 
15 #include "draw.h"
16 #include "typeset.h"
17 
18 class uiColorInput;
19 class uiGenInput;
20 class uiSlider;
21 
22 
23 mExpClass(uiTools) uiMarkerStyle : public uiGroup
25 public:
26 
27  Color getColor() const;
28  int getSize() const;
29 
30  NotifierAccess* sizeChange();
31  NotifierAccess* typeSel();
32  NotifierAccess* colSel();
33 
34  static int cDefMaxMarkerSize() { return 18; }
35  void enableColorSelection(bool);
36 
37 protected:
38 
40 
44 
46  void createFlds(const uiStringSet&,bool withcolor,
47  const Interval<int>& szrg);
48  void setMStyle(int typ,int sz, const Color&);
49 };
50 
51 
54 public:
55 
56  uiMarkerStyle2D(uiParent*,bool withcolor,
57  Interval<int> sizerange
58  =Interval<int>(1,cDefMaxMarkerSize()),
59  const TypeSet<OD::MarkerStyle2D::Type>* excl=0);
60 
61  OD::MarkerStyle2D::Type getType() const;
62 
63  void setMarkerStyle(const OD::MarkerStyle2D& style);
64  void getMarkerStyle(OD::MarkerStyle2D& style) const;
65 
66 };
67 
68 
71 public:
72 
73  uiMarkerStyle3D(uiParent*,bool withcolor,
74  Interval<int> sizerange
75  =Interval<int>(1,cDefMaxMarkerSize()),
76  const TypeSet<OD::MarkerStyle3D::Type>* excl=0);
77 
78  OD::MarkerStyle3D::Type getType() const;
79 
80  void setMarkerStyle(const OD::MarkerStyle3D&);
81  void getMarkerStyle(OD::MarkerStyle3D&) const;
82 
83 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Definition: uislider.h:40
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Interface class for Notifier. See comments there.
Definition: notify.h:20
uiGenInput * typefld_
Definition: uimarkerstyle.h:42
static int cDefMaxMarkerSize()
Definition: uimarkerstyle.h:34
Type
Definition: draw.h:95
Definition: uiparent.h:24
Definition: uimarkerstyle.h:69
TypeSet< int > types_
Definition: uimarkerstyle.h:45
Definition: draw.h:63
General Input Element.
Definition: uigeninput.h:56
Definition: uimarkerstyle.h:23
uiColorInput * colselfld_
Definition: uimarkerstyle.h:43
Type
Definition: draw.h:67
small element for color selection. Has no text label.
Definition: uicolor.h:42
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:24
Definition: uistring.h:235
Definition: uimarkerstyle.h:52
Definition: draw.h:91
uiSlider * sizefld_
Definition: uimarkerstyle.h:41

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