1 #ifndef uiwelldahdisplay_h 2 #define uiwelldahdisplay_h 15 #include "uiwellmod.h" 27 namespace Well {
class DahObj;
class Marker;
class D2TModel; }
35 #define mDefZPos(zpos)\ 36 if ( zdata_.zistime_ && zdata_.d2T() && track() )\ 37 zpos = d2T()->getTime( zpos, *track() )*SI().zDomain().userFactor();\ 38 else if ( !zdata_.zistime_ && track() )\ 39 zpos = track() ? (float) zdata_.track()->getPos( zpos ).z : 0; 41 #define mDefZPosInLoop(val) \ 44 if( !zdata_.zistime_ && SI().depthsInFeet() ) \ 45 fac = mToFeetFactorF; \ 46 if ( zdata_.zistime_ && zdata_.d2T() && track() )\ 47 zpos = d2T()->getTime( zpos, *track() )*SI().zDomain().userFactor();\ 48 else if ( !zdata_.zistime_ && track() )\ 49 zpos = track() ? (float) zdata_.track()->getPos( zpos ).z*fac : 0; \ 50 if ( !ld1_->yax_.range().includes( zpos, true ) )\ 69 , samexaxisrange_(
false)
70 , symetricalxaxis_(
false)
71 , drawcurvenames_(
false)
72 , xannotinpercents_(
false)
93 virtual ~DahObjData() {
delete xaxprcts_; }
97 bool hasData()
const {
return dahobj_; }
114 virtual void getInfoForDah(
float dah,
BufferString&)
const;
132 , zistime_(
SI().zIsTime())
133 , dispzinft_(
SI().depthsInFeet())
135 {
if ( wd_ ) wd_->ref(); }
137 {
if ( wd_ ) wd_->unRef(); }
145 zistime_ = d.zistime_;
146 dispzinft_ = d.dispzinft_;
155 const Well::MarkerSet* mrks()
const {
return wd_ ? &wd_->markers() : 0;}
166 : dah_(dah), color_(c), val_(
mUdf(
float)) {}
169 {
return mIsEqual(pd.dah_,dah_,1e-4); }
#define mExpClass(module)
Definition: commondefs.h:160
Set of Markers.
Definition: wellmarker.h:76
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
FixedString Setup()
Definition: keystrs.h:116
Depth to time model.
Definition: welld2tmodel.h:34
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
void setZRange(Interval< float > zrg)
Definition: uiwelldahdisplay.h:179
#define mStruct(module)
Definition: commondefs.h:165
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
void reDraw()
Definition: uiwelldahdisplay.h:186
Definition: uigraphicsitemimpl.h:192
Handles an axis on a plot.
Definition: uiaxishandler.h:51
const Well::Track * track() const
Definition: uiwelldahdisplay.h:217
virtual void gatherDataInfo(bool)
Definition: uiwelldisplaycontrol.h:25
Definition: uiparent.h:26
Data zdata_
Definition: uiwelldahdisplay.h:195
void reDrawAnnots()
Definition: uiwelldahdisplay.h:187
MarkerDraw * getMarkerDraw(const Well::Marker &)
#define mIsEqual(x, y, eps)
Definition: commondefs.h:54
DahObjData & dahObjData(bool first)
Definition: uiwelldahdisplay.h:189
void setData(const Data &data)
TypeSet< PickData > zpicks_
Definition: uiwelldahdisplay.h:197
const Well::MarkerSet * markers() const
Definition: uiwelldahdisplay.h:218
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Well display.
Definition: uiwelldisplay.h:35
FixedString Color()
Definition: keystrs.h:46
const Well::D2TModel * d2T() const
Definition: uiwelldahdisplay.h:216
Definition: directionalsurvey.h:19
Well track.
Definition: welltrack.h:29
virtual void gatherInfo()
Depth/Distance along hole object.
Definition: welldahobj.h:28
TypeSet< PickData > & zPicks()
Definition: uiwelldahdisplay.h:183
Well depth/distance along hole display.
Definition: uiwelldahdisplay.h:57
Well::DisplayProperties::Markers & markerDisp()
Definition: uiwelldahdisplay.h:184
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
uiGraphicsItemSet zpickitms_
Definition: uiwelldahdisplay.h:198
void reSized(CallBacker *)
Definition: uigraphicsitemimpl.h:214
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Setup setup_
Definition: uiwelldahdisplay.h:196
virtual void drawCurve(bool)
Definition: uigraphicsitem.h:142
Marker, should be attached to Strat level.
Definition: wellmarker.h:35
Definition: uigraphicsview.h:51
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Definition: uigraphicsitemimpl.h:273
Well::DisplayProperties::Markers mrkdisp_
Definition: uiwelldahdisplay.h:214
DahObjData * ld2_
Definition: uiwelldahdisplay.h:194
The holder of all data concerning a certain well.
Definition: welldata.h:113
ObjectSet< MarkerDraw > markerdraws_
Definition: uiwelldahdisplay.h:211
DahObjData * ld1_
Definition: uiwelldahdisplay.h:193
Definition: uigraphicsitemimpl.h:110
static Color NoColor()
Definition: color.h:75
Definition: uigraphicsscene.h:39
const Data & zData()
Definition: uiwelldahdisplay.h:182