OpendTect  6.3
geeditor.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: A.H. Bril
8  Date: 23-10-1996
9  Contents: Ranges
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "geometrymod.h"
15 #include "geomelement.h"
16 
17 namespace Geometry
18 {
19 
20 class TrackPlane;
21 
22 
24 {
25 public:
26  ElementEditor( Geometry::Element& element );
27  virtual ~ElementEditor();
28 
29  const Element& getElement() const { return element; }
30  Element& getElement() { return element; }
31 
32  virtual void getEditIDs( TypeSet<GeomPosID>& ) const;
33  virtual Coord3 getPosition( GeomPosID ) const;
34  virtual bool setPosition( GeomPosID, const Coord3& );
35 
36  virtual bool mayTranslate1D( GeomPosID ) const;
37  virtual Coord3 translation1DDirection( GeomPosID ) const;
38 
39  virtual bool mayTranslate2D( GeomPosID ) const;
40  virtual Coord3 translation2DNormal( GeomPosID ) const;
41 
42  virtual bool mayTranslate3D( GeomPosID ) const;
43 
44  virtual bool maySetNormal( GeomPosID ) const;
45  virtual Coord3 getNormal( GeomPosID ) const;
46  virtual bool setNormal( GeomPosID, const Coord3& );
47 
48  virtual bool maySetDirection( GeomPosID ) const;
49  virtual Coord3 getDirectionPlaneNormal( GeomPosID ) const;
50  virtual Coord3 getDirection( GeomPosID ) const;
51  virtual bool setDirection( GeomPosID, const Coord3& );
52 
58 protected:
59 
61 };
62 
63 };
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Geometry::Element & element
Definition: geeditor.h:60
Definition: geeditor.h:23
od_int64 GeomPosID
Definition: geomelement.h:19
Class to help setup a callback handling.
Definition: notify.h:121
3D point or vector
Definition: commontypes.h:57
Definition: geomelement.h:35
Notifier< ElementEditor > editpositionchange
Definition: geeditor.h:53
const Element & getElement() const
Definition: geeditor.h:29
Element & getElement()
Definition: geeditor.h:30
Definition: arraytesselator.h:19

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