OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "mpeenginemod.h"
15 #include "emeditor.h"
16 
17 namespace EM { class PolygonBody; };
18 template <class T> class Selector;
19 
20 namespace MPE
21 {
22 
28 {
29 public:
32  static void initClass();
33 
34  void setLastClicked(const EM::PosID&);
35  void setSowingPivot(const Coord3);
36 
37  void getInteractionInfo(EM::PosID& nearestpid0,
38  EM::PosID& nearestpid1,
39  EM::PosID& insertpid,
40  const Coord3&,float zfactor) const;
42 
43 protected:
44 
45  bool setPosition(const EM::PosID&,const Coord3&);
46  bool setPosition( const Coord3& c )
47  { return ObjectEditor::setPosition(c); }
49  float getNearestPolygon(int& polygon,
50  EM::SectionID& sid,
51  const Coord3&,
52  float zfactor) const;
53  void getPidsOnPolygon(EM::PosID& nearestpid0,
54  EM::PosID& nearestpid1,
55  EM::PosID& insertpid,
56  int polygon,
57  const EM::SectionID&,
58  const Coord3&,
59  float zfactor) const;
60 
63 };
64 
65 
66 }; // namespace MPE
67 
MPE::PolygonBodyEditor::create
static ObjectEditor * create(EM::EMObject &)
Coord3
A cartesian coordinate in 3D space.
Definition: coord.h:72
Selector
Interface for classes that select on basis of a key.
Definition: selector.h:25
MPE::PolygonBodyEditor::removeSelection
bool removeSelection(const Selector< Coord3 > &)
MPE::PolygonBodyEditor::initClass
static void initClass()
MPE::PolygonBodyEditor::setSowingPivot
void setSowingPivot(const Coord3)
MPE::PolygonBodyEditor::getInteractionInfo
void getInteractionInfo(EM::PosID &nearestpid0, EM::PosID &nearestpid1, EM::PosID &insertpid, const Coord3 &, float zfactor) const
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Geometry::ElementEditor
Definition: geeditor.h:25
MPE::ObjectEditor::setPosition
virtual bool setPosition(const Coord3 &)
MPE::PolygonBodyEditor::setLastClicked
void setLastClicked(const EM::PosID &)
EM
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: bulk2dhorizonscanner.h:26
MPE::PolygonBodyEditor::setPosition
bool setPosition(const EM::PosID &, const Coord3 &)
MPE::PolygonBodyEditor::sowinghistory_
TypeSet< Coord3 > sowinghistory_
Definition: polygonsurfeditor.h:62
MPE::PolygonBodyEditor::createEditor
Geometry::ElementEditor * createEditor(const EM::SectionID &)
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
EM::PolygonBody
A Surface polygon Body.
Definition: empolygonbody.h:79
MPE::ObjectEditor
Abstraction of EM Object editing. It gives lists of which nodes that may be moved,...
Definition: emeditor.h:47
emeditor.h
MPE::PolygonBodyEditor::PolygonBodyEditor
PolygonBodyEditor(EM::PolygonBody &)
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
MPE::PolygonBodyEditor::sowingpivot_
Coord3 sowingpivot_
Definition: polygonsurfeditor.h:61
MPE::PolygonBodyEditor::getPidsOnPolygon
void getPidsOnPolygon(EM::PosID &nearestpid0, EM::PosID &nearestpid1, EM::PosID &insertpid, int polygon, const EM::SectionID &, const Coord3 &, float zfactor) const
MPE::PolygonBodyEditor
ObjectEditor to edit EM::PolygonBody.
Definition: polygonsurfeditor.h:28
MPE::PolygonBodyEditor::setPosition
bool setPosition(const Coord3 &c)
Definition: polygonsurfeditor.h:46
EM::EMObject
Base class for all EarthModel objects.
Definition: emobject.h:159
MPE::PolygonBodyEditor::getNearestPolygon
float getNearestPolygon(int &polygon, EM::SectionID &sid, const Coord3 &, float zfactor) const
EM::PosID
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
TypeSet< Coord3 >

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