25 #include "ZoneData.hpp"
31 namespace BigStarCatalogExtension {
34 typedef unsigned int Uint32;
35 typedef short int Int16;
36 typedef unsigned short int Uint16;
50 static inline float IndexToBV(
unsigned char bV) {
51 return (
float)bV*(4.f/127.f)-0.5f;
54 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
59 unsigned char componentIds;
66 enum {MaxPosVal=0x7FFFFFFF};
69 void getJ2000Pos(
const ZoneData *z,
float movementFactor,
Vec3f& pos)
const {
71 pos*=((float)(x0)+movementFactor*dx0);
72 pos+=((float)(x1)+movementFactor*dx1)*z->axis1;
75 float getBV(
void)
const {
return IndexToBV(bV);}
76 bool hasName()
const {
return hip;}
77 QString getNameI18n(
void)
const;
78 int hasComponentID(
void)
const;
79 void repack(
bool fromBe);
83 __attribute__ ((__packed__))
86 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
91 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
101 enum {MaxPosVal=((1<<19)-1)};
104 void getJ2000Pos(
const ZoneData *z,
float movementFactor,
Vec3f& pos)
const {
106 pos*=((float)(x0)+movementFactor*dx0);
107 pos+=((float)(x1)+movementFactor*dx1)*z->axis1;
110 float getBV(
void)
const {
return IndexToBV(bV);}
111 QString getNameI18n(
void)
const {
return QString();}
112 int hasComponentID(
void)
const {
return 0;}
113 bool hasName()
const {
return false;}
114 void repack(
bool fromBe);
117 #if defined(__GNUC__)
118 __attribute__ ((__packed__))
121 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
126 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
134 enum {MaxPosVal=((1<<17)-1)};
137 void getJ2000Pos(
const ZoneData *z,
float,
Vec3f& pos)
const {
141 pos+=(float)(x1)*z->axis1;
143 float getBV(
void)
const {
return IndexToBV(bV);}
144 QString getNameI18n(
void)
const {
return QString();}
145 int hasComponentID(
void)
const {
return 0;}
146 bool hasName()
const {
return false;}
147 void repack(
bool fromBe);
150 #if defined(__GNUC__)
151 __attribute__ ((__packed__))
154 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))