casa
5.7.0-16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
casa
code
display3d
3DViewer
3DController.qo.h
Go to the documentation of this file.
1
2
#ifndef GLWIDGET_H
3
#define GLWIDGET_H
4
5
#include <
graphics/X11/X_enter.h
>
6
#include <QGLWidget>
7
#include <QVector>
8
#include <QAction>
9
#include <QMenu>
10
#include <
graphics/X11/X_exit.h
>
11
12
#include <
display3d/3DViewer/3DDisplayData.qo.h
>
13
#include <
display/Display/Colormap.h
>
14
#include <
display3d/3DViewer/3DPoint.h
>
15
16
namespace
casa {
17
18
class
GLWidget
:
public
QGLWidget
19
{
20
Q_OBJECT
21
22
public
:
23
GLWidget
(QWidget *parent = 0);
24
~GLWidget
();
25
26
QSize
minimumSizeHint
()
const
;
27
QSize
sizeHint
()
const
;
28
29
void
setDD
(
char
*,
int
&
pol
);
30
void
getCubeSize
(
int
&,
int
&,
int
&);
31
void
getMinMax
(
float
&,
float
&);
32
float
getBound
();
33
34
public
slots:
35
void
setXRotation
(
int
angle);
36
void
setYRotation
(
int
angle);
37
void
setZRotation
(
int
angle);
38
39
void
setZNear
(
int
angle);
40
void
setZDepth
(
int
angle);
41
void
setTrans
(
int
angle);
42
43
void
setColormap
(
const
QString&);
44
45
void
updatePosition
();
46
47
void
setFrame
(
bool
);
48
void
setFog
(
int
);
49
void
setLight
(
int
);
50
51
void
setNumColors
(
int
);
52
void
setPol
(
const
QString&,
int
);
53
54
void
setBG
(
const
QString&);
55
void
setZoom
(
int
);
56
57
void
showHelp
();
58
59
signals:
60
void
xRotationChanged
(
int
angle);
61
void
yRotationChanged
(
int
angle);
62
void
zRotationChanged
(
int
angle);
63
64
void
zNearChanged
(
int
angle);
65
void
zDepthChanged
(
int
angle);
66
void
transChanged
(
int
angle);
67
68
void
resetZNear
(
double
,
double
,
double
);
69
void
resetZDepth
(
double
,
double
,
double
);
70
71
void
colorChanged
(
int
,
float
,
float
,
const
QString&);
72
73
protected
:
74
void
initializeGL
();
75
void
paintGL
();
76
void
resizeGL
(
int
width,
int
height);
77
void
mousePressEvent
(QMouseEvent *event);
78
void
mouseMoveEvent
(QMouseEvent *event);
79
void
mouseDoubleClickEvent
(QMouseEvent *event);
80
81
private
:
82
83
DisplayData3
*
dd3
;
84
casacore::Cube<float>
data
;
85
QVector<DisplayPoint3>
pList
;
86
//Colormap* cmap;
87
88
casacore::Vector<float>
rMap
;
89
casacore::Vector<float>
gMap
;
90
casacore::Vector<float>
bMap
;
91
int
numColors
;
92
QString
cmapname
;
93
94
void
normalizeAngle
(
int
*angle);
95
void
setColorTable
(
const
QString& cmap =
""
);
96
97
GLuint
makeObject
(
bool
transChanged =
true
);
98
GLuint
makeObject2
();
99
GLuint
object
;
100
GLuint
box
;
101
102
void
calcLinearMaps
(
casacore::uInt
numColors
,
casacore::Vector<float>
& r,
103
casacore::Vector<float>
& g,
casacore::Vector<float>
& b);
104
105
void
getLinearColor
(
float
& r,
float
& g,
float
& b,
float
v,
106
float
min
= 0.,
float
max
= 1.);
107
void
getTableColor
(
float
& r,
float
& g,
float
& b,
float
v,
108
float
min
= 0.,
float
max
= 1.);
109
GLfloat
cx
;
110
GLfloat
cy
;
111
GLfloat
cz
;
112
GLfloat
cd
;
113
int
pol
;
114
115
GLfloat
thresh
;
116
117
int
near
;
118
int
depth
;
119
int
trans
;
120
121
int
xRot
;
122
int
yRot
;
123
int
zRot
;
124
QPoint
lastPos
;
125
126
bool
frameOn
;
127
int
zoom
;
128
QColor
bg
;
129
130
GLuint
filter
;
131
132
static
const
GLuint
fogMode
[3];
133
static
const
GLfloat
fogColor
[4];
134
135
GLuint
light
;
136
137
QString
tips
;
138
139
QMenu*
menu
;
140
QAction*
helpAct
;
141
QAction*
profileAct
;
142
QAction*
momentAct
;
143
144
};
145
146
}
147
#endif
casacore::Vector< float >
casa::GLWidget::setZoom
void setZoom(int)
casa::GLWidget::setLight
void setLight(int)
casa::GLWidget::setFog
void setFog(int)
casa::GLWidget::cy
GLfloat cy
Definition:
3DController.qo.h:110
casa::GLWidget::getCubeSize
void getCubeSize(int &, int &, int &)
casa::GLWidget::cx
GLfloat cx
Definition:
3DController.qo.h:109
casa::GLWidget::setTrans
void setTrans(int angle)
casa::GLWidget::paintGL
void paintGL()
casa::GLWidget::dd3
DisplayData3 * dd3
Definition:
3DController.qo.h:83
casa::GLWidget::object
GLuint object
Definition:
3DController.qo.h:99
Colormap.h
casa::GLWidget::data
casacore::Cube< float > data
Definition:
3DController.qo.h:84
max
#define max(a, b)
Definition:
hio.h:44
casa::GLWidget::cd
GLfloat cd
Definition:
3DController.qo.h:112
casa::GLWidget::GLWidget
GLWidget(QWidget *parent=0)
casa::GLWidget::makeObject2
GLuint makeObject2()
min
#define min(a, b)
Definition:
hio.h:45
casa::GLWidget::menu
QMenu * menu
Definition:
3DController.qo.h:139
casa::GLWidget::colorChanged
void colorChanged(int, float, float, const QString &)
casa::GLWidget::pol
int pol
Definition:
3DController.qo.h:113
casa::GLWidget::helpAct
QAction * helpAct
Definition:
3DController.qo.h:140
casa::GLWidget::xRot
int xRot
Definition:
3DController.qo.h:121
casa::GLWidget::fogMode
static const GLuint fogMode[3]
Definition:
3DController.qo.h:132
casa::GLWidget::setColorTable
void setColorTable(const QString &cmap="")
casa::GLWidget::setXRotation
void setXRotation(int angle)
casa::GLWidget::setFrame
void setFrame(bool)
casa::GLWidget::getLinearColor
void getLinearColor(float &r, float &g, float &b, float v, float min=0., float max=1.)
X_enter.h
casa::GLWidget::calcLinearMaps
void calcLinearMaps(casacore::uInt numColors, casacore::Vector< float > &r, casacore::Vector< float > &g, casacore::Vector< float > &b)
casacore::Cube< float >
casa::GLWidget::zDepthChanged
void zDepthChanged(int angle)
X_exit.h
casa::GLWidget::tips
QString tips
Definition:
3DController.qo.h:137
casa::GLWidget::normalizeAngle
void normalizeAngle(int *angle)
casa::GLWidget::thresh
GLfloat thresh
Definition:
3DController.qo.h:115
casa::GLWidget::depth
int depth
Definition:
3DController.qo.h:118
casa::GLWidget::setYRotation
void setYRotation(int angle)
casa::GLWidget
Definition:
3DController.qo.h:18
casa::GLWidget::xRotationChanged
void xRotationChanged(int angle)
casa::GLWidget::zoom
int zoom
Definition:
3DController.qo.h:127
casacore::QVector
Specialization for Quantum<Vector<T> >
Definition:
QVector.h:37
casa::GLWidget::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event)
casa::GLWidget::zNearChanged
void zNearChanged(int angle)
casa::GLWidget::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event)
casa::GLWidget::bg
QColor bg
Definition:
3DController.qo.h:128
casa::GLWidget::zRot
int zRot
Definition:
3DController.qo.h:123
3DDisplayData.qo.h
casa::GLWidget::initializeGL
void initializeGL()
casa::GLWidget::profileAct
QAction * profileAct
Definition:
3DController.qo.h:141
casa::GLWidget::resetZDepth
void resetZDepth(double, double, double)
casa::GLWidget::transChanged
void transChanged(int angle)
casa::GLWidget::box
GLuint box
Definition:
3DController.qo.h:100
casa::GLWidget::near
int near
Definition:
3DController.qo.h:117
casa::GLWidget::setBG
void setBG(const QString &)
casa::GLWidget::getBound
float getBound()
casa::GLWidget::bMap
casacore::Vector< float > bMap
Definition:
3DController.qo.h:90
casa::GLWidget::setZDepth
void setZDepth(int angle)
casa::GLWidget::frameOn
bool frameOn
Definition:
3DController.qo.h:126
casa::GLWidget::~GLWidget
~GLWidget()
casa::GLWidget::getMinMax
void getMinMax(float &, float &)
casa::GLWidget::yRot
int yRot
Definition:
3DController.qo.h:122
casa::GLWidget::momentAct
QAction * momentAct
Definition:
3DController.qo.h:142
casa::GLWidget::sizeHint
QSize sizeHint() const
casa::GLWidget::getTableColor
void getTableColor(float &r, float &g, float &b, float v, float min=0., float max=1.)
casa::GLWidget::setColormap
void setColormap(const QString &)
casa::GLWidget::gMap
casacore::Vector< float > gMap
Definition:
3DController.qo.h:89
casa::GLWidget::rMap
casacore::Vector< float > rMap
Colormap* cmap;.
Definition:
3DController.qo.h:88
casa::GLWidget::resizeGL
void resizeGL(int width, int height)
casa::GLWidget::setZNear
void setZNear(int angle)
casa::GLWidget::setDD
void setDD(char *, int &pol)
casa::GLWidget::showHelp
void showHelp()
casa::GLWidget::cmapname
QString cmapname
Definition:
3DController.qo.h:92
casa::GLWidget::light
GLuint light
Definition:
3DController.qo.h:135
casa::GLWidget::setZRotation
void setZRotation(int angle)
casa::GLWidget::updatePosition
void updatePosition()
casa::GLWidget::fogColor
static const GLfloat fogColor[4]
Definition:
3DController.qo.h:133
casa::GLWidget::setPol
void setPol(const QString &, int)
casa::GLWidget::setNumColors
void setNumColors(int)
casa::GLWidget::trans
int trans
Definition:
3DController.qo.h:119
casa::GLWidget::cz
GLfloat cz
Definition:
3DController.qo.h:111
casa::GLWidget::yRotationChanged
void yRotationChanged(int angle)
casa::GLWidget::mousePressEvent
void mousePressEvent(QMouseEvent *event)
casa::GLWidget::zRotationChanged
void zRotationChanged(int angle)
casa::GLWidget::filter
GLuint filter
Definition:
3DController.qo.h:130
casa::GLWidget::makeObject
GLuint makeObject(bool transChanged=true)
casa::GLWidget::numColors
int numColors
Definition:
3DController.qo.h:91
casa::GLWidget::pList
QVector< DisplayPoint3 > pList
Definition:
3DController.qo.h:85
casa::GLWidget::minimumSizeHint
QSize minimumSizeHint() const
casa::GLWidget::resetZNear
void resetZNear(double, double, double)
3DPoint.h
casa::DisplayData3
Definition:
3DDisplayData.qo.h:16
casa::GLWidget::lastPos
QPoint lastPos
Definition:
3DController.qo.h:124
casacore::uInt
unsigned int uInt
Definition:
aipstype.h:51
Generated on Sun Sep 1 2019 23:32:33 for casa by
1.8.5