ZoneData.hpp   ZoneData.hpp 
skipping to change at line 31 skipping to change at line 31
#define _ZONEDATA_HPP_ #define _ZONEDATA_HPP_
// just for Vect3d. // just for Vect3d.
// Take any Vector class instead, if you want to use the star feature in a // Take any Vector class instead, if you want to use the star feature in a
// different context. // different context.
#include "VecMath.hpp" #include "VecMath.hpp"
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
class StelObject; class StelObject;
namespace BigStarCatalogExtension
{
//! @struct ZoneData //! @struct ZoneData
//! A single triangle. The stars are arranged in triangular zones according to //! A single triangle. The stars are arranged in triangular zones according to
//! StelGeodesicGrid. Bright stars (Star1) are stored in zones with small l evel, //! StelGeodesicGrid. Bright stars (Star1) are stored in zones with small l evel,
//! whereas fainter stars (Star2,Star3) are stored in zones with highter le vel. //! whereas fainter stars (Star2,Star3) are stored in zones with higher lev el.
//! A ZoneData contains stars of a given type (Star1,Star2 or Star3) of //! A ZoneData contains stars of a given type (Star1,Star2 or Star3) of
//! a given triangle and level of the StelGeodesicGrid. //! a given triangle and level of the StelGeodesicGrid.
struct ZoneData struct ZoneData
{ {
//! Get number of stars in this triangle. //! Get number of stars in this triangle.
int getNrOfStars(void) const int getNrOfStars() const
{ {
return size; return size;
} }
Vec3f center; Vec3f center; // Normalized center of the triangle
Vec3f axis0; Vec3f axis0; // Normalized direction vector of axis 0 (use for st
Vec3f axis1; oring stars position in 2D relative to this axis)
int size; Vec3f axis1; // Normalized direction vector of axis 0 (use for st
oring stars position in 2D relative to this axis)
int size; // Number of stars in the stars array
void *stars; void *stars;
}; };
//! @struct SpecialZoneData //! @struct SpecialZoneData
//! Wrapper struct around ZoneData. //! Wrapper struct around ZoneData.
//! @tparam Star either Star1, Star2 or Star3, depending on the brightness of //! @tparam Star either Star1, Star2 or Star3, depending on the brightness of
//! stars in this triangle //! stars in this triangle
template <class Star> template <class Star>
struct SpecialZoneData : public ZoneData struct SpecialZoneData : public ZoneData
{ {
skipping to change at line 73 skipping to change at line 70
return s->createStelObject(*this); return s->createStelObject(*this);
} }
//! Get array of stars in this zone. //! Get array of stars in this zone.
Star *getStars(void) const Star *getStars(void) const
{ {
return reinterpret_cast<Star*>(stars); return reinterpret_cast<Star*>(stars);
} }
}; };
} // namespace BigStarCatalogExtension
#endif // _ZONEDATA_HPP_ #endif // _ZONEDATA_HPP_
 End of changes. 5 change blocks. 
11 lines changed or deleted 8 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/