OpendTect  6.6
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  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "geometrymod.h"
16 #include "geomelement.h"
17 
18 namespace Geometry
19 {
20 
21 class TrackPlane;
22 
23 
25 {
26 public:
28  virtual ~ElementEditor();
29 
30  const Element& getElement() const { return element; }
31  Element& getElement() { return element; }
32 
33  virtual void getEditIDs( TypeSet<GeomPosID>& ) const;
34  virtual Coord3 getPosition( GeomPosID ) const;
35  virtual bool setPosition( GeomPosID, const Coord3& );
36 
37  virtual bool mayTranslate1D( GeomPosID ) const;
39 
40  virtual bool mayTranslate2D( GeomPosID ) const;
42 
43  virtual bool mayTranslate3D( GeomPosID ) const;
44 
45  virtual bool maySetNormal( GeomPosID ) const;
46  virtual Coord3 getNormal( GeomPosID ) const;
47  virtual bool setNormal( GeomPosID, const Coord3& );
48 
49  virtual bool maySetDirection( GeomPosID ) const;
51  virtual Coord3 getDirection( GeomPosID ) const;
52  virtual bool setDirection( GeomPosID, const Coord3& );
53 
59 protected:
60 
62 };
63 
64 };
65 
Coord3
A cartesian coordinate in 3D space.
Definition: coord.h:72
geomelement.h
Geometry::ElementEditor::ElementEditor
ElementEditor(Geometry::Element &element)
Geometry::ElementEditor::getEditIDs
virtual void getEditIDs(TypeSet< GeomPosID > &) const
Geometry::ElementEditor::mayTranslate1D
virtual bool mayTranslate1D(GeomPosID) const
Geometry::ElementEditor::maySetDirection
virtual bool maySetDirection(GeomPosID) const
Geometry::ElementEditor::getDirectionPlaneNormal
virtual Coord3 getDirectionPlaneNormal(GeomPosID) const
Geometry
Definition: arraytesselator.h:21
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
Geometry::Element
Definition: geomelement.h:37
Geometry::ElementEditor
Definition: geeditor.h:25
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
Geometry::ElementEditor::~ElementEditor
virtual ~ElementEditor()
Geometry::ElementEditor::getElement
const Element & getElement() const
Definition: geeditor.h:30
Geometry::ElementEditor::getPosition
virtual Coord3 getPosition(GeomPosID) const
Geometry::ElementEditor::translation1DDirection
virtual Coord3 translation1DDirection(GeomPosID) const
Geometry::ElementEditor::mayTranslate3D
virtual bool mayTranslate3D(GeomPosID) const
Geometry::ElementEditor::setPosition
virtual bool setPosition(GeomPosID, const Coord3 &)
Geometry::ElementEditor::editpositionchange
Notifier< ElementEditor > editpositionchange
Definition: geeditor.h:54
Geometry::ElementEditor::getElement
Element & getElement()
Definition: geeditor.h:31
Geometry::ElementEditor::setNormal
virtual bool setNormal(GeomPosID, const Coord3 &)
Geometry::ElementEditor::element
Geometry::Element & element
Definition: geeditor.h:61
Notifier
Class to help setup a callback handling.
Definition: notify.h:126
Geometry::ElementEditor::mayTranslate2D
virtual bool mayTranslate2D(GeomPosID) const
Geometry::ElementEditor::translation2DNormal
virtual Coord3 translation2DNormal(GeomPosID) const
Geometry::ElementEditor::getDirection
virtual Coord3 getDirection(GeomPosID) const
Geometry::ElementEditor::maySetNormal
virtual bool maySetNormal(GeomPosID) const
GeomPosID
od_int64 GeomPosID
Definition: geomelement.h:20
Geometry::ElementEditor::getNormal
virtual Coord3 getNormal(GeomPosID) const
Geometry::ElementEditor::setDirection
virtual bool setDirection(GeomPosID, const Coord3 &)
TypeSet< GeomPosID >

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