OpendTect-6_4  6.4
survgeometrytransl.h
Go to the documentation of this file.
1 #ifndef survgeometrytransl_h
2 #define survgeometrytransl_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Salil Agarwal
9  Date: Dec 2012
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "generalmod.h"
17 #include "survgeom.h"
18 #include "transl.h"
19 
20 //TODO: Make Translator/Group classes for 3D when needed.
21 
23 {
24  isTranslatorGroup(SurvGeom2D);
25 public:
27  const char* defExtension() const { return "geom"; }
28 };
29 
30 
32 {
33 public:
35 
36  virtual Survey::Geometry* readGeometry(const IOObj&,uiString&) const = 0;
37  virtual bool writeGeometry(IOObj&,Survey::Geometry&,
38  uiString&) const = 0;
39 
40  static Pos::GeomID getGeomID(const IOObj&);
41  static IOObj* getIOObj(Pos::GeomID);
42  static IOObj* createEntry(const char* objname,const char* trnm);
43 
44 };
45 
46 
48 {
49  isTranslator(dgb,SurvGeom2D);
50 public:
51  dgbSurvGeom2DTranslator(const char* s1,const char* s2)
52  : SurvGeom2DTranslator(s1,s2) {}
53 
54  const char* defExtension() const { return "geom"; }
55  Survey::Geometry* readGeometry(const IOObj&,uiString&) const;
56  bool writeGeometry(IOObj&,Survey::Geometry&,uiString&) const;
57  bool implRename(const IOObj*,const char*,
58  const CallBack* cb=0) const;
59 };
60 
61 
62 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: ioobj.h:58
Definition: survgeometrytransl.h:47
Definition: survgeometrytransl.h:31
Definition: uistring.h:89
#define mDefEmptyTranslatorGroupConstructor(clss)
Definition: transl.h:255
Group of Translators. Has a static factory.
Definition: transl.h:56
const char * defExtension() const
Definition: survgeometrytransl.h:27
#define mDefEmptyTranslatorBaseConstructor(clss)
Definition: transl.h:261
Index_Type GeomID
Definition: commontypes.h:52
I/O Interpreter class for a certain object type.
Definition: transl.h:123
dgbSurvGeom2DTranslator(const char *s1, const char *s2)
Definition: survgeometrytransl.h:51
Definition: survgeometrytransl.h:22
const char * defExtension() const
Definition: survgeometrytransl.h:54
#define isTranslatorGroup(clss)
Definition: transl.h:206
CallBacks object-oriented (object + method).
Definition: callback.h:57
A Geometry which holds trace positions.
Definition: survgeom.h:40
#define isTranslator(spec, clss)
Definition: transl.h:230

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