55 #if defined(HAVE_CONFIG_H)
58 #if defined(HAVE_GL_GL_H)
60 #elif defined(HAVE_OPENGL_GL_H)
61 #include <OpenGL/gl.h>
70 #include <wx/cmdline.h>
186 GLfloat
trans[3] = { 0.0, 0.0, 0.0 };
187 GLfloat
rot[3][3] = { { 1.0, 0.0, 0.0 },
197 GLfloat
black[4] = { 0.0, 0.0, 0.0, 1.0 };
198 GLfloat
gray[4] = { 0.5f, 0.5f, 0.5f, 1.0 };
199 GLfloat
wgray[4] = { 0.9f, 0.9f, 0.9f, 1.0 };
200 GLfloat
bgray[4] = { 0.1f, 0.1f, 0.1f, 1.0 };
201 GLfloat
white[4] = { 1.0, 1.0, 1.0, 1.0 };
202 GLfloat
cyan[4] = { 0.0, 1.0, 1.0, 1.0 };
204 GLfloat
yellow[4] = { 1.0, 1.0, 0.0, 1.0 };
205 GLfloat
red[4] = { 1.0, 0.0, 0.0, 1.0 };
206 GLfloat
green[4] = { 0.0, 1.0, 0.0, 1.0 };
207 GLfloat
blue[4] = { 0.0, 0.0, 1.0, 1.0 };
211 GLfloat
BarColor[5][4] = { { 0.0, 0.0, 1.0, 1.0 } , { 0.0, 1.0, 1.0, 1.0 } ,
212 { 0.0, 1.0, 0.0, 1.0 } ,{ 1.0, 1.0, 0.0, 1.0 } ,{ 1.0, 0.0, 0.0, 1.0 } };
254 GLfloat minmax[3][2];
256 printf(
"\n Batch mode.\n");
267 int ierr, i0, i1, i2;
269 if (!wxApp::OnInit())
return false;
274 *
terminal << wxT(
"##### Welocome to FermiSurfer ver. ") <<
275 wxT(VERSION) << wxT(
" #####\n");
279 printf(
" Input file is not specified !\n");
280 printf(
" Press any key to exit.\n");
294 *
terminal << wxT(
" Initialize variables ...\n");
299 if (
frmsf_file_name.AfterLast(wxUniChar(
'.')).CmpNoCase(wxT(
"bxsf")) == 0) {
309 kvp =
new GLfloat ***[
nb];
311 nmlp =
new GLfloat * **[
nb];
313 matp =
new GLfloat * **[
nb];
314 clr =
new GLfloat *[
nb];
315 arw =
new GLfloat * ***[
nb];
317 kvnl =
new GLfloat * **[
nb];
319 kv2d =
new GLfloat * [
nb];
321 kveq =
new GLfloat *** [
nb];
341 *
terminal << wxT(
" ## How to handle ###################\n");
343 *
terminal << wxT(
" mouse drag : Rotate objects\n");
344 *
terminal << wxT(
" mousewheel : Resize objects\n");
345 *
terminal << wxT(
" cursorkey or w,a,s,d : Move objects\n");
350 for (i0 = 0; i0 < 190; i0++)
351 for (i1 = 0; i1 < 2; i1++)
352 for (i2 = 0; i2 < 3; i2++)
354 for (i0 = 0; i0 < 3; i0++)
sphere_c[i0] = 0.0f;
365 wxApp::OnInitCmdLine(parser);
367 parser.AddParam(
"FRMSF file to plot.",
368 wxCMD_LINE_VAL_STRING, wxCMD_LINE_OPTION_MANDATORY);
369 parser.AddParam(
"Batch file",
370 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL);
371 parser.AddParam(
"Window Size x",
372 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL);
373 parser.AddParam(
"Window Size y",
374 wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL);
379 if (parser.GetParamCount() > 0) {
381 if (parser.GetParamCount() > 1) {
384 if (parser.GetParamCount() > 2) {
385 windowx = wxAtoi(parser.GetParam(2));
386 if (parser.GetParamCount() > 3) {
387 windowy = wxAtoi(parser.GetParam(3));
393 return wxApp::OnCmdLineParsed(parser);