OpendTect  6.3
faultstickseteditor.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: J.C. Glas
8  Date: October 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "mpeenginemod.h"
14 #include "emeditor.h"
15 
16 namespace EM { class FaultStickSet; }
17 template <class T> class Selector;
18 
19 namespace MPE
20 {
21 
27 {
28 public:
30 
31  static ObjectEditor* create(EM::EMObject&);
32  static void initClass();
33 
34  void setSceneIdx(int idx) { sceneidx_ = idx; }
35 
36  void setEditIDs(const TypeSet<EM::PosID>* editpids);
37  void getEditIDs(TypeSet<EM::PosID>&) const;
38 
39  void setLastClicked(const EM::PosID&);
40  void setSowingPivot(const Coord3);
41 
42  void setZScale(float);
43  void setScaleVector(const Coord3& v);
45 
46  void getInteractionInfo( EM::PosID& insertpid,
47  const DBKey* pickeddbkey,
48  const char* pickednm,
49  Pos::GeomID pickedgeomid,const Coord3& pos,
50  const Coord3* posnorm=0) const;
51 
52  bool removeSelection(const Selector<Coord3>&);
53  const EM::PosID getNearestStick(const Coord3& pos,
54  Pos::GeomID pickedgeomid,
55  const Coord3* normal) const;
56 protected:
57  float distToStick(int sticknr,const EM::SectionID& sid,
58  const DBKey* pickeddbkey,
59  const char* pickednm,
60  Pos::GeomID pickedgeomid,const Coord3& pos,
61  const Coord3* posnorm) const;
62  bool getNearestStick(int& sticknr,EM::SectionID& sid,
63  const DBKey* pickeddbkey,
64  const char* pickednm,
65  Pos::GeomID pickedgeomid,const Coord3& pos,
66  const Coord3* posnorm) const;
67  void getPidsOnStick(EM::PosID& insertpid,int sticknr,
68  const EM::SectionID&,const Coord3& pos) const;
69 
70  Geometry::ElementEditor* createEditor(const EM::SectionID&);
74  int sceneidx_;
75 
76  int getLastClickedStick() const;
77 
78  void cloneMovingNode(CallBacker*);
79 
81 
84 
85 };
86 
87 } // namespace MPE
od_int16 SectionID
Definition: emposid.h:23
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Coord3 sowingpivot_
Definition: faultstickseteditor.h:82
Coord ytrans_
Definition: faultstickseteditor.h:73
int sceneidx_
Definition: faultstickseteditor.h:74
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
ObjectEditor to edit EM::FaultStickSet.
Definition: faultstickseteditor.h:26
Definition: geeditor.h:23
3D point or vector
Definition: commontypes.h:57
Coord xtrans_
Definition: faultstickseteditor.h:72
Fault stick set.
Definition: emfaultstickset.h:98
void setSceneIdx(int idx)
Definition: faultstickseteditor.h:34
Abstraction of EM Object editing. It gives lists of which nodes that may be moved, and in what manner.
Definition: emeditor.h:44
Interface for classes that select on basis of a key.
Definition: selector.h:23
Index_Type GeomID
Definition: commontypes.h:48
static uiHor3DInterpol * create(uiParent *)
Coord3 scalevector_
Definition: faultstickseteditor.h:71
Base class for all EarthModel objects.
Definition: emobject.h:117
TypeSet< Coord3 > sowinghistory_
Definition: faultstickseteditor.h:83
Earth Model objects like horizons, faults, fault-sticks and bodies.
Definition: embody.h:23
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
2D point or vector class.
Definition: commontypes.h:58
static void initClass()
const TypeSet< EM::PosID > * editpids_
Definition: faultstickseteditor.h:80

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