Logo Search packages:      
Sourcecode: kalzium version File versions  Download package

Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

SpectrumWidget Class Reference

#include <spectrumwidget.h>

Collaboration diagram for SpectrumWidget:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SpectrumType { EmissionSpectrum = 0, AbsorptionSpectrum }

Public Slots

void resetSpectrum ()
 (re)create startconditions
void setLeftBorder (int value)
void setRightBorder (int value)
void slotActivateSpectrum (int spectrumtype)

Signals

void bordersChanged (int, int)
void peakSelected (Spectrum::peak *peak)

Public Member Functions

int Adjust (double color, double factor)
void findPeakFromMouseposition (double wavelength)
void setBorders (double left, double right)
void setSpectrum (Spectrum *spec)
void setType (int t)
Spectrumspectrum () const
int spectrumType () const
 SpectrumWidget (QWidget *parent)
double Wavelength (double xpos)
QColor wavelengthToRGB (double wavelength)
int xPos (double wavelength)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
virtual void paintEvent (QPaintEvent *e)

Private Slots

void slotZoomIn ()
void slotZoomOut ()

Private Member Functions

void drawTickmarks (QPainter *p)
void drawZoomLine (QPainter *p)
void paintBands (QPainter *p)

Private Attributes

double m_endValue
double m_gamma
int m_intensityMax
QPoint m_LMBPointCurrent
QPoint m_LMBPointPress
QPixmap m_pixmap
int m_realHeight
QList< double > m_spectra
Spectrumm_spectrum
double m_startValue
int m_type

Detailed Description

Author:
Carsten Niehaus

Definition at line 32 of file spectrumwidget.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index