OpendTect-6_4  6.4
uimarkerstyle.h
Go to the documentation of this file.
1 #ifndef uimarkerstyle_h
2 #define uimarkerstyle_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: K. Tingdahl
8  Date: July 2010
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 
17 #include "draw.h"
18 
19 class uiColorInput;
20 class uiGenInput;
21 class uiSlider;
22 class uiSpinBox;
23 
24 
27 public:
28  mExpClass(uiTools) Setup
29  {
30  public:
31  Setup( const uiString& txt=uiString::emptyString())
32  : lbltxt_(txt)
33  , shape_(true)
34  , color_(true)
35  , transparency_(false)
36  , sz_(true)
37  {}
38  mDefSetupMemb(uiString,lbltxt)
39  mDefSetupMemb(bool,shape)
40  mDefSetupMemb(bool,color)
41  mDefSetupMemb(bool,sz)
42  mDefSetupMemb(bool,transparency)
44  };
46  ~uiMarkerStyle2D();
47 
48  void setMarkerType(MarkerStyle2D::Type);
49  MarkerStyle2D::Type getMarkerType() const;
50  void setMarkerColor(const Color&);
51  Color getMarkerColor() const;
52  void setMarkerSize(int);
53  int getMarkerSize() const;
54 
55  void setMarkerStyle(const MarkerStyle2D&);
56  MarkerStyle2D getMarkerStyle() const;
57 
59 
60 protected:
62 
66 
67  void changeCB(CallBacker*);
68 };
69 
70 
71 
74 public:
75  uiMarkerStyle3D(uiParent*,bool withcolor,
76  const Interval<int>& sizerange,
77  int nrexcluded=0,
78  const MarkerStyle3D::Type* excluded=0);
79  NotifierAccess* sliderMove();
80  NotifierAccess* typeSel();
81  NotifierAccess* colSel();
82 
83  MarkerStyle3D::Type getType() const;
84  Color getColor() const;
85  int getSize() const;
86 
87  void setMarkerStyle(const MarkerStyle3D& style);
88  void getMarkerStyle(MarkerStyle3D& style) const;
89  void enableColorSelection(bool);
90 
91 protected:
93 
97 };
98 
99 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiColorInput * colorfld_
Definition: uimarkerstyle.h:64
FixedString Setup()
Definition: keystrs.h:116
Definition: uislider.h:42
uiSpinBox * szfld_
Definition: uimarkerstyle.h:65
uiSlider * sliderfld_
Definition: uimarkerstyle.h:94
Notifier< uiMarkerStyle2D > changed
Definition: uimarkerstyle.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Interface class for Notifier. See comments there.
Definition: callback.h:161
Definition: draw.h:60
static const uiString & emptyString()
Definition: uistring.h:109
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uimarkerstyle.h:72
TypeSet< MarkerStyle2D::Type > types_
Definition: uimarkerstyle.h:61
General Input Element.
Definition: uigeninput.h:58
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Definition: uispinbox.h:24
Definition: draw.h:88
Type
Definition: draw.h:92
uiGenInput * typefld_
Definition: uimarkerstyle.h:95
uiColorInput * colselfld_
Definition: uimarkerstyle.h:96
uiGenInput * typefld_
Definition: uimarkerstyle.h:63
small element for color selection. Has no text label.
Definition: uicolor.h:44
Type
Definition: draw.h:64
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
TypeSet< MarkerStyle3D::Type > types_
Definition: uimarkerstyle.h:92
Definition: uimarkerstyle.h:25

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