Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

Refraction Class Reference

This class performs refraction computations, following literature from atmospheric optics and astronomy. More...

#include <RefractionExtinction.hpp>

List of all members.

Public Member Functions

void forward (Vec3d &altAzPos) const
 Apply refraction.
void backward (Vec3d &altAzPos) const
 Remove refraction from position ("reduce").
void forward (Vec3f &altAzPos) const
 Apply refraction.
void backward (Vec3f &altAzPos) const
 Remove refraction from position ("reduce").
void combine (const Mat4d &m)
Mat4d getApproximateLinearTransfo () const
StelProjector::ModelViewTranformP clone () const
void setPressure (float p_mbar)
 Set surface air pressure (mbars), influences refraction computation.
float getPressure () const
void setTemperature (float t_C)
 Set surface air temperature (degrees Celsius), influences refraction computation.
float getTemperature () const
void setPreTransfoMat (const Mat4d &m)
 Set the transformation matrices used to transform input vector to AltAz frame.
void setPostTransfoMat (const Mat4d &m)

Detailed Description

This class performs refraction computations, following literature from atmospheric optics and astronomy.

Refraction solutions can only be aproximate, given the turbulent, unpredictable real atmosphere. Typical horizons do not go down below -1, so strange effects (distortion) between -2 and -5 should be covered. Note that forward/backward are no absolute reverse operations! All the computations should be in effect (1) only if atmosphere effects are true (2) only for celestial objects, never for landscape images (3) only for terrestrial locations, not on Moon/Mars/Saturn etc


Member Function Documentation

void Refraction::backward ( Vec3f altAzPos  )  const [virtual]

Remove refraction from position ("reduce").

Parameters:
altAzPos is the apparent star position vector, to be transformed into geometrical position. Note that forward/backward are no absolute reverse operations!

Implements StelProjector::ModelViewTranform.

void Refraction::backward ( Vec3d altAzPos  )  const [virtual]

Remove refraction from position ("reduce").

Parameters:
altAzPos is the apparent star position vector, to be transformed into geometrical position. Note that forward/backward are no absolute reverse operations!

Implements StelProjector::ModelViewTranform.

void Refraction::forward ( Vec3f altAzPos  )  const [virtual]

Apply refraction.

Parameters:
altAzPos is the geometrical star position vector, to be transformed into apparent position. Note that forward/backward are no absolute reverse operations!

Implements StelProjector::ModelViewTranform.

void Refraction::forward ( Vec3d altAzPos  )  const [virtual]

Apply refraction.

Parameters:
altAzPos is the geometrical star position vector, to be transformed into apparent position. Note that forward/backward are no absolute reverse operations!

Implements StelProjector::ModelViewTranform.

void Refraction::setPressure ( float  p_mbar  ) 

Set surface air pressure (mbars), influences refraction computation.

void Refraction::setPreTransfoMat ( const Mat4d m  ) 

Set the transformation matrices used to transform input vector to AltAz frame.

void Refraction::setTemperature ( float  t_C  ) 

Set surface air temperature (degrees Celsius), influences refraction computation.

Generated on Sat Aug 25 22:13:32 2012 for Stellarium by  doxygen 1.6.3