#include <OpenMS/VISUAL/Spectrum3DOpenGLCanvas.h>
Public Types | |
typedef std::vector < std::vector< double > > | AxisTickVector |
Container for axis ticks. | |
Public Member Functions | |
Spectrum3DOpenGLCanvas (QWidget *parent, Spectrum3DCanvas &canvas_3d) | |
Constructor. | |
virtual | ~Spectrum3DOpenGLCanvas () |
Destructor. | |
void | initializeGL () |
virtual function provided from QGLWidget | |
void | resizeGL (int w, int h) |
virtual function provided from QGLWidget | |
void | paintGL () |
virtual function provided from QGLWidget | |
GLuint | makeDataAsStick () |
Builds up a display list for the 3D view. | |
GLuint | makeAxes () |
Builds up a display list for the axes. | |
GLuint | makeAxesTicks () |
Builds up a display list for axis ticks. | |
GLuint | makeDataAsTopView () |
Builds up a display list for the birds-eye view. | |
GLuint | makeGround () |
Builds up a display list for the background. | |
GLuint | makeGridLines () |
Builds up a display list for grid lines. | |
void | drawAxesLegend () |
Draws the axis texts (since Qt 4.3 these cannot be put into display lists anymore...). | |
void | computeSelection () |
computes the dataset supposed to be drawn when a section has been selected in zoom mode | |
void | updateIntensityScale () |
updates the min and max values of the intensity | |
void | dataToZoomArray (double x_1, double y_1, double x_2, double y_2) |
calcualtes the zoom area , which is shown | |
double | scaledRT (double rt) |
returns the BB-rt-coordinate : value --> BB-coordinates | |
double | scaledInversRT (double mz) |
returns the rt-value : BB-coordinates --> value | |
double | scaledMZ (double mz) |
returns the BB-mz-coordinate : values --> BB-coordinates | |
double | scaledInversMZ (double mz) |
returns the mz-value : BB-coordinates --> value | |
double | scaledIntensity (double intensity, int layer_index) |
returns the BB-intensity -coordinate : values --> BB-coordinates | |
void | recalculateDotGradient_ (UInt layer) |
recalculates the dot gradient inerpolation values. | |
void | calculateGridLines_ () |
calculate the ticks for the gridlines | |
float | width () const |
return width | |
float | height () const |
int | xRotation () const |
return xRot_ | |
int | yRotation () const |
return yRot_ | |
int | zRotation () const |
return zRot_ | |
void | normalizeAngle (int *angle) |
normalize the angel | |
void | setAngels (int xrot, int yrot, int zrot) |
void | resetTranslation () |
void | timeMessure () |
void | storeRotationAndZoom () |
stores the original rotation and zoom factor (e.g. before changing into zoom mode) | |
void | restoreRotationAndZoom () |
restores the original rotation and zoom factor (e.g. before changing into zoom mode) | |
void | setZoomFactor (double zoom, bool repaint) |
set the member variable zoom_ and calls initializeGL and updateGL | |
Reimplemented QT events | |
void | focusOutEvent (QFocusEvent *e) |
void | mouseMoveEvent (QMouseEvent *e) |
void | mouseReleaseEvent (QMouseEvent *e) |
void | mousePressEvent (QMouseEvent *e) |
void | wheelEvent (QWheelEvent *e) |
void | keyPressEvent (QKeyEvent *e) |
void | keyReleaseEvent (QKeyEvent *e) |
Public Attributes | |
Spectrum3DCanvas & | canvas_3d_ |
reference to Spectrum3DCanvas | |
int | xrot_ |
member x-variables for the rotation | |
int | yrot_ |
member y-variables for the rotation | |
int | zrot_ |
member z-variables for the rotation | |
int | xrot_tmp_ |
member x-variable that stores the original angle during zoom mode | |
int | yrot_tmp_ |
member y-variable that stores the original angle during zoom mode | |
int | zrot_tmp_ |
member z-variable that stores the original angle during zoom mode | |
QPoint | mouse_move_end_ |
member variables fot the zoom-modus | |
QPoint | mouse_move_begin_ |
double | corner_ |
member variable for the x and y axis of the BB | |
double | zoom_ |
member variable for the zoom mode | |
double | zoom_tmp_ |
member variable that stores original zoom factor during zoom mode | |
double | near_ |
member variable for the z- axis of the BB | |
double | far_ |
member variable for the z- axis of the BB | |
float | width_ |
the width of the viewport | |
float | heigth_ |
the height of the viewport | |
DRange< 3 > | overall_values_ |
object which contains the min and max values of mz, rt and intensity | |
DRange< 1 > | int_scale_ |
object wich contains the values of the current min and max intensity | |
AxisTickVector | grid_mz_ |
member gridvectors which contains the data for the mz-axis-ticks | |
AxisTickVector | grid_rt_ |
member gridvectors which contains the data for the rt-axis-ticks | |
AxisTickVector | grid_intensity_ |
member gridvectors which contains the data for the intensity-axis-ticks | |
double | x_1_ |
x1 coordinate of the zoomselection | |
double | x_2_ |
x2 coordinate of the zoomselection | |
double | y_1_ |
y1 coordinate of the zoomselection | |
double | y_2_ |
y2 coordinate of the zoomselection | |
double | trans_x_ |
x- translation | |
double | trans_y_ |
y_translation | |
bool | zoom_mode_ |
Flag for translate mode. | |
Different OpenGL display lists | |
GLuint | stickdata_ |
GLuint | axes_ |
GLuint | axes_ticks_ |
GLuint | gridlines_ |
GLuint | ground_ |
Friends | |
class | Spectrum3DCanvas |
typedef std::vector<std::vector<double> > AxisTickVector |
Container for axis ticks.
Spectrum3DOpenGLCanvas | ( | QWidget * | parent, | |
Spectrum3DCanvas & | canvas_3d | |||
) |
Constructor.
parent | The parent widget | |
canvas_3d | The main 3d canvas |
virtual ~Spectrum3DOpenGLCanvas | ( | ) | [virtual] |
Destructor.
Destroys the OpenGLWidget and all associated data.
void initializeGL | ( | ) |
virtual function provided from QGLWidget
void resizeGL | ( | int | w, | |
int | h | |||
) |
virtual function provided from QGLWidget
void paintGL | ( | ) |
virtual function provided from QGLWidget
GLuint makeDataAsStick | ( | ) |
Builds up a display list for the 3D view.
GLuint makeAxes | ( | ) |
Builds up a display list for the axes.
GLuint makeAxesTicks | ( | ) |
Builds up a display list for axis ticks.
GLuint makeDataAsTopView | ( | ) |
Builds up a display list for the birds-eye view.
GLuint makeGround | ( | ) |
Builds up a display list for the background.
GLuint makeGridLines | ( | ) |
Builds up a display list for grid lines.
void drawAxesLegend | ( | ) |
Draws the axis texts (since Qt 4.3 these cannot be put into display lists anymore...).
void focusOutEvent | ( | QFocusEvent * | e | ) |
void mouseMoveEvent | ( | QMouseEvent * | e | ) |
void mouseReleaseEvent | ( | QMouseEvent * | e | ) |
void mousePressEvent | ( | QMouseEvent * | e | ) |
void wheelEvent | ( | QWheelEvent * | e | ) |
void keyPressEvent | ( | QKeyEvent * | e | ) |
void keyReleaseEvent | ( | QKeyEvent * | e | ) |
void computeSelection | ( | ) |
computes the dataset supposed to be drawn when a section has been selected in zoom mode
void updateIntensityScale | ( | ) |
updates the min and max values of the intensity
void dataToZoomArray | ( | double | x_1, | |
double | y_1, | |||
double | x_2, | |||
double | y_2 | |||
) |
calcualtes the zoom area , which is shown
double scaledRT | ( | double | rt | ) |
returns the BB-rt-coordinate : value --> BB-coordinates
double scaledInversRT | ( | double | mz | ) |
returns the rt-value : BB-coordinates --> value
double scaledMZ | ( | double | mz | ) |
returns the BB-mz-coordinate : values --> BB-coordinates
double scaledInversMZ | ( | double | mz | ) |
returns the mz-value : BB-coordinates --> value
double scaledIntensity | ( | double | intensity, | |
int | layer_index | |||
) |
returns the BB-intensity -coordinate : values --> BB-coordinates
void recalculateDotGradient_ | ( | UInt | layer | ) |
recalculates the dot gradient inerpolation values.
void calculateGridLines_ | ( | ) |
calculate the ticks for the gridlines
float width | ( | ) | const [inline] |
return width
float height | ( | ) | const [inline] |
int xRotation | ( | ) | const [inline] |
return xRot_
int yRotation | ( | ) | const [inline] |
return yRot_
int zRotation | ( | ) | const [inline] |
return zRot_
void normalizeAngle | ( | int * | angle | ) |
normalize the angel
void setAngels | ( | int | xrot, | |
int | yrot, | |||
int | zrot | |||
) |
void resetTranslation | ( | ) |
void timeMessure | ( | ) |
void storeRotationAndZoom | ( | ) |
stores the original rotation and zoom factor (e.g. before changing into zoom mode)
void restoreRotationAndZoom | ( | ) |
restores the original rotation and zoom factor (e.g. before changing into zoom mode)
void setZoomFactor | ( | double | zoom, | |
bool | repaint | |||
) |
set the member variable zoom_ and calls initializeGL and updateGL
friend class Spectrum3DCanvas [friend] |
GLuint stickdata_ |
GLuint axes_ |
GLuint axes_ticks_ |
GLuint gridlines_ |
GLuint ground_ |
reference to Spectrum3DCanvas
int xrot_ |
member x-variables for the rotation
int yrot_ |
member y-variables for the rotation
int zrot_ |
member z-variables for the rotation
int xrot_tmp_ |
member x-variable that stores the original angle during zoom mode
int yrot_tmp_ |
member y-variable that stores the original angle during zoom mode
int zrot_tmp_ |
member z-variable that stores the original angle during zoom mode
QPoint mouse_move_end_ |
member variables fot the zoom-modus
QPoint mouse_move_begin_ |
double corner_ |
member variable for the x and y axis of the BB
double zoom_ |
member variable for the zoom mode
double zoom_tmp_ |
member variable that stores original zoom factor during zoom mode
double near_ |
member variable for the z- axis of the BB
double far_ |
member variable for the z- axis of the BB
float width_ |
the width of the viewport
float heigth_ |
the height of the viewport
object which contains the min and max values of mz, rt and intensity
DRange<1> int_scale_ |
object wich contains the values of the current min and max intensity
member gridvectors which contains the data for the mz-axis-ticks
member gridvectors which contains the data for the rt-axis-ticks
member gridvectors which contains the data for the intensity-axis-ticks
double x_1_ |
x1 coordinate of the zoomselection
double x_2_ |
x2 coordinate of the zoomselection
double y_1_ |
y1 coordinate of the zoomselection
double y_2_ |
y2 coordinate of the zoomselection
double trans_x_ |
x- translation
double trans_y_ |
y_translation
bool zoom_mode_ |
Flag for translate mode.
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |