RefractionExtinction.hpp   RefractionExtinction.hpp 
skipping to change at line 48 skipping to change at line 48
//! and may show stars in their full brightness below -2 degrees. //! and may show stars in their full brightness below -2 degrees.
//! Typical horizons do not go down below -1, so all natural sites should b e covered. //! Typical horizons do not go down below -1, so all natural sites should b e covered.
//! Note that forward/backward are no absolute reverse operations! //! Note that forward/backward are no absolute reverse operations!
//! All the computations should be in effect //! All the computations should be in effect
//! (1) only if atmosphere effects are true //! (1) only if atmosphere effects are true
//! (2) only for terrestrial locations, not on Moon/Mars/Saturn etc //! (2) only for terrestrial locations, not on Moon/Mars/Saturn etc
//! config.ini:astro/flag_extinction_below_horizon=true|false controls if e xtinction kills objects below -2 degrees altitude by setting airmass to 42. //! config.ini:astro/flag_extinction_below_horizon=true|false controls if e xtinction kills objects below -2 degrees altitude by setting airmass to 42.
class Extinction class Extinction
{ {
public: public:
//! Define the extinction strategy for rendering underground objects (usefull when ground is not rendered) //! Define the extinction strategy for rendering underground objects (useful when ground is not rendered)
enum UndergroundExtinctionMode { enum UndergroundExtinctionMode {
UndergroundExtinctionZero = 0, //!< Zero extinction: stars visible in full brightness UndergroundExtinctionZero = 0, //!< Zero extinction: stars visible in full brightness
UndergroundExtinctionMax = 1, //!< Maximum extinction: coe f 42, i.e practically invisible UndergroundExtinctionMax = 1, //!< Maximum extinction: coe f 42, i.e practically invisible
UndergroundExtinctionMirror = 2 //!< Mirror the extinction f or the same altutide above the ground. UndergroundExtinctionMirror = 2 //!< Mirror the extinction f or the same altutide above the ground.
}; };
Extinction(); Extinction();
//! Compute extinction effect for arrays of size @param num position vectors and magnitudes. //! Compute extinction effect for arrays of size @param num position vectors and magnitudes.
//! @param altAzPos are the NORMALIZED (!!) (geometrical) star posit ion vectors, and their z components sin(apparent_altitude). //! @param altAzPos are the NORMALIZED (!!) (geometrical) star posit ion vectors, and their z components sin(apparent_altitude).
skipping to change at line 179 skipping to change at line 179
void updatePrecomputed(); void updatePrecomputed();
void innerRefractionForward(Vec3d& altAzPos) const; void innerRefractionForward(Vec3d& altAzPos) const;
void innerRefractionBackward(Vec3d& altAzPos) const; void innerRefractionBackward(Vec3d& altAzPos) const;
//! These 3 Atmosphere parameters can be controlled by GUI. //! These 3 Atmosphere parameters can be controlled by GUI.
//! Pressure[mbar] (1013) //! Pressure[mbar] (1013)
float pressure; float pressure;
//! Temperature[Celsius deg] (10). //! Temperature[Celsius deg] (10).
float temperature; float temperature;
//! Numerator of refraction formula, to be cached for speed. ////! Numerator of refraction formula, to be cached for speed.
float press_temp_corr_Saemundson; //7float press_temp_corr_Saemundson;
//! Numerator of refraction formula, to be cached for speed. //! Correction factor for refraction formula, to be cached for speed
float press_temp_corr_Bennett; .
double press_temp_corr;
//! Used to pretransform coordinates into AltAz frame. //! Used to pretransform coordinates into AltAz frame.
Mat4d preTransfoMat; Mat4d preTransfoMat;
Mat4d invertPreTransfoMat; Mat4d invertPreTransfoMat;
Mat4f preTransfoMatf; Mat4f preTransfoMatf;
Mat4f invertPreTransfoMatf; Mat4f invertPreTransfoMatf;
//! Used to postransform refracted coordinates from AltAz to view. //! Used to postransform refracted coordinates from AltAz to view.
Mat4d postTransfoMat; Mat4d postTransfoMat;
Mat4d invertPostTransfoMat; Mat4d invertPostTransfoMat;
 End of changes. 2 change blocks. 
5 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/