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

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