OpendTect-6_4  6.4
emsticksettransl.h
Go to the documentation of this file.
1 #ifndef emsticksettransl_h
2 #define emsticksettransl_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 4-11-2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "earthmodelmod.h"
17 #include "transl.h"
18 #include "emstickset.h"
19 
20 #include "rowcol.h"
21 #include "executor.h"
22 
24 
31 public:
33 
34  const char* defExtension() const { return "stickset"; }
35 
36  static const char* keyword;
37 };
38 
39 
45 {
46 public:
48 
49  virtual Executor* reader( EM::StickSet&, Conn*,
50  const char* formatfilename ) = 0;
53  virtual Executor* writer(const EM::StickSet&,Conn*,
54  const char* formatfilename ) = 0;
58  static Executor* reader(EM::StickSet&,const IOObj*,BufferString& errmsg);
59  static Executor* writer(const EM::StickSet&,const IOObj*,
60  BufferString& errmsg );
61 
62 };
63 
64 
71 public:
73 
74  virtual Executor* reader( EM::StickSet&, Conn*,
75  const char* formatfilename );
76  virtual Executor* writer( const EM::StickSet&, Conn*,
77  const char* formatfilename );
78 
79  virtual bool isUserSelectable(bool) const { return false; }
80 
82 
83  static const char* xstr;
84  static const char* ystr;
85  static const char* zstr;
86  static const char* pointtypestr;
87  static const char* domainstr;
88  static const char* surveystr;
89  static const char* domainunitstr;
90  static const char* distancunitestr;
91  static const char* lineidstr;
92  static const char* tracestr;
93 };
94 
95 
101 {
102 public:
104  const char* formatfile );
106  virtual int nextStep();
107 
108  virtual uiString uiMessage() const;
109  static const char* streamerrmsg;
110 
111 protected:
112 
114 
117  bool useinlcrl;
118  bool error;
119 
122  int lastpt;
124 
134 };
135 
136 
142 {
143 public:
145  Conn*, const char* formatfile );
147  virtual int nextStep();
148 
149  virtual uiString uiMessage() const { return "Writing knots"; }
150  static const char* streamerrmsg;
151 
152 protected:
153  void fillBuffer( BufferString&, const Coord3&, int pt );
154 
156 
159 
161 
162 
170 };
171 
172 
173 #define mLMK_START_PT 1
174 #define mLMK_INTERMED_PT 2
175 #define mLMK_END_PT 3
176 #define mLMK_CONTROL_PT 4
177 
178 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: ioobj.h:58
static const char * xstr
Definition: emsticksettransl.h:83
static const char * lineidstr
Definition: emsticksettransl.h:91
Interval< int > domaininterval
Definition: emsticksettransl.h:131
EM::KnotID currentknot
Definition: emsticksettransl.h:121
virtual bool isUserSelectable(bool) const
Definition: emsticksettransl.h:79
int currentsticknr
Definition: emsticksettransl.h:160
Interval< int > lineidinterval
Definition: emsticksettransl.h:128
Interval< int > xinterval
Definition: emsticksettransl.h:164
Interval< int > yinterval
Definition: emsticksettransl.h:165
BufferString warningmsg
Definition: emsticksettransl.h:81
Interval< int > distancuniteinterval
Definition: emsticksettransl.h:133
int lastpt
Definition: emsticksettransl.h:122
static const char * tracestr
Definition: emsticksettransl.h:92
Interval< int > yinterval
Definition: emsticksettransl.h:126
Definition: uistring.h:89
Conn * conn
Definition: emsticksettransl.h:115
#define mDefEmptyTranslatorConstructor(spec, clss)
Definition: transl.h:267
Landmark EM::StickSet writer.
Definition: emsticksettransl.h:141
Interval< int > xinterval
Definition: emsticksettransl.h:125
Conn * conn
Definition: emsticksettransl.h:157
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:255
Group of Translators. Has a static factory.
Definition: transl.h:56
Landmark EM::StickSet reader.
Definition: emsticksettransl.h:100
Interval< int > domainunitinterval
Definition: emsticksettransl.h:168
Interval< int > zinterval
Definition: emsticksettransl.h:127
static const char * domainstr
Definition: emsticksettransl.h:87
SectionID StickID
Definition: emstickset.h:26
Interval< int > distanceunitinterval
Definition: emsticksettransl.h:169
static const char * zstr
Definition: emsticksettransl.h:85
#define mDefEmptyTranslatorBaseConstructor(clss)
Definition: transl.h:261
static const char * pointtypestr
Definition: emsticksettransl.h:86
Interval< int > zinterval
Definition: emsticksettransl.h:166
static const char * domainunitstr
Definition: emsticksettransl.h:89
A cartesian coordinate in 3D space.
Definition: coord.h:72
EM::StickSet Translator.
Definition: emsticksettransl.h:44
I/O Interpreter class for a certain object type.
Definition: transl.h:123
Data connection.
Definition: conn.h:30
IdxPair used for its row() and col().
Definition: rowcol.h:25
static const char * streamerrmsg
Definition: emsticksettransl.h:109
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
RowCol lastnode
Definition: emsticksettransl.h:123
EM::StickSet & stickset
Definition: emsticksettransl.h:113
virtual uiString uiMessage() const
will be message() again in 7.x
Definition: emsticksettransl.h:149
Landmark EM::StickSet Translator.
Definition: emsticksettransl.h:69
EM::StickID currentstick
Definition: emsticksettransl.h:120
EM::StickSet TranslatorGroup.
Definition: emsticksettransl.h:29
Stick set.
Definition: emstickset.h:35
const EM::StickSet & stickset
Definition: emsticksettransl.h:155
BufferString msg
Definition: emsticksettransl.h:158
Interval< int > traceinterval
Definition: emsticksettransl.h:129
EM::StickSet EMStickSet
Definition: emsticksettransl.h:23
Interval< int > domaininterval
Definition: emsticksettransl.h:167
static const char * surveystr
Definition: emsticksettransl.h:88
bool useinlcrl
Definition: emsticksettransl.h:117
#define isTranslatorGroup(clss)
Definition: transl.h:206
Interval< int > pointtypeinterval
Definition: emsticksettransl.h:163
Interval< int > pointtypeinterval
Definition: emsticksettransl.h:130
bool error
Definition: emsticksettransl.h:118
static const char * distancunitestr
Definition: emsticksettransl.h:90
static const char * ystr
Definition: emsticksettransl.h:84
Interval< int > domainunitinterval
Definition: emsticksettransl.h:132
BufferString msg
Definition: emsticksettransl.h:116
static const char * streamerrmsg
Definition: emsticksettransl.h:150
#define isTranslator(spec, clss)
Definition: transl.h:230
Specification to enable chunkwise execution of a process.
Definition: executor.h:39
SubID KnotID
Definition: emstickset.h:27

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