14 #include "generalmod.h" 20 class FlatView_CB_Rcvr;
22 namespace ZDomain {
class Def; }
59 virtual AuxData*
clone()
const {
return new AuxData(*
this); }
92 { fillpattern_ = fp; }
99 AuxData(
const char* nm );
100 AuxData(
const AuxData& );
132 int auxPosIdx(
float pos,
float eps)
const;
133 void showAll(
bool yn);
137 Annotation(
bool darkbg);
152 { x1_.showAll(yn); x2_.showAll(yn); }
157 && ( ( x1dir && x1_.showannot_)
158 || (!x1dir && x2_.showannot_)); }
161 && ( ( x1dir && x1_.showgridlines_)
162 || (!x1dir && x2_.showgridlines_)); }
168 static const char* sKeyAxes();
169 static const char* sKeyX1Sampl();
170 static const char* sKeyX2Sampl();
171 static const char* sKeyShwAnnot();
172 static const char* sKeyShwGridLines();
173 static const char* sKeyIsRev();
174 static const char* sKeyShwAux();
210 : lininterp_(false) {}
221 : wigg_(
Color::Black())
222 , refline_(
Color::NoColor())
223 , lowfill_(
Color::NoColor())
224 , highfill_(
Color::Black())
226 , reflinevalue_(
mUdf(float)) {}
246 static const char* sKeyVD();
247 static const char* sKeyWVA();
248 static const char* sKeyShow();
249 static const char* sKeyDispRg();
250 static const char* sKeyColTab();
251 static const char* sKeyFlipSequence();
252 static const char* sKeyLinearInter();
253 static const char* sKeyBlocky();
254 static const char* sKeyAutoScale();
255 static const char* sKeyClipPerc();
256 static const char* sKeyWiggCol();
257 static const char* sKeyRefLineCol();
258 static const char* sKeyLowFillCol();
259 static const char* sKeyHighFillCol();
260 static const char* sKeyOverlap();
261 static const char* sKeySymMidValue();
262 static const char* sKeyRefLineValue();
276 , secondsetaxes_(drkbg)
277 , anglewithset1_(0) {}
291 void setDarkBG(
bool yn);
294 void setGeoDefaults(
bool isvert);
333 {
return const_cast<Viewer*
>(
this)->appearance(); }
336 {
return datatransform_; }
339 {
return datatransform_; }
345 void usePack(
bool wva,::
DataPack::ID,
bool usedefs=
true );
350 { addPack(
id ); usePack( wva,
id, usedefs ); }
351 void clearAllPacks();
353 const FlatDataPack* obtainPack(
bool wva,
bool checkother=
false)
const;
368 bool isVisible(
bool wva)
const;
369 void setVisible(
bool wva,
bool visibility);
373 Coord3 getCoord(
const Point&)
const;
376 Annot=0x0004, Auxdata=0x0008 };
377 virtual void handleChange(
unsigned int datachangetype) = 0;
381 virtual void fillAppearancePar(
IOPar& iop )
const 383 { appearance().
fillPar( iop ); }
387 { appearance().
usePar( iop ); }
389 void storeDefaults(
const char* key)
const;
390 void useStoredDefaults(
const char* key);
392 void getAuxInfo(
const Point&,
IOPar&)
const;
401 virtual AuxData* createAuxData(
const char* nm)
const = 0;
403 virtual int nrAuxData()
const = 0;
404 virtual AuxData* getAuxData(
int idx) = 0;
405 virtual const AuxData* getAuxData(
int idx)
const = 0;
406 virtual void addAuxData(
AuxData* a) = 0;
408 virtual AuxData* removeAuxData(
int idx) = 0;
410 void removeAllAuxData();
415 { needstatusbarupd_ =
true; }
417 { needstatusbarupd_ =
false; }
419 {
return needstatusbarupd_; }
436 void addAuxInfo(
bool,
const Point&,
IOPar&)
const;
#define mExpClass(module)
Definition: commondefs.h:160
bool linestyle_
Definition: flatview.h:48
Color wigg_
Definition: flatview.h:228
ZDomain::Info * zdinfo_
Definition: flatview.h:434
Class that represents non-bitmap data to be displayed in a flatviewer, such as markers, lines and more.
Definition: flatview.h:34
WVA()
Definition: flatview.h:220
bool close_
Definition: flatview.h:89
bool show_
Definition: flatview.h:197
bool haveTitle() const
Definition: flatview.h:153
void show(bool wva, bool vd)
Definition: flatview.h:240
const FlatDataPack * wvapack_
Definition: flatview.h:440
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:26
Appearance * defapp_
Definition: flatview.h:428
FillPattern fillpattern_
Definition: flatview.h:85
bool markerstyle_
Definition: flatview.h:51
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
Color fillcolor_
Definition: flatview.h:84
static ID cNoID()
Definition: datapack.h:64
Annotation data for flatviewers.
Definition: flatview.h:109
#define mStruct(module)
Definition: commondefs.h:165
bool needStatusBarUpdate() const
Definition: flatview.h:418
bool turnon_
Definition: flatview.h:95
BufferString ctab_
Definition: flatview.h:212
const TypeSet< ::DataPack::ID > & availablePacks() const
Definition: flatview.h:365
Wiggle/Variable Area parameters.
Definition: flatview.h:216
bool darkBG() const
Definition: flatview.h:292
virtual int getAnnotChoice(BufferStringSet &) const
Definition: flatview.h:412
Common to VD and WVA.
Definition: flatview.h:192
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
BufferString name_
Definition: flatview.h:65
Annotation secondsetaxes_
Definition: flatview.h:288
bool needstatusbarupd_
Definition: flatview.h:433
void setFillPattern(const FillPattern &fp)
Definition: flatview.h:91
bool fillcolor_
Definition: flatview.h:50
Interval< double > * x1rg_
if 0, use viewer's rg & zoom
Definition: flatview.h:70
EditPermissions * editpermissions_
If null no editing allowed.
Definition: flatview.h:62
WVA wva_
Definition: flatview.h:239
Explains what part of an AuxData's appearance may be edited by the user.
Definition: flatview.h:41
AxisData x1_
Definition: flatview.h:142
BufferString title_
color not settable
Definition: flatview.h:140
bool namepos_
Definition: flatview.h:47
int zvalue_
overlay zvalue ( max=on top )
Definition: flatview.h:86
Definition: uistring.h:89
bool haveAxisAnnot(bool x1dir) const
Definition: flatview.h:155
Set of BufferString objects.
Definition: bufstringset.h:28
DataDispPars ddpars_
Definition: flatview.h:285
int ID
Definition: datapack.h:38
Threads::Lock lock_
Definition: flatview.h:432
Data display parameters.
Definition: flatview.h:187
Color refline_
Definition: flatview.h:229
Flat Viewer using FlatView::Data and FlatView::Appearance.
Definition: flatview.h:324
bool allowuserchangedata_
Definition: flatview.h:200
void setAxesAnnot(bool yn)
Definition: flatview.h:151
Set of pointers to objects.
Definition: commontypes.h:32
bool x1rg_
Definition: flatview.h:53
Manages DataPacks.
Definition: datapack.h:141
FlatView_CB_Rcvr * cbrcvr_
Definition: flatview.h:431
bool x2rg_
Definition: flatview.h:54
float anglewithset1_
Definition: flatview.h:289
TypeSet< ::DataPack::ID > ids_
Definition: flatview.h:427
Definition: vishorizonsectiondef.h:31
Color highfill_
Definition: flatview.h:231
TypeSet< MarkerStyle2D > markerstyles_
Definition: flatview.h:74
const Appearance & appearance() const
Definition: flatview.h:332
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
void setPack(bool wva,::DataPack::ID id, bool usedefs=true)
Definition: flatview.h:349
Variable Density (=color-bar driven) parameters.
Definition: flatview.h:205
Interval< double > * x2rg_
if 0, use viewer's rg & zoom
Definition: flatview.h:71
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
bool hasPack(bool wva) const
Definition: flatview.h:361
VD vd_
Definition: flatview.h:238
DataDispPars()
Definition: flatview.h:236
int namepos_
center=0, after last=1
Definition: flatview.h:67
DataPackMgr & dpm_
Definition: flatview.h:429
bool showscalebar_
Definition: flatview.h:146
VD()
Definition: flatview.h:209
const FlatDataPack * vdpack_
Definition: flatview.h:441
Appearance(bool drkbg=true)
Definition: flatview.h:273
FixedString All()
Definition: keystrs.h:36
MouseCursor cursor_
Definition: flatview.h:87
ColTab::MapperSetup mappersetup_
Definition: flatview.h:201
bool enabled_
Turns on/off everything.
Definition: flatview.h:64
bool hasZAxisTransform() const
Definition: flatview.h:338
Setup class for colortable Mapper.
Definition: coltabmapper.h:35
void disableStatusBarUpdate()
Definition: flatview.h:416
Color color_
For axes.
Definition: flatview.h:141
DataChangeType
Definition: flatview.h:375
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
bool markercolor_
Definition: flatview.h:52
ZAxisTransform * datatransform_
Definition: flatview.h:430
Alignment namealignment_
Definition: flatview.h:66
void enableStatusBarUpdate()
Definition: flatview.h:414
OD::LineStyle linestyle_
Definition: flatview.h:83
A cartesian coordinate in 3D space.
Definition: coord.h:72
Annotation annot_
Definition: flatview.h:284
float reflinevalue_
Definition: flatview.h:233
TypeSet< Pos::GeomID > geom2dids_
Definition: flatview.h:442
virtual void updateProperties(const AuxData &)
Definition: flatview.h:394
ZAxisTransform * getZAxisTransform() const
Definition: flatview.h:335
virtual void fillPar(IOPar &) const
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
bool isEmpty() const
Definition: odstring.h:51
TypeSet< Point > poly_
Definition: flatview.h:73
float overlap_
Definition: flatview.h:232
virtual void setAnnotChoice(int selannot)
Definition: flatview.h:411
bool onoff_
Definition: flatview.h:46
bool allowuserchange_
Definition: flatview.h:199
virtual bool isVertical() const
Definition: flatview.h:367
virtual void usePar(const IOPar &)
bool lininterp_
Definition: flatview.h:213
virtual ~Appearance()
Definition: flatview.h:279
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
bool darkbg_
Definition: flatview.h:298
DataPack for flat data.
Definition: datapackbase.h:64
Flatviewer appearance.
Definition: flatview.h:270
virtual void touch()
Definition: flatview.h:60
bool allowuserchange_
Definition: flatview.h:148
bool haveGridLines(bool x1dir) const
Definition: flatview.h:159
virtual void useAppearancePar(const IOPar &iop)
Definition: flatview.h:386
bool isEmpty(const NLAModel *mdl)
virtual void reGenerate(AuxData &)
Definition: flatview.h:395
Color lowfill_
Definition: flatview.h:230
Definition: bitmap2rgb.h:18
bool allowuserchangereversedaxis_
Definition: flatview.h:149
bool needsupdatelines_
Definition: flatview.h:96
bool showaux_
Definition: flatview.h:145
Definition of z-domain.
Definition: zdomain.h:41
virtual void showAuxDataObjects(AuxData &, bool)
Definition: flatview.h:393
bool editable_
Definition: flatview.h:147
virtual AuxData * clone() const
Definition: flatview.h:59
bool linecolor_
Definition: flatview.h:49
Information of z-domain.
Definition: zdomain.h:91
Geom::PosRectangle< double > Rect
Definition: flatview.h:27
AxisData x2_
Definition: flatview.h:143
bool blocky_
Definition: flatview.h:198