OpendTect-6_4  6.4
faultstickseteditor.h
Go to the documentation of this file.
1 #ifndef faultstickseteditor_h
2 #define faultstickseteditor_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: J.C. Glas
9  Date: October 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "mpeenginemod.h"
16 #include "emeditor.h"
17 
18 namespace EM { class FaultStickSet; }
19 template <class T> class Selector;
20 
21 namespace MPE
22 {
23 
29 {
30 public:
32 
33  static ObjectEditor* create(EM::EMObject&);
34  static void initClass();
35 
36  void setSceneIdx(int idx) { sceneidx_ = idx; }
37 
38  void setEditIDs(const TypeSet<EM::PosID>* editpids);
39  void getEditIDs(TypeSet<EM::PosID>&) const;
40 
41  void setLastClicked(const EM::PosID&);
42  void setSowingPivot(const Coord3);
43 
44  void setZScale(float);
45  void setScaleVector(const Coord3& v);
47 
48  void getInteractionInfo( EM::PosID& insertpid,
49  const MultiID* pickedmid,
50  const char* pickednm,
51  Pos::GeomID pickedgeomid,const Coord3& pos,
52  const Coord3* posnorm=0) const;
53 
54  bool removeSelection(const Selector<Coord3>&);
55  const EM::PosID getNearestStick(const Coord3& pos,
56  Pos::GeomID pickedgeomid,
57  const Coord3* normal) const;
58 protected:
59  float distToStick(int sticknr,const EM::SectionID& sid,
60  const MultiID* pickedmid,
61  const char* pickednm,
62  Pos::GeomID pickedgeomid,const Coord3& pos,
63  const Coord3* posnorm) const;
64  bool getNearestStick(int& sticknr,EM::SectionID& sid,
65  const MultiID* pickedmid,
66  const char* pickednm,
67  Pos::GeomID pickedgeomid,const Coord3& pos,
68  const Coord3* posnorm) const;
69  void getPidsOnStick(EM::PosID& insertpid,int sticknr,
70  const EM::SectionID&,const Coord3& pos) const;
71 
72  Geometry::ElementEditor* createEditor(const EM::SectionID&);
76  int sceneidx_;
77 
78  int getLastClickedStick() const;
79 
80  void cloneMovingNode();
81 
83 
86 
87 };
88 
89 } // namespace MPE
90 
91 #endif
od_int16 SectionID
Definition: emposid.h:25
#define mExpClass(module)
Definition: commondefs.h:160
Coord3 sowingpivot_
Definition: faultstickseteditor.h:84
Coord ytrans_
Definition: faultstickseteditor.h:75
int sceneidx_
Definition: faultstickseteditor.h:76
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
ObjectEditor to edit EM::FaultStickSet.
Definition: faultstickseteditor.h:28
A cartesian coordinate in 2D space.
Definition: coord.h:25
Definition: geeditor.h:25
Coord xtrans_
Definition: faultstickseteditor.h:74
Fault stick set.
Definition: emfaultstickset.h:100
void setSceneIdx(int idx)
Definition: faultstickseteditor.h:36
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner.
Definition: emeditor.h:47
Interface for classes that select on basis of a key.
Definition: selector.h:25
A cartesian coordinate in 3D space.
Definition: coord.h:72
Index_Type GeomID
Definition: commontypes.h:52
static uiHor3DInterpol * create(uiParent *)
Coord3 scalevector_
Definition: faultstickseteditor.h:73
Base class for all EarthModel objects.
Definition: emobject.h:158
TypeSet< Coord3 > sowinghistory_
Definition: faultstickseteditor.h:85
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:25
Compound key consisting of ints.
Definition: multiid.h:25
static void initClass()
const TypeSet< EM::PosID > * editpids_
Definition: faultstickseteditor.h:82

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