OpendTect  6.3
visvolorthoslice.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: November 2002
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "visobject.h"
14 #include "position.h"
15 
16 
17 namespace visBase
18 {
19 class DepthTabPlaneDragger;
20 class TextureRectangle;
21 class TextureChannels;
22 
28 {
29 public:
32 
33  void setVolumeDataSize(int xsz,int ysz,int zsz);
34  void setSpaceLimits(const Interval<float>& x,
35  const Interval<float>& y,
36  const Interval<float>& z);
37  void setCenter(const Coord3& newcenter,bool alldims);
38 
39  int getDim() const;
40  void setDim(int);
41 
42  void getSliceInfo(int&,Interval<float>&) const;
43  int getSliceNr(int dim=-1) const; // -1 : curdim_
44  void setSliceNr(int nr,int dim=-1); // -1 : curdim_
45 
46  float getPosition() const;
47 
48  DepthTabPlaneDragger* getDragger() const;
49  void enablePicking(bool);
50  bool isPickingEnabled() const;
51  void removeDragger();
52 
53  NotifierAccess& dragStart();
54  Notifier<OrthogonalSlice> motion;
55  NotifierAccess& dragFinished();
56 
57  void setDisplayTransformation(const mVisTrans*);
58  const mVisTrans* getDisplayTransformation() const;
59 
60  void setTextureChannels(TextureChannels*);
61  TextureChannels* getTextureChannels();
62 
63 protected:
64  ~OrthogonalSlice();
65 
66  void draggerMovementCB(CallBacker*);
67 
70 
71  int xdatasz_, ydatasz_, zdatasz_;
72  int curdim_;
73  int slicenr_[3];
74 
75  static const char* dimstr();
76  static const char* slicestr();
77 };
78 
79 
80 };
81 
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
Definition: vistexturechannels.h:46
Slice that cuts orthogonal through a VolumeData.
Definition: visvolorthoslice.h:27
Interface class for Notifier. See comments there.
Definition: notify.h:20
static OrthogonalSlice * create()
Definition: visvolorthoslice.h:30
Interval of values.
Definition: commontypes.h:27
A TextureRectangle is a Rectangle with a datatexture. The data is set via setData.
Definition: vistexturerect.h:32
Class to help setup a callback handling.
Definition: notify.h:121
3D point or vector
Definition: commontypes.h:57
#define mVisTrans
Definition: visdata.h:25
Definition: visdepthtabplanedragger.h:33
Definition: visannot.h:40
#define mCreateDataObj(clss)
Definition: visdata.h:210
Definition: visobject.h:67

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