OpendTect-6_4  6.4
polygonsurfeditor.h
Go to the documentation of this file.
1 #ifndef polygonsurfeditor_h
2 #define polygonsurfeditor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Yuancheng Liu
9  Date: July 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mpeenginemod.h"
16 #include "emeditor.h"
17 
18 namespace EM { class PolygonBody; };
19 template <class T> class Selector;
20 
21 namespace MPE
22 {
23 
29 {
30 public:
32  static ObjectEditor* create(EM::EMObject&);
33  static void initClass();
34 
35  void setLastClicked(const EM::PosID&);
36  void setSowingPivot(const Coord3);
37 
38  void getInteractionInfo(EM::PosID& nearestpid0,
39  EM::PosID& nearestpid1,
40  EM::PosID& insertpid,
41  const Coord3&,float zfactor) const;
42  bool removeSelection(const Selector<Coord3>&);
43 
44 protected:
45 
46  bool setPosition(const EM::PosID&,const Coord3&);
47  bool setPosition( const Coord3& c )
48  { return ObjectEditor::setPosition(c); }
49  Geometry::ElementEditor* createEditor(const EM::SectionID&);
50  float getNearestPolygon(int& polygon,
51  EM::SectionID& sid,
52  const Coord3&,
53  float zfactor) const;
54  void getPidsOnPolygon(EM::PosID& nearestpid0,
55  EM::PosID& nearestpid1,
56  EM::PosID& insertpid,
57  int polygon,
58  const EM::SectionID&,
59  const Coord3&,
60  float zfactor) const;
61 
64 };
65 
66 
67 }; // namespace MPE
68 
69 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
Coord3 sowingpivot_
Definition: polygonsurfeditor.h:62
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
bool setPosition(const Coord3 &c)
Definition: polygonsurfeditor.h:47
Definition: geeditor.h:25
A Surface polygon Body.
Definition: empolygonbody.h:79
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner.
Definition: emeditor.h:47
ObjectEditor to edit EM::PolygonBody.
Definition: polygonsurfeditor.h:28
TypeSet< Coord3 > sowinghistory_
Definition: polygonsurfeditor.h:63
Interface for classes that select on basis of a key.
Definition: selector.h:25
A cartesian coordinate in 3D space.
Definition: coord.h:72
static uiHor3DInterpol * create(uiParent *)
Base class for all EarthModel objects.
Definition: emobject.h:158
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
static void initClass()

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