Isis 3.0 Object Programmers' Reference
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
MdiCubeViewport.h
Go to the documentation of this file.
1
#ifndef MdiCubeViewport_h
2
#define MdiCubeViewport_h
3
26
#include "
CubeViewport.h
"
27
28
#include <QMetaType>
29
30
31
class
QPaintEvent;
32
template
<
class
T >
class
QList
;
33
34
namespace
Isis {
35
class
Cube;
36
class
Tool;
37
class
ViewportBuffer;
38
53
class
MdiCubeViewport
:
public
CubeViewport
{
54
Q_OBJECT
55
56
public
:
57
MdiCubeViewport
(
Cube
*
cube
,
Isis::CubeDataThread
* cdt = 0,
58
QWidget
*parent = 0);
59
~
MdiCubeViewport
();
60
61
void
forceAbstract() {}
62
64
bool
isLinked
()
const
{
65
return
p_linked;
66
};
67
68
void
registerTool
(
Tool
*tool);
69
void
paintEvent
(QPaintEvent *e);
70
void
restretch
(
ViewportBuffer
*buffer);
71
72
73
signals:
74
void
linkChanging(
bool
);
75
void
requestRestretch(
MdiCubeViewport
*,
int
);
76
77
78
public
slots:
79
void
setLinked
(
bool
b);
80
void
viewGray(
int
band);
81
void
viewRGB(
int
red,
int
green,
int
blue);
82
83
84
private
:
85
bool
p_linked;
86
QList<Tool *>
p_toolList;
87
88
};
89
}
90
91
Q_DECLARE_METATYPE
(
Isis::MdiCubeViewport
*);
92
93
#endif