OpendTect  6.6
faulteditor.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: K. Tingdahl
8  Date: January 2005
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "mpeenginemod.h"
15 #include "emeditor.h"
16 
17 namespace EM { class Fault3D; }
18 namespace Geometry { class FaultStickSurface; }
19 
20 template <class T> class Selector;
21 
22 namespace MPE
23 {
24 
29 mExpClass(MPEEngine) FaultEditor : public ObjectEditor
30 {
31 public:
33 
35  static void initClass();
36 
37  void setSceneIdx(int idx) { sceneidx_ = idx; }
38 
39  void setLastClicked(const EM::PosID&);
40  void setSowingPivot(const Coord3);
41 
42 
43  void setZScale(float);
44  void setScaleVector(const Coord3& v);
46 
47  void getInteractionInfo(bool& makenewstick,
48  EM::PosID& insertpid,const Coord3& pos,
49  const Coord3* posnormal=0) const;
50 
53  const Coord3& pos,
54  const Coord3* posnormal)const;
55 
56 protected:
58  int curstick,const Coord3& pos,
59  const Coord3* posnormal) const;
61  int sticknr,const Coord3& mousepos,
62  const Coord3& posnormal) const;
64  int sticknr,const Coord3& mousepos) const;
65 
66  float getNearestStick(int& stick,EM::SectionID& sid,
67  const Coord3& pos,const Coord3* posnormal) const;
68  bool getInsertStick(int& stick,EM::SectionID& sid,
69  const Coord3& pos,const Coord3* posnormal) const;
70  void getPidsOnStick( EM::PosID& insertpid,int stick,
71  const EM::SectionID&,const Coord3& pos) const;
72 
75  int sceneidx_;
76 
77  int getLastClickedStick() const;
78 
80 
83 };
84 
85 
86 } // namespace MPE
87 
MPE::FaultEditor::createEditor
Geometry::ElementEditor * createEditor(const EM::SectionID &)
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::FaultEditor::sowinghistory_
TypeSet< Coord3 > sowinghistory_
Definition: faulteditor.h:82
MPE::FaultEditor::getNearestStick
float getNearestStick(int &stick, EM::SectionID &sid, const Coord3 &pos, const Coord3 *posnormal) const
Geometry
Definition: arraytesselator.h:21
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
MPE::FaultEditor::FaultEditor
FaultEditor(EM::Fault3D &)
Geometry::ElementEditor
Definition: geeditor.h:25
MPE::FaultEditor::scalevector_
Coord3 scalevector_
Definition: faulteditor.h:74
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
MPE::FaultEditor::setScaleVector
void setScaleVector(const Coord3 &v)
x'=x, y'=v1*x*+v2*y, z'=v3*z
EM
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: bulk2dhorizonscanner.h:26
MPE::FaultEditor::setSowingPivot
void setSowingPivot(const Coord3)
MPE::FaultEditor
ObjectEditor to edit EM::Fault3D.
Definition: faulteditor.h:30
MPE
MPE stands for Model, Predict, Edit. Contains tracking and editing functions.
Definition: autotracker.h:32
MPE::FaultEditor::cloneMovingNode
void cloneMovingNode(CallBacker *)
MPE::FaultEditor::sceneidx_
int sceneidx_
Definition: faulteditor.h:75
MPE::FaultEditor::setZScale
void setZScale(float)
MPE::FaultEditor::getPidsOnStick
void getPidsOnStick(EM::PosID &insertpid, int stick, const EM::SectionID &, const Coord3 &pos) const
MPE::ObjectEditor
Abstraction of EM Object editing. It gives lists of which nodes that may be moved,...
Definition: emeditor.h:47
MPE::FaultEditor::setLastClicked
void setLastClicked(const EM::PosID &)
MPE::FaultEditor::initClass
static void initClass()
emeditor.h
MPE::FaultEditor::sowingpivot_
Coord3 sowingpivot_
Definition: faulteditor.h:81
MPE::FaultEditor::getInsertStick
bool getInsertStick(int &stick, EM::SectionID &sid, const Coord3 &pos, const Coord3 *posnormal) const
EM::SectionID
od_int16 SectionID
Definition: emposid.h:24
MPE::FaultEditor::getInteractionInfo
void getInteractionInfo(bool &makenewstick, EM::PosID &insertpid, const Coord3 &pos, const Coord3 *posnormal=0) const
MPE::FaultEditor::distToStick
float distToStick(const Geometry::FaultStickSurface &, int curstick, const Coord3 &pos, const Coord3 *posnormal) const
MPE::FaultEditor::getSecondKnotNr
int getSecondKnotNr(const Geometry::FaultStickSurface &, int sticknr, const Coord3 &mousepos) const
MPE::FaultEditor::create
static ObjectEditor * create(EM::EMObject &)
MPE::FaultEditor::removeSelection
bool removeSelection(const Selector< Coord3 > &)
MPE::FaultEditor::getLastClickedStick
int getLastClickedStick() const
EM::EMObject
Base class for all EarthModel objects.
Definition: emobject.h:159
EM::Fault3D
3D Fault
Definition: emfault3d.h:78
Geometry::FaultStickSurface
Definition: faultsticksurface.h:20
MPE::FaultEditor::panelIntersectDist
float panelIntersectDist(const Geometry::FaultStickSurface &, int sticknr, const Coord3 &mousepos, const Coord3 &posnormal) const
MPE::FaultEditor::setSceneIdx
void setSceneIdx(int idx)
Definition: faulteditor.h:37
EM::PosID
Is an identifier for each position in the earthmodel.
Definition: emposid.h:37
MPE::FaultEditor::getNearstStick
const EM::PosID getNearstStick(EM::SectionID &sid, const Coord3 &pos, const Coord3 *posnormal) const
TypeSet< Coord3 >

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