OpendTect-6_4  6.4
visflatviewer.h
Go to the documentation of this file.
1 #ifndef visflatviewer_h
2 #define visflatviewer_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Yuancheng Liu
9  Date: 5-11-2007
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "visbasemod.h"
16 #include "flatview.h"
17 #include "visobject.h"
18 
19 namespace visBase
20 {
21 
22 class PolyLine;
23 class TextureChannels;
24 class ColTabTextureChannel2RGBA;
25 class TextureRectangle;
26 
30 {
31 public:
32  static FlatViewer* create()
34 
35  Notifier<FlatViewer> dataChanged;
36  Notifier<FlatViewer> dispParsChanged;
37  void handleChange(unsigned int);
38  void setPosition(const Coord3& c00,
39  const Coord3& c01,
40  const Coord3& c10,
41  const Coord3& c11);
42  void turnOnGridLines(bool offsetlines,bool zlines);
43  void allowShading(bool yn);
44  void replaceChannels(TextureChannels*);
47  Interval<float> getDataRange(bool iswva) const;
48  const SamplingData<float> getDefaultGridSampling(bool x1) const;
49 
50  int nrResolutions() const { return 3; }
51  void setResolution(int res);
52  int getResolution() const { return resolution_; }
53  BufferString getResolutionName(int) const;
54 
55  FlatView::AuxData* createAuxData(const char* nm) const { return 0;}
56 
57  int nrAuxData() const { return 0; }
58  FlatView::AuxData* getAuxData(int idx) { return 0; }
59  const FlatView::AuxData* getAuxData(int idx) const { return 0; }
62  FlatView::AuxData* removeAuxData(int idx) { return 0; }
63  void setDisplayTransformation(const mVisTrans*);
64  virtual void setPixelDensity(float);
65 
66 
67 protected:
68  ~FlatViewer();
69 
70  void updateGridLines(bool x1);
77 
79  Coord3 c00_, c01_, c10_, c11_;
80 };
81 
82 }; // Namespace
83 
84 
85 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Class that represents non-bitmap data to be displayed in a flatviewer, such as markers, lines and more.
Definition: flatview.h:34
RefMan< TextureRectangle > rectangle_
Definition: visflatviewer.h:73
Definition: vistexturechannels.h:50
int resolution_
Definition: visflatviewer.h:78
void addAuxData(FlatView::AuxData *a)
Definition: visflatviewer.h:60
const FlatView::AuxData * getAuxData(int idx) const
Definition: visflatviewer.h:59
PolyLine * x2gridlines_
Definition: visflatviewer.h:75
TextureChannels * channels_
Definition: visflatviewer.h:71
static FlatViewer * create()
Definition: visflatviewer.h:32
Interval of values.
Definition: commontypes.h:31
Definition: callback.h:254
ColTabTextureChannel2RGBA * channel2rgba_
Definition: visflatviewer.h:72
FlatView::AuxData * removeAuxData(int idx)
Definition: visflatviewer.h:62
Definition: vistexturechannel2rgba.h:99
int nrAuxData() const
Definition: visflatviewer.h:57
Material * gridlinematerial_
Definition: visflatviewer.h:76
#define mVisTrans
Definition: visdata.h:31
Definition: vispolyline.h:36
Definition: vismaterial.h:37
FlatView::AuxData * getAuxData(int idx)
Definition: visflatviewer.h:58
FlatView::AuxData * removeAuxData(FlatView::AuxData *a)
Definition: visflatviewer.h:61
A cartesian coordinate in 3D space.
Definition: coord.h:72
FlatView::AuxData * createAuxData(const char *nm) const
Definition: visflatviewer.h:55
Definition: visannot.h:43
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: visflatviewer.h:29
int getResolution() const
Definition: visflatviewer.h:52
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
PolyLine * x1gridlines_
Definition: visflatviewer.h:74
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72
Definition: bitmap2rgb.h:18
Definition: ptrman.h:168
Coord3 c11_
Definition: visflatviewer.h:79

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