OpendTect-6_4  6.4
uinlapartserv.h
Go to the documentation of this file.
1 #ifndef uinlapartserv_h
2 #define uinlapartserv_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: Feb 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uinlamod.h"
16 #include "uiapplserv.h"
17 #include "uistring.h"
18 #include "multiid.h"
19 #include "nlamodel.h"
20 #include "bufstringset.h"
21 #include "uistring.h"
22 
23 class DataPointSet;
25 class uiDataPointSet;
26 class PosVecDataSet;
27 class NLACreationDesc;
28 
38 public:
40  virtual ~uiNLAPartServer();
41 
42  const char* name() const = 0;
43  virtual MultiID modelId() const = 0;
44  virtual void reset() = 0;
45  virtual bool isClassification() const = 0;
46  virtual void getNeededStoredInputs(
47  BufferStringSet& linekeys) const = 0;
48  virtual bool go() = 0;
50  virtual const NLAModel& getModel() const = 0;
51  virtual const NLACreationDesc& creationDesc() const = 0;
52 
53  virtual const char* modelName() const
54  { return getModel().name(); }
55  virtual IOPar& modelPars() const
56  { return const_cast<NLAModel&>(getModel()).pars(); }
57  bool willDoExtraction() const;
58  const BufferStringSet& modelInputs() const;
59 
60  static int evPrepareWrite();
62  static int evPrepareRead();
64  static int evReadFinished();
66  static int evGetInputNames();
68  static int evGetStoredInput();
70  static int evGetData();
72  static int evSaveMisclass();
74  static int evCreateAttrSet();
76  static int evCr2DRandomSet();
78  static uiString sKeyUsrCancel();
80 
81  // Following should be filled on events
82  BufferStringSet& inputNames() { return inpnms_; }
83  const BufferStringSet& inputNames() const { return inpnms_; }
84  DataPointSet& dps() { return gtDps(); }
85  const DataPointSet& dps() const { return gtDps(); }
86  IOPar& storePars() { return storepars_; }
87  const IOPar& storePars() const { return storepars_; }
88 
90  { dpsdispmgr_ = dispmgr; }
91 
92  virtual bool fillPar(IOPar&) const = 0;
93  virtual void usePar(const IOPar&) = 0;
94 
95  void getDataPointSets(ObjectSet<DataPointSet>&) const;
96  uiString prepareInputData(ObjectSet<DataPointSet>&);
97 
98  void set2DEvent( bool is2d ) { is2d_ = is2d; }
99  bool is2DEvent() { return is2d_; }
100 
101 
102 protected:
103 
107  bool is2d_;
109 
111  void writeSets(CallBacker*);
112 
113  bool extractDirectData(ObjectSet<DataPointSet>&);
114  const uiString convertToClasses(const ObjectSet<DataPointSet>&,int);
115  bool doDPSDlg();
116 
118  {
123 
124  void useUserSels(const BufferStringSet&);
125  void addCols(PosVecDataSet&,const char*);
126  void fillCols(PosVecDataSet&,const int);
127  };
128 
129  DataPointSet& gtDps() const;
130 
131 };
132 
133 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: uinlapartserv.h:117
virtual IOPar & modelPars() const
Definition: uinlapartserv.h:55
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Set of data points with group selection.
Definition: datapointset.h:48
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Minimum Interface for NLA models.
Definition: nlamodel.h:20
BufferStringSet inpnms_
Definition: uinlapartserv.h:106
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
BufferStringSet & inputNames()
Definition: uinlapartserv.h:82
DataPointSetDisplayMgr * dpsdispmgr_
Definition: uinlapartserv.h:110
Definition: uistring.h:89
TypeSet< int > usedcodes
Definition: uinlapartserv.h:121
uiDataPointSet * uidps_
Definition: uinlapartserv.h:105
Set of BufferString objects.
Definition: bufstringset.h:28
DataPointSet display manager.
Definition: dpsdispmgr.h:104
const BufferStringSet & inputNames() const
Definition: uinlapartserv.h:83
Service provider for application level - Non-Linear Analysis.
Definition: uinlapartserv.h:36
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
virtual const char * modelName() const
Definition: uinlapartserv.h:53
void setDPSDispMgr(DataPointSetDisplayMgr *dispmgr)
Definition: uinlapartserv.h:89
DataPointSet * dps_
Definition: uinlapartserv.h:104
TypeSet< int > codes
Definition: uinlapartserv.h:119
const DataPointSet & dps() const
Definition: uinlapartserv.h:85
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
DataPointSet & dps()
Definition: uinlapartserv.h:84
const IOPar & storePars() const
Definition: uinlapartserv.h:87
Services from application level to &#39;Part servers&#39;.
Definition: uiapplserv.h:24
IOPar & storepars_
Definition: uinlapartserv.h:108
Edit DataPointSet.
Definition: uidatapointset.h:44
void set2DEvent(bool is2d)
Definition: uinlapartserv.h:98
TypeSet< int > ptrtbl
Definition: uinlapartserv.h:120
Makes available certain services that are needed on a higher level.
Definition: uiapplserv.h:48
BufferStringSet usednames
Definition: uinlapartserv.h:122
Description of how a NLA analysis Feature set is to be created.
Definition: nlacrdesc.h:29
IOPar & storePars()
Definition: uinlapartserv.h:86
IOPar pars
Extra details.
Definition: nlacrdesc.h:47
Data set consisting of data vectors.
Definition: posvecdataset.h:30
Compound key consisting of ints.
Definition: multiid.h:25
bool is2d_
Definition: uinlapartserv.h:107
bool is2DEvent()
Definition: uinlapartserv.h:99

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