• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kalzium/libscience

Classes | Public Member Functions | List of all members
Spectrum Class Reference

#include <spectrum.h>

Classes

class  peak
 

Public Member Functions

 Spectrum ()
 
 ~Spectrum ()
 
void addPeak (Spectrum::peak *b)
 
void adjustIntensities ()
 
Spectrum * adjustToWavelength (double min, double max)
 
double maxPeak ()
 
double maxPeak (const int unit)
 
double minPeak ()
 
double minPeak (const int unit)
 
int parentElementNumber () const
 
QList< Spectrum::peak * > peaklist ()
 
void setParentElementNumber (int num)
 
QList< double > wavelengths (double min, double max)
 

Detailed Description

Author
Carsten Niehaus

This class represents a spectrum with all its properties

Definition at line 35 of file spectrum.h.

Constructor & Destructor Documentation

Spectrum::Spectrum ( )

This spectrum doesn't belong to any element.

Definition at line 123 of file spectrum.cpp.

Spectrum::~Spectrum ( )

public destructor

Definition at line 118 of file spectrum.cpp.

Member Function Documentation

void Spectrum::addPeak ( Spectrum::peak *  b)
inline

adds the peak b to the internal lists of peaks

Definition at line 75 of file spectrum.h.

void Spectrum::adjustIntensities ( )

sets the highest intensity to 1000 and adjusts the others

Definition at line 78 of file spectrum.cpp.

Spectrum * Spectrum::adjustToWavelength ( double  min,
double  max 
)
Parameters
minthe lowest allowed wavelength in nanometer
maxthe highest allowed wavelength in nanometer
Returns
a spectrum with the wavelength in the range of min to max. The intensities are readjusted so that the biggest intensity is again 1000 and the others are adopted.

Definition at line 65 of file spectrum.cpp.

double Spectrum::maxPeak ( )
Returns
the biggest wavelength

Definition at line 46 of file spectrum.cpp.

double Spectrum::maxPeak ( const int  unit)

Definition at line 59 of file spectrum.cpp.

double Spectrum::minPeak ( )
Returns
the smallest wavelength

Definition at line 28 of file spectrum.cpp.

double Spectrum::minPeak ( const int  unit)

Definition at line 40 of file spectrum.cpp.

int Spectrum::parentElementNumber ( ) const

If the spectrum belongs to Iron, this method will return "26".

Returns
the number of the element the spectrum belongs to

Definition at line 113 of file spectrum.cpp.

QList<Spectrum::peak*> Spectrum::peaklist ( )
inline
Returns
the list of peaks of the spectrum

Definition at line 108 of file spectrum.h.

void Spectrum::setParentElementNumber ( int  num)
inline

Definition at line 130 of file spectrum.h.

QList< double > Spectrum::wavelengths ( double  min,
double  max 
)
Parameters
minthe lowest allowed wavelength in nanometer
maxthe highest allowed wavelength in nanometer
Returns
the wavelength in a QList<double>

Definition at line 100 of file spectrum.cpp.


The documentation for this class was generated from the following files:
  • spectrum.h
  • spectrum.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:31 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kalzium/libscience

Skip menu "kalzium/libscience"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal