Star.hpp   Star.hpp 
skipping to change at line 32 skipping to change at line 32
#ifndef _STAR_HPP_ #ifndef _STAR_HPP_
#define _STAR_HPP_ #define _STAR_HPP_
#include "ZoneData.hpp" #include "ZoneData.hpp"
#include "StelObjectType.hpp" #include "StelObjectType.hpp"
#include <QString> #include <QString>
#include <QtEndian> #include <QtEndian>
class StelObject; class StelObject;
extern const QString STAR_TYPE;
typedef short int Int16; typedef short int Int16;
typedef unsigned short int Uint16; typedef unsigned short int Uint16;
template <class Star> class SpecialZoneArray; template <class Star> class SpecialZoneArray;
template <class Star> struct SpecialZoneData; template <class Star> struct SpecialZoneData;
// structs for storing the stars in binary form. The idea is // structs for storing the stars in binary form. The idea is
// to store much data for bright stars (Star1), but only little or even // to store much data for bright stars (Star1), but only little or even
// very little data for faints stars (Star3). Using only 6 bytes for Star3 // very little data for faints stars (Star3). Using only 6 bytes for Star3
// makes it feasable to store hundreds of millions of them in main memory. // makes it feasable to store hundreds of millions of them in main memory.
skipping to change at line 137 skipping to change at line 139
inline int getComponentIds() const inline int getComponentIds() const
{ {
return d.uint8[3]; return d.uint8[3];
} }
float getBV(void) const {return IndexToBV(getBVIndex());} float getBV(void) const {return IndexToBV(getBVIndex());}
bool hasName() const {return getHip();} bool hasName() const {return getHip();}
QString getNameI18n(void) const; QString getNameI18n(void) const;
int hasComponentID(void) const; int hasComponentID(void) const;
void print(void); void print(void) const;
}; };
struct Star2 { // 10 byte struct Star2 { // 10 byte
/* /*
_______________ _______________
0 x0 | | 0 x0 | |
1 |_______ | 1 |_______ |
2 x1 | |_______| 2 x1 | |_______|
3 | | 3 | |
skipping to change at line 214 skipping to change at line 216
{ {
pos = z->axis0; pos = z->axis0;
pos*=((float)(getX0())+movementFactor*getDx0()); pos*=((float)(getX0())+movementFactor*getDx0());
pos+=((float)(getX1())+movementFactor*getDx1())*z->axis1; pos+=((float)(getX1())+movementFactor*getDx1())*z->axis1;
pos+=z->center; pos+=z->center;
} }
float getBV(void) const {return IndexToBV(getBVIndex());} float getBV(void) const {return IndexToBV(getBVIndex());}
QString getNameI18n(void) const {return QString();} QString getNameI18n(void) const {return QString();}
int hasComponentID(void) const {return 0;} int hasComponentID(void) const {return 0;}
bool hasName() const {return false;} bool hasName() const {return false;}
void print(void); void print(void) const;
}; };
struct Star3 { // 6 byte struct Star3 { // 6 byte
/* /*
_______________ _______________
0 x0 | | 0 x0 | |
1 |___________ | 1 |___________ |
2 x1 | |___| 2 x1 | |___|
3 |_______ | 3 |_______ |
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 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/