OpendTect  6.6
visseedpainter.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: Raman Singh
8  Date: December 2020
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 
13 -*/
14 
15 
16 #include "vissurveymod.h"
17 #include "geometry.h"
18 #include "keyenum.h"
19 #include "visobject.h"
20 
21 
22 class TrcKeyZSampling;
23 
24 namespace Pick { class Set; class Location; class SetMgr; }
25 namespace visBase { class PolyLine; };
26 
27 namespace visSurvey
28 {
29 
30 class RandomTrackDisplay;
31 class Seis2DDisplay;
32 
33 #define mCtrlLeftButton ( (OD::ButtonState) (OD::LeftButton+OD::ControlButton) )
34 
36 {
37 
38 public:
41 
42  void setSet(Pick::Set*);
44 
47 
48  bool isActive() const { return active_; }
49  bool activate();
50  void deActivate();
51 
52  static void setDensity(int perc);
53  static int density();
54 
55  static void setRadius(int nrsamps);
56  static int radius();
57 
58 protected:
59 
61  void reset();
62 
63  bool accept(const visBase::EventInfo&);
66 
69  const visBase::EventInfo&);
71  const visBase::EventInfo&);
72 
73  void paintSeeds(const visBase::EventInfo& curev,
74  const visBase::EventInfo& prevev);
76  const visBase::EventInfo& prevev,
77  const TrcKeyZSampling& tkzs,bool isinl);
79  const visBase::EventInfo& prevev,
80  const TrcKeyZSampling& tkzs);
82  const visBase::EventInfo& curev,
83  const visBase::EventInfo& prevev);
85  const visBase::EventInfo& curev,
86  const visBase::EventInfo& prevev);
87 
88  void eraseSeeds(const visBase::EventInfo& curev);
90  const visBase::EventInfo& curev);
92  const visBase::EventInfo& curev);
93 
98 
99  bool active_ = false;
100  bool isleftbutpressed_ = false;
103 
104  static int density_;
105  static int radius_;
107  static void mkCircle();
108 
109 };
110 
111 }; // namespace visSurvey
112 
Pick::Set
Set of picks with something in common.
Definition: pickset.h:34
geometry.h
visSurvey::Seis2DDisplay
Used for displaying a 2D line.
Definition: visseis2ddisplay.h:40
visSurvey::SeedPainter::deActivate
void deActivate()
visBase
Definition: visannot.h:43
visSurvey::SeedPainter::eraseSeedsOn2DLine
void eraseSeedsOn2DLine(const Seis2DDisplay *, const visBase::EventInfo &curev)
Pick
Definition: picklocation.h:21
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
visSurvey::SeedPainter::reset
void reset()
visSurvey::SeedPainter::radius
static int radius()
visBase::EventCatcher
Definition: visevent.h:87
visSurvey::SeedPainter::paintSeedsOn2DLine
void paintSeedsOn2DLine(const Seis2DDisplay *, const visBase::EventInfo &curev, const visBase::EventInfo &prevev)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
visSurvey::SeedPainter::drawLine
void drawLine(const visBase::EventInfo &)
visSurvey::SeedPainter::mkCircle
static void mkCircle()
keyenum.h
visobject.h
visSurvey::SeedPainter::density_
static int density_
Definition: visseedpainter.h:104
visSurvey::SeedPainter::accept
bool accept(const visBase::EventInfo &)
visSurvey::SeedPainter::eventcatcher_
visBase::EventCatcher * eventcatcher_
Definition: visseedpainter.h:94
visSurvey::SeedPainter::activate
bool activate()
visSurvey::SeedPainter::isActive
bool isActive() const
Definition: visseedpainter.h:48
visSurvey::SeedPainter::eraseSeeds
void eraseSeeds(const visBase::EventInfo &curev)
TrcKeyZSampling
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
visSurvey::SeedPainter::transformation_
const mVisTrans * transformation_
Definition: visseedpainter.h:95
visSurvey::SeedPainter::eraseSeedsOnRandLine
void eraseSeedsOnRandLine(const RandomTrackDisplay *, const visBase::EventInfo &curev)
visSurvey::SeedPainter::picksetmgr_
Pick::SetMgr * picksetmgr_
Definition: visseedpainter.h:102
Pick::SetMgr
Utility to manage pick set lifecycles. Also supports change notifications.
Definition: picksetmgr.h:34
visSurvey::SeedPainter::drawLineOn2DLine
void drawLineOn2DLine(const Seis2DDisplay *, const visBase::EventInfo &)
visSurvey::SeedPainter::paintSeedsOnZSlice
void paintSeedsOnZSlice(const visBase::EventInfo &curev, const visBase::EventInfo &prevev, const TrcKeyZSampling &tkzs)
visSurvey::SeedPainter::acceptTablet
bool acceptTablet(const visBase::EventInfo &)
visSurvey::SeedPainter::setEventCatcher
void setEventCatcher(visBase::EventCatcher *)
visBase::EventInfo
Definition: visevent.h:44
visSurvey::SeedPainter::drawLineOnRandLine
void drawLineOnRandLine(const RandomTrackDisplay *, const visBase::EventInfo &)
visSurvey::SeedPainter::SeedPainter
SeedPainter()
visSurvey::SeedPainter::set_
Pick::Set * set_
Definition: visseedpainter.h:101
visSurvey::SeedPainter::paintSeedsOnRandLine
void paintSeedsOnRandLine(const RandomTrackDisplay *, const visBase::EventInfo &curev, const visBase::EventInfo &prevev)
visSurvey::SeedPainter::acceptMouse
bool acceptMouse(const visBase::EventInfo &)
mVisTrans
#define mVisTrans
Definition: visdata.h:28
visSurvey::SeedPainter
Definition: visseedpainter.h:36
visBase::VisualObjectImpl
Definition: visobject.h:72
visSurvey::SeedPainter::radius_
static int radius_
Definition: visseedpainter.h:105
visSurvey::SeedPainter::~SeedPainter
~SeedPainter()
visSurvey::SeedPainter::setSet
void setSet(Pick::Set *)
visSurvey::SeedPainter::setSetMgr
void setSetMgr(Pick::SetMgr *)
visSurvey
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
visSurvey::RandomTrackDisplay
Used for displaying a random or arbitrary line.
Definition: visrandomtrackdisplay.h:53
visSurvey::SeedPainter::density
static int density()
visSurvey::SeedPainter::eventCB
void eventCB(CallBacker *)
visSurvey::SeedPainter::circle_
visBase::PolyLine * circle_
Definition: visseedpainter.h:96
visSurvey::SeedPainter::paintSeeds
void paintSeeds(const visBase::EventInfo &curev, const visBase::EventInfo &prevev)
visBase::PolyLine
Definition: vispolyline.h:36
visSurvey::SeedPainter::circlecoords_
static TypeSet< Geom::PointI > circlecoords_
Definition: visseedpainter.h:106
visSurvey::SeedPainter::setDensity
static void setDensity(int perc)
visSurvey::SeedPainter::setDisplayTransformation
void setDisplayTransformation(const mVisTrans *)
visSurvey::SeedPainter::paintSeedsOnInlCrl
void paintSeedsOnInlCrl(const visBase::EventInfo &curev, const visBase::EventInfo &prevev, const TrcKeyZSampling &tkzs, bool isinl)
visSurvey::SeedPainter::setRadius
static void setRadius(int nrsamps)
TypeSet
Sets of (small) copyable elements.
Definition: commontypes.h:29
visSurvey::SeedPainter::prevev_
visBase::EventInfo * prevev_
Definition: visseedpainter.h:97

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