OpendTect-6_4  6.4
vispseventdisplay.h
Go to the documentation of this file.
1 #ifndef vispseventdisplay_h
2 #define vispseventdisplay_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: April 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "vissurveymod.h"
16 #include "vissurvobj.h"
17 
18 #include "draw.h"
19 #include "visobject.h"
20 #include "coltabmapper.h"
21 #include "coltabsequence.h"
22 
23 namespace visBase
24 {
25  class PolyLine3D;
26  class DrawStyle;
27  class DataObjectGroup;
28 };
29 
30 namespace PreStack { class EventManager; class EventSet; }
31 
32 namespace visSurvey
33 {
34 
36  public SurveyObject
37 {
38 public:
42  "PSEventDisplay",
43  ::toUiString(sFactoryKeyword()) );
44 
45  bool isInlCrl() const { return true; }
46 
47  void setEventManager(PreStack::EventManager*);
48  void setHorizonID(int);
49 
50  enum MarkerColor { Single, Quality, Velocity, VelocityFit };
52 
53  void setMarkerColor(MarkerColor,bool update=true);
54  MarkerColor getMarkerColor() const;
55  void setColTabMapper(const ColTab::MapperSetup&,
56  bool update=true);
57  const ColTab::MapperSetup& getColTabMapper() const;
58  void setColTabSequence(const ColTab::Sequence&,
59  bool update=true);
60  virtual const ColTab::Sequence* getColTabSequence(int ch=0) const;
61  virtual void setColTabSequence(int,const ColTab::Sequence&,
62  TaskRunner*);
63  virtual bool canSetColTabSequence() const { return true; }
64  virtual int nrAttribs() const { return 1; }
65  virtual const ColTab::MapperSetup* getColTabMapperSetup(int,int) const;
66  virtual void setPixelDensity(float);
67 
68  enum DisplayMode { ZeroOffset, FullOnSections,
69  ZeroOffsetOnSections, FullOnGathers };
71  void setDisplayMode(DisplayMode);
72  DisplayMode getDisplayMode() const;
73 
74  void setLineStyle(const OD::LineStyle&);
75  OD::LineStyle getLineStyle() const;
76 
77  void setMarkerStyle(const MarkerStyle3D&,bool updat);
78  virtual bool hasColor() const { return true; }
79  virtual Color getColor() const;
80  const char** markerColorNames()const;
81  const char** displayModeNames()const;
82  bool hasParents() const;
83  bool supportsDisplay() const;
84 
85 
86 protected:
87  void clearAll();
88  ~PSEventDisplay();
89  void otherObjectsMoved( const ObjectSet<
90  const SurveyObject>&, int whichobj );
91 
92  void setDisplayTransformation(const mVisTrans*);
93  const mVisTrans* getDisplayTransformation() const;
94 
95  //bool filterBinID(const BinID&) const;
100  //visBase::PickStyle* pickstyle_;
101  void eventChangeCB(CallBacker*);
102  void eventForceReloadCB(CallBacker*);
103 
104 
105  //TypeSet<TrcKeySampling> sectionranges_;
107  {
112 
116 
117  const int parentid_;
118  };
119 
120  void updateDisplay();
121  void updateDisplay(ParentAttachedObject*);
122  void clearDisplay(ParentAttachedObject*);
123  void retriveParents();
124  float getMoveoutComp(const TypeSet<float>&,
125  const TypeSet<float>&) const;
126 
130 
132 
134  int horid_;
137 
144 };
145 
146 } // namespace visSurvey
147 
148 #endif
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float offsetscale_
Definition: vispseventdisplay.h:136
const mVisTrans * displaytransform_
Definition: vispseventdisplay.h:128
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
Export_Basic uiString toUiString(ViewStyle)
Maps from [0,1] -> Color.
Definition: coltabsequence.h:37
Definition: visdatagroup.h:27
Definition: draw.h:118
visBase::MarkerSet * markerset_
Definition: vispseventdisplay.h:113
Definition: visdrawstyle.h:33
Definition: synthseis.h:36
Definition: vispseventdisplay.h:69
int horid_
Definition: vispseventdisplay.h:134
#define mDefaultFactoryInstantiation(baseclss, clss, keywrd, usernm)
Definition: factory.h:289
Definition: vispseventdisplay.h:35
MarkerColor
Definition: vispseventdisplay.h:50
PreStack::EventManager * eventman_
Definition: vispseventdisplay.h:133
DisplayMode displaymode_
Definition: vispseventdisplay.h:131
Maps data values to colortable positions: [0,1].
Definition: coltabmapper.h:84
Used for displaying a polyline, preview for a random line created throught well path.
Definition: visarrowdisplay.h:20
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
ColTab::Mapper ctabmapper_
Definition: vispseventdisplay.h:139
ObjectSet< PreStack::EventSet > eventsets_
Definition: vispseventdisplay.h:114
Threads::Lock lock_
Definition: vispseventdisplay.h:143
Set of pointers to objects.
Definition: commontypes.h:32
TrcKeySampling tks_
Definition: vispseventdisplay.h:115
ObjectSet< ParentAttachedObject > parentattached_
Definition: vispseventdisplay.h:129
VisualObjectImpl
Definition: visobject.h:128
Class that can execute a task.
Definition: task.h:169
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
virtual int nrAttribs() const
Definition: vispseventdisplay.h:64
#define mVisTrans
Definition: visdata.h:31
Interval< float > qualityrange_
Definition: vispseventdisplay.h:135
visBase::DrawStyle * linestyle_
Definition: vispseventdisplay.h:127
bool isInlCrl() const
Definition: vispseventdisplay.h:45
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
Definition: vispseventdisplay.h:68
Definition: vispseventdisplay.h:106
visBase::PolyLine3D * lines_
Definition: vispseventdisplay.h:111
Definition: draw.h:88
DisplayMode
Definition: vispseventdisplay.h:68
virtual bool hasColor() const
Definition: vispseventdisplay.h:78
ColTab::Sequence ctabsequence_
Definition: vispseventdisplay.h:140
Definition: visannot.h:43
Base class for all &#39;Display&#39; objects.
Definition: vissurvobj.h:58
virtual bool canSetColTabSequence() const
Definition: vispseventdisplay.h:63
visBase::DataObjectGroup * objectgroup_
Definition: vispseventdisplay.h:110
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
const int parentid_
Definition: vispseventdisplay.h:117
visBase::MarkerSet * eventmarkerset_
Definition: vispseventdisplay.h:142
Definition: vispolyline.h:64
MarkerSet is a set of basic pickmarker with a constant size on screen. Size and shape are settable...
Definition: vismarkerset.h:36
MarkerStyle3D markerstyle_
Definition: vispseventdisplay.h:141
MarkerColor markercolor_
Definition: vispseventdisplay.h:138
A EventManager is a set of EventsSet on multiple PreStack gathers, and are identified under the same ...
Definition: prestackevents.h:102

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