OpendTect
6.3
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
master_od_source
include
visBase
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
27
mExpClass
(
visBase
)
OrthogonalSlice
: public
visBase
::
VisualObjectImpl
28
{
29
public
:
30
static
OrthogonalSlice
*
create
()
31
mCreateDataObj
(
OrthogonalSlice
);
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
68
DepthTabPlaneDragger
* dragger_;
69
TextureRectangle
* slice_;
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
mExpClass
#define mExpClass(module)
Definition:
commondefs.h:157
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition:
callback.h:182
visBase::TextureChannels
Definition:
vistexturechannels.h:46
visBase::OrthogonalSlice
Slice that cuts orthogonal through a VolumeData.
Definition:
visvolorthoslice.h:27
NotifierAccess
Interface class for Notifier. See comments there.
Definition:
notify.h:20
visBase::OrthogonalSlice::create
static OrthogonalSlice * create()
Definition:
visvolorthoslice.h:30
Interval
Interval of values.
Definition:
commontypes.h:27
visBase::TextureRectangle
A TextureRectangle is a Rectangle with a datatexture. The data is set via setData.
Definition:
vistexturerect.h:32
Notifier
Class to help setup a callback handling.
Definition:
notify.h:121
Geom::Point3D
3D point or vector
Definition:
commontypes.h:57
mVisTrans
#define mVisTrans
Definition:
visdata.h:25
visobject.h
visBase::DepthTabPlaneDragger
Definition:
visdepthtabplanedragger.h:33
visBase
Definition:
visannot.h:40
position.h
mCreateDataObj
#define mCreateDataObj(clss)
Definition:
visdata.h:210
visBase::VisualObjectImpl
Definition:
visobject.h:67
Generated at for the
OpendTect
seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017