OpendTect  6.6
uigmtoverlay.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: Raman Singh
8  Date: July 2008
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uidlggroup.h"
15 
16 #include "manobjectset.h"
17 
18 class GMTPar;
19 
21 {
22 public:
23 
25 
26  virtual bool fillPar(IOPar&) const =0;
27  virtual bool usePar(const IOPar&) =0;
28  virtual void reset() =0;
29 
30 protected:
31 
32  static const char* sKeyProgName();
33  static const char* sKeyUserRef();
34 };
35 
36 
37 typedef uiGMTOverlayGrp* (*uiGMTOverlayGrpCreateFunc)(uiParent*);
38 
40 {
41 public:
42 
43  int add(const char* nm, uiGMTOverlayGrpCreateFunc);
44  uiGMTOverlayGrp* create(uiParent*,const char* nm) const;
45 
46  const char* name(int) const;
47  int size() const { return entries_.size(); }
48 
49 protected:
50 
51  struct Entry
52  {
53  Entry( const char* nm,
55  : name_(nm)
56  , crfn_(fn) {}
57 
60  };
61 
63 
64  Entry* getEntry(const char*) const;
65 
67 };
68 
70 
71 #define mGetColorString( col, str ) \
72  str = (int) col.r(); \
73  str += "/"; str += (int) col.g(); \
74  str += "/"; str += (int) col.b();
75 
uiGMTOverlayGrp::sKeyProgName
static const char * sKeyProgName()
uiGMTOverlayGrpFactory::name
const char * name(int) const
uiGMTOverlayGrpFactory::create
uiGMTOverlayGrp * create(uiParent *, const char *nm) const
uiGMTOverlayGrpFactory::size
int size() const
Definition: uigmtoverlay.h:47
uiGMTOverlayGrpFactory::entries_
ManagedObjectSet< Entry > entries_
Definition: uigmtoverlay.h:62
uidlggroup.h
uiGMTOverlayGrpFactory::add
int add(const char *nm, uiGMTOverlayGrpCreateFunc)
uiGMTOverlayGrpFactory::getEntry
Entry * getEntry(const char *) const
uiDlgGroup
Definition: uidlggroup.h:26
uiGMTOverlayGrp::sKeyUserRef
static const char * sKeyUserRef()
ManagedObjectSet< Entry >
uiGMTOverlayGrp::uiGMTOverlayGrp
uiGMTOverlayGrp(uiParent *, const uiString &)
uiGMTOverlayGrpFactory::Entry::crfn_
uiGMTOverlayGrpCreateFunc crfn_
Definition: uigmtoverlay.h:59
uiGMTOverlayGrpFactory::Entry::Entry
Entry(const char *nm, uiGMTOverlayGrpCreateFunc fn)
Definition: uigmtoverlay.h:53
uiGMTOverlayGrpFactory
Definition: uigmtoverlay.h:40
mClass
#define mClass(module)
Definition: commondefs.h:181
uiGMTOverlayGrpFactory::Entry
Definition: uigmtoverlay.h:52
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiGMTOverlayGrp::fillPar
virtual bool fillPar(IOPar &) const =0
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiGMTOverlayGrp
Definition: uigmtoverlay.h:21
uiGMTOverlayGrpCreateFunc
uiGMTOverlayGrp *(* uiGMTOverlayGrpCreateFunc)(uiParent *)
Definition: uigmtoverlay.h:37
manobjectset.h
uiGMTOverlayGrpFactory::uiGMTOF
friend uiGMTOverlayGrpFactory & uiGMTOF()
uiParent
Definition: uiparent.h:26
uiGMTOverlayGrp::usePar
virtual bool usePar(const IOPar &)=0
uiGMTOF
uiGMTOverlayGrpFactory & uiGMTOF()
GMTPar
Definition: gmtpar.h:25
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
uiGMTOverlayGrpFactory::Entry::name_
BufferString name_
Definition: uigmtoverlay.h:58
uiGMTOverlayGrp::reset
virtual void reset()=0

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