OpendTect  6.6
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  RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uitoolsmod.h"
14 #include "uigroup.h"
15 
16 #include "draw.h"
17 
18 class uiColorInput;
19 class uiGenInput;
20 class uiSlider;
21 class uiSpinBox;
22 
23 
26 public:
27  mExpClass(uiTools) Setup
28  {
29  public:
30  Setup( const uiString& txt=uiString::emptyString())
31  : lbltxt_(txt)
32  , shape_(true)
33  , color_(true)
34  , transparency_(false)
35  , sz_(true)
36  {}
37  mDefSetupMemb(uiString,lbltxt)
38  mDefSetupMemb(bool,shape)
39  mDefSetupMemb(bool,color)
40  mDefSetupMemb(bool,sz)
41  mDefSetupMemb(bool,transparency)
43  };
46 
49  void setMarkerColor(const Color&);
51  void setMarkerSize(int);
52  int getMarkerSize() const;
53 
56 
58 
59 protected:
61 
65 
67 };
68 
69 
70 
73 public:
74  uiMarkerStyle3D(uiParent*,bool withcolor,
75  const Interval<int>& sizerange,
76  int nrexcluded=0,
77  const MarkerStyle3D::Type* excluded=nullptr);
78 
82 
84  Color getColor() const;
85  int getSize() const;
86 
87  void setMarkerStyle(const MarkerStyle3D& style);
88  void getMarkerStyle(MarkerStyle3D& style) const;
90 
91 protected:
93 
97 };
98 
uiMarkerStyle2D::setMarkerType
void setMarkerType(MarkerStyle2D::Type)
MarkerStyle3D
Definition: draw.h:88
MarkerStyle2D::Type
Type
Definition: draw.h:63
uiMarkerStyle2D::getMarkerSize
int getMarkerSize() const
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiMarkerStyle3D::colselfld_
uiColorInput * colselfld_
Definition: uimarkerstyle.h:96
uiMarkerStyle3D::szfld_
uiSpinBox * szfld_
Definition: uimarkerstyle.h:94
uiMarkerStyle3D::sliderMove
mODTextTranslationClass(uiMarkerStyle3D) public NotifierAccess * sliderMove()
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
uiMarkerStyle2D::szfld_
uiSpinBox * szfld_
Definition: uimarkerstyle.h:64
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
sKey::Setup
FixedString Setup()
Definition: keystrs.h:139
uiMarkerStyle2D::~uiMarkerStyle2D
~uiMarkerStyle2D()
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uiMarkerStyle2D::getMarkerType
MarkerStyle2D::Type getMarkerType() const
uigroup.h
uiMarkerStyle3D::typefld_
uiGenInput * typefld_
Definition: uimarkerstyle.h:95
uiMarkerStyle2D::setMarkerColor
void setMarkerColor(const Color &)
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiMarkerStyle3D
Definition: uimarkerstyle.h:72
uiMarkerStyle2D::uiMarkerStyle2D
mODTextTranslationClass(uiMarkerStyle2D) public uiMarkerStyle2D(uiParent *, const Setup &)
uiMarkerStyle2D::colorfld_
uiColorInput * colorfld_
Definition: uimarkerstyle.h:63
uiMarkerStyle3D::getSize
int getSize() const
uiMarkerStyle3D::types_
TypeSet< MarkerStyle3D::Type > types_
Definition: uimarkerstyle.h:92
uiGroup
Definition: uigroup.h:54
NotifierAccess
Interface class for Notifier. See comments there.
Definition: notify.h:22
uiMarkerStyle2D::setMarkerStyle
void setMarkerStyle(const MarkerStyle2D &)
uiMarkerStyle3D::enableColorSelection
void enableColorSelection(bool)
Setup
Definition: ceemdalgo.h:161
uiSlider
Definition: uislider.h:42
uiMarkerStyle2D::types_
TypeSet< MarkerStyle2D::Type > types_
Definition: uimarkerstyle.h:60
Notifier< uiMarkerStyle2D >
uiMarkerStyle2D::getMarkerStyle
MarkerStyle2D getMarkerStyle() const
uiMarkerStyle3D::typeSel
NotifierAccess * typeSel()
draw.h
uiSpinBox
Definition: uispinbox.h:24
uiMarkerStyle3D::colSel
NotifierAccess * colSel()
MarkerStyle2D
Definition: draw.h:60
uiMarkerStyle3D::setMarkerStyle
void setMarkerStyle(const MarkerStyle3D &style)
uiColorInput
small element for color selection. Has no text label.
Definition: uicolor.h:44
uiMarkerStyle2D::typefld_
uiGenInput * typefld_
Definition: uimarkerstyle.h:62
uiMarkerStyle3D::getColor
Color getColor() const
uiMarkerStyle2D::changed
Notifier< uiMarkerStyle2D > changed
Definition: uimarkerstyle.h:57
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiString::emptyString
static const uiString & emptyString()
Definition: uistring.h:300
MarkerStyle3D::Type
Type
Definition: draw.h:91
uiMarkerStyle2D::setMarkerSize
void setMarkerSize(int)
uiMarkerStyle3D::getMarkerStyle
void getMarkerStyle(MarkerStyle3D &style) const
uiParent
Definition: uiparent.h:26
uiMarkerStyle2D::getMarkerColor
Color getMarkerColor() const
Interval< int >
Color
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
uiMarkerStyle3D::getType
MarkerStyle3D::Type getType() const
uiMarkerStyle2D
Definition: uimarkerstyle.h:25
uiMarkerStyle2D::changeCB
void changeCB(CallBacker *)
TypeSet< MarkerStyle2D::Type >

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