14 #define NAVTOTALMESHCOUNT 8 //same as the button count, 1 mesh for screen and 1 per button(1+7)
17 void Beautify(
string systemfile,
string §or,
string &system );
23 vector< string >vstack;
26 unsigned int maxcount;
27 vsUMap< string, bool >visited;
61 const std::vector< std::string > &destinations,
63 void loadData( map< string, unsigned > *index_table );
68 vector< SystemInfo >systems;
69 unsigned currentPosition;
75 void init(
string current_system,
unsigned max_systems = 2 );
76 bool seek(
unsigned position = 0 );
78 unsigned size()
const;
108 vector< SectorInfo >sectors;
109 unsigned currentPosition;
116 bool seek(
unsigned position = 0 );
118 unsigned size()
const;
141 unsigned currentsystemindex;
142 unsigned focusedsystemindex;
143 unsigned destinationsystemindex;
144 unsigned systemselectionindex;
145 unsigned sectorselectionindex;
148 std::vector< unsigned >
path;
168 float zshiftmultiplier;
169 float item_zscalefactor;
170 float minimumitemscaledown;
171 float maximumitemscaleup;
173 enum ViewType {VIEW_2D, VIEW_ORTHO, VIEW_3D, VIEW_MAX};
178 enum PathType {PATH_OFF, PATH_ON, PATH_ONLY, PATH_MAXIMUM};
180 bool system_multi_dimensional;
181 bool galaxy_multi_dimensional;
187 signed int scrolloffset;
189 float mouse_x_previous;
190 float mouse_y_previous;
191 float mouse_x_current;
192 float mouse_y_current;
194 bool mouse_previous_state[5];
195 bool mouse_wentup[5];
196 bool mouse_wentdown[5];
205 unsigned sectorOffset;
206 unsigned systemOffset;
216 float screenskipby4[4];
217 float buttonskipby4_1[4];
218 float buttonskipby4_2[4];
219 float buttonskipby4_3[4];
220 float buttonskipby4_4[4];
221 float buttonskipby4_5[4];
222 float buttonskipby4_6[4];
223 float buttonskipby4_7[4];
231 float system_item_scale;
232 float unselectedalpha;
236 void Adjust3dTransformation(
bool three_d,
bool is_system_not_galaxy );
237 void ReplaceAxes(
QVector &pos );
238 void RecordMinAndMax(
const QVector &pos,
246 void DrawOriginOrientationTri(
float center_nav_x,
float center_nav_y,
bool system_not_galaxy );
248 float CalculatePerspectiveAdjustment(
float &zscale,
252 float &system_item_scale_temp,
253 bool system_not_galaxy );
255 void TranslateCoordinates(
QVector &pos,
266 float &system_item_scale_temp,
267 bool system_not_galaxy );
269 void TranslateAndDisplay(
QVector &pos,
278 float &system_item_scale_temp,
279 bool system_not_galaxy );
281 void DisplayOrientationLines(
float the_x,
float the_y,
float the_x_flat,
float the_y_flat,
bool system_not_galaxy );
283 bool CheckForSelectionQuery();
284 void setCurrentSystemIndex(
unsigned newSystemIndex );
285 void setFocusedSystemIndex(
unsigned newSystemIndex );
286 void setDestinationSystemIndex(
unsigned newSystemIndex );
288 bool BFS(
unsigned originIndex,
unsigned destIndex );
289 bool DoubleRootedBFS(
unsigned originIndex,
unsigned destIndex );
309 void DrawButton(
float &x1,
float &x2,
float &y1,
float &y2,
int button_number,
bool outline );
312 void DrawGrid(
float &screen_x1,
float &screen_x2,
float &screen_y1,
float &screen_y2,
const GFXColor &col );
314 bool TestIfInRange(
float &x1,
float &x2,
float &y1,
float &y2,
float tx,
float ty );
327 void IntersectBorder(
float &
x,
float &
y,
const float &x1,
const float &y1 )
const;
336 scrolloffset += scrollamt;
344 static void mouseClick(
int button,
int state,
int x,
int y );