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

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