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__))
60 unsigned int componentIds:8;
63 unsigned char componentIds;
71 enum {MaxPosVal=0x7FFFFFFF};
74 void getJ2000Pos(
const ZoneData *z,
float movementFactor,
Vec3f& pos)
const {
76 pos*=((float)(x0)+movementFactor*dx0);
77 pos+=((float)(x1)+movementFactor*dx1)*z->axis1;
80 float getBV(
void)
const {
return IndexToBV(bV);}
81 bool hasName()
const {
return hip;}
82 QString getNameI18n(
void)
const;
83 int hasComponentID(
void)
const;
84 void repack(
bool fromBe);
88 __attribute__ ((__packed__))
91 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
96 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
106 enum {MaxPosVal=((1<<19)-1)};
109 void getJ2000Pos(
const ZoneData *z,
float movementFactor,
Vec3f& pos)
const {
111 pos*=((float)(x0)+movementFactor*dx0);
112 pos+=((float)(x1)+movementFactor*dx1)*z->axis1;
115 float getBV(
void)
const {
return IndexToBV(bV);}
116 QString getNameI18n(
void)
const {
return QString();}
117 int hasComponentID(
void)
const {
return 0;}
118 bool hasName()
const {
return false;}
119 void repack(
bool fromBe);
122 #if defined(__GNUC__)
123 __attribute__ ((__packed__))
126 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
131 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))
139 enum {MaxPosVal=((1<<17)-1)};
142 void getJ2000Pos(
const ZoneData *z,
float,
Vec3f& pos)
const {
146 pos+=(float)(x1)*z->axis1;
148 float getBV(
void)
const {
return IndexToBV(bV);}
149 QString getNameI18n(
void)
const {
return QString();}
150 int hasComponentID(
void)
const {
return 0;}
151 bool hasName()
const {
return false;}
152 void repack(
bool fromBe);
155 #if defined(__GNUC__)
156 __attribute__ ((__packed__))
159 #if (defined(__sgi) && defined(_COMPILER_VERSION) && !defined(__GNUC__))