OpendTect-6_4  6.4
visvolorthoslice.h
Go to the documentation of this file.
1 #ifndef visvolorthoslice_h
2 #define visvolorthoslice_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: K. Tingdahl
9  Date: November 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "visbasemod.h"
16 #include "visobject.h"
17 #include "position.h"
18 
19 
20 namespace visBase
21 {
22 class DepthTabPlaneDragger;
23 class TextureRectangle;
24 class TextureChannels;
25 
31 {
32 public:
35 
36  void setVolumeDataSize(int xsz,int ysz,int zsz);
37  void setSpaceLimits(const Interval<float>& x,
38  const Interval<float>& y,
39  const Interval<float>& z);
40  void setCenter(const Coord3& newcenter,bool alldims);
41 
42  int getDim() const;
43  void setDim(int);
44 
45  void getSliceInfo(int&,Interval<float>&) const;
46  int getSliceNr(int dim=-1) const; // -1 : curdim_
47  void setSliceNr(int nr,int dim=-1); // -1 : curdim_
48 
49  float getPosition() const;
50 
51  DepthTabPlaneDragger* getDragger() const;
52  void enablePicking(bool);
53  bool isPickingEnabled() const;
54  void removeDragger();
55 
56  NotifierAccess& dragStart();
57  Notifier<OrthogonalSlice> motion;
58  NotifierAccess& dragFinished();
59 
60  void setDisplayTransformation(const mVisTrans*);
61  const mVisTrans* getDisplayTransformation() const;
62 
63  void setTextureChannels(TextureChannels*);
64  TextureChannels* getTextureChannels();
65 
66 protected:
67  ~OrthogonalSlice();
68 
69  void draggerMovementCB(CallBacker*);
70 
73 
74  int xdatasz_, ydatasz_, zdatasz_;
75  int curdim_;
76  int slicenr_[3];
77 
78  static const char* dimstr();
79  static const char* slicestr();
80 };
81 
82 
83 };
84 
85 #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
Definition: vistexturechannels.h:50
Slice that cuts orthogonal through a VolumeData.
Definition: visvolorthoslice.h:30
Interface class for Notifier. See comments there.
Definition: callback.h:161
static OrthogonalSlice * create()
Definition: visvolorthoslice.h:33
Interval of values.
Definition: commontypes.h:31
A TextureRectangle is a Rectangle with a datatexture. The data is set via setData.
Definition: vistexturerect.h:35
Definition: callback.h:254
#define mVisTrans
Definition: visdata.h:31
Definition: visdepthtabplanedragger.h:36
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visannot.h:43
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72

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