OpendTect  6.3
polygonsurfeditor.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: Yuancheng Liu
8  Date: July 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "mpeenginemod.h"
14 #include "emeditor.h"
15 
16 namespace EM { class PolygonBody; };
17 template <class T> class Selector;
18 
19 namespace MPE
20 {
21 
27 {
28 public:
30  static ObjectEditor* create(EM::EMObject&);
31  static void initClass();
32 
33  void setLastClicked(const EM::PosID&);
34  void setSowingPivot(const Coord3);
35 
36  void getInteractionInfo(EM::PosID& nearestpid0,
37  EM::PosID& nearestpid1,
38  EM::PosID& insertpid,
39  const Coord3&,float zfactor) const;
40  bool removeSelection(const Selector<Coord3>&);
41 
42 protected:
43 
44  bool setPosition(const EM::PosID&,const Coord3&);
45  bool setPosition( const Coord3& c )
46  { return ObjectEditor::setPosition(c); }
47  Geometry::ElementEditor* createEditor(const EM::SectionID&);
48  float getNearestPolygon(int& polygon,
49  EM::SectionID& sid,
50  const Coord3&,
51  float zfactor) const;
52  void getPidsOnPolygon(EM::PosID& nearestpid0,
53  EM::PosID& nearestpid1,
54  EM::PosID& insertpid,
55  int polygon,
56  const EM::SectionID&,
57  const Coord3&,
58  float zfactor) const;
59 
62 };
63 
64 
65 }; // namespace MPE
od_int16 SectionID
Definition: emposid.h:23
#define mExpClass(module)
Definition: commondefs.h:157
Coord3 sowingpivot_
Definition: polygonsurfeditor.h:60
Is an identifier for each position in the earthmodel.
Definition: emposid.h:35
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:30
bool setPosition(const Coord3 &c)
Definition: polygonsurfeditor.h:45
Definition: geeditor.h:23
3D point or vector
Definition: commontypes.h:57
Set of (small) copyable elements.
Definition: commontypes.h:26
A Surface polygon Body.
Definition: empolygonbody.h:77
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner.
Definition: emeditor.h:44
ObjectEditor to edit EM::PolygonBody.
Definition: polygonsurfeditor.h:26
TypeSet< Coord3 > sowinghistory_
Definition: polygonsurfeditor.h:61
Interface for classes that select on basis of a key.
Definition: selector.h:23
static uiHor3DInterpol * create(uiParent *)
Base class for all EarthModel objects.
Definition: emobject.h:117
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
static void initClass()

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