Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Types | Public Member Functions | Public Attributes | Protected Slots | Friends

Spectrum3DOpenGLCanvas Class Reference
[Spectrum visualizaion widgets]

OpenGL Canvas for 3D-visualization of map data. More...

#include <OpenMS/VISUAL/Spectrum3DOpenGLCanvas.h>

Inheritance diagram for Spectrum3DOpenGLCanvas:
QGLWidget

List of all members.

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 (Real intensity, Size layer_index)
 returns the BB-intensity -coordinate : values --> BB-coordinates
void recalculateDotGradient_ (Size 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)
Reimplemented QT events

void mouseMoveEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void focusOutEvent (QFocusEvent *e)

Public Attributes

Spectrum3DCanvascanvas_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
Different OpenGL display lists

GLuint stickdata_
GLuint axes_
GLuint axes_ticks_
GLuint gridlines_
GLuint ground_

Protected Slots

void actionModeChange ()
 Slot that reacts on action mode changes.

Friends

class Spectrum3DCanvas

Detailed Description

OpenGL Canvas for 3D-visualization of map data.

Note:
Do not use this class directly. Use Spectrum3DCanvas instead!

Member Typedef Documentation

typedef std::vector<std::vector<double> > AxisTickVector

Container for axis ticks.


Constructor & Destructor Documentation

Spectrum3DOpenGLCanvas ( QWidget parent,
Spectrum3DCanvas canvas_3d 
)

Constructor.

Parameters:
parent The parent widget
canvas_3d The main 3d canvas
virtual ~Spectrum3DOpenGLCanvas (  )  [virtual]

Destructor.

Destroys the OpenGLWidget and all associated data.


Member Function Documentation

void actionModeChange (  )  [protected, slot]

Slot that reacts on action mode changes.

void calculateGridLines_ (  ) 

calculate the ticks for the gridlines

void computeSelection (  ) 

computes the dataset supposed to be drawn when a section has been selected in zoom mode

void dataToZoomArray ( double  x_1,
double  y_1,
double  x_2,
double  y_2 
)

calcualtes the zoom area , which is shown

void drawAxesLegend (  ) 

Draws the axis texts (since Qt 4.3 these cannot be put into display lists anymore...).

void focusOutEvent ( QFocusEvent *  e  ) 
float height (  )  const [inline]
void initializeGL (  ) 

virtual function provided from QGLWidget

GLuint makeAxes (  ) 

Builds up a display list for the axes.

GLuint makeAxesTicks (  ) 

Builds up a display list for axis ticks.

GLuint makeDataAsStick (  ) 

Builds up a display list for the 3D view.

GLuint makeDataAsTopView (  ) 

Builds up a display list for the birds-eye view.

GLuint makeGridLines (  ) 

Builds up a display list for grid lines.

GLuint makeGround (  ) 

Builds up a display list for the background.

void mouseMoveEvent ( QMouseEvent *  e  ) 
void mousePressEvent ( QMouseEvent *  e  ) 
void mouseReleaseEvent ( QMouseEvent *  e  ) 
void normalizeAngle ( int *  angle  ) 

normalize the angel

void paintGL (  ) 

virtual function provided from QGLWidget

void recalculateDotGradient_ ( Size  layer  ) 

recalculates the dot gradient inerpolation values.

void resetTranslation (  ) 
void resizeGL ( int  w,
int  h 
)

virtual function provided from QGLWidget

void restoreRotationAndZoom (  ) 

restores the original rotation and zoom factor (e.g. before changing into zoom mode)

double scaledIntensity ( Real  intensity,
Size  layer_index 
)

returns the BB-intensity -coordinate : values --> BB-coordinates

double scaledInversMZ ( double  mz  ) 

returns the mz-value : BB-coordinates --> value

double scaledInversRT ( double  mz  ) 

returns the rt-value : BB-coordinates --> value

double scaledMZ ( double  mz  ) 

returns the BB-mz-coordinate : values --> BB-coordinates

double scaledRT ( double  rt  ) 

returns the BB-rt-coordinate : value --> BB-coordinates

void setAngels ( int  xrot,
int  yrot,
int  zrot 
)
void storeRotationAndZoom (  ) 

stores the original rotation and zoom factor (e.g. before changing into zoom mode)

void timeMessure (  ) 
void updateIntensityScale (  ) 

updates the min and max values of the intensity

float width (  )  const [inline]

return width

int xRotation (  )  const [inline]

return xRot_

int yRotation (  )  const [inline]

return yRot_

int zRotation (  )  const [inline]

return zRot_


Friends And Related Function Documentation

friend class Spectrum3DCanvas [friend]

Member Data Documentation

GLuint axes_
GLuint axes_ticks_

member variable for the x and y axis of the BB

member variable for the z- axis of the BB

member gridvectors which contains the data for the intensity-axis-ticks

member gridvectors which contains the data for the mz-axis-ticks

member gridvectors which contains the data for the rt-axis-ticks

GLuint gridlines_
GLuint ground_
float heigth_

the height of the viewport

object wich contains the values of the current min and max intensity

member variables fot the zoom-modus

member variable for the z- axis of the BB

object which contains the min and max values of mz, rt and intensity

GLuint stickdata_

x- translation

y_translation

float width_

the width of the viewport

x1 coordinate of the zoomselection

x2 coordinate of the zoomselection

int xrot_

member x-variables for the rotation

int xrot_tmp_

member x-variable that stores the original angle during zoom mode

y1 coordinate of the zoomselection

y2 coordinate of the zoomselection

int yrot_

member y-variables for the rotation

int yrot_tmp_

member y-variable that stores the original angle during zoom mode

member variable for the zoom mode

member variable that stores original zoom factor during zoom mode

int zrot_

member z-variables for the rotation

int zrot_tmp_

member z-variable that stores the original angle during zoom mode


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1