home *** CD-ROM | disk | FTP | other *** search
/ Photo CD Demo 1 / Demo.bin / graphtal / options.h < prev    next >
C/C++ Source or Header  |  1992-10-21  |  1KB  |  72 lines

  1. /*
  2.  * Options.h - collection of program options.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  * All rights reserved.
  6.  *
  7.  * This software may be freely copied, modified, and redistributed
  8.  * provided that this copyright notice is preserved on all copies.
  9.  *
  10.  * You may not distribute this software, in whole or in part, as part of
  11.  * any commercial product without the express consent of the authors.
  12.  *
  13.  * There is no warranty or other guarantee of fitness of this software
  14.  * for any purpose.  It is provided solely "as is".
  15.  *
  16.  */
  17.  
  18. #ifndef Options_H
  19. # define Options_H
  20.  
  21. #include "rcString.h"
  22. #include "Vector.h"
  23.  
  24. //___________________________________________________________ Options
  25.  
  26. class Expression;
  27. class HullSymtab;
  28.  
  29. struct Options
  30. {
  31.   Options();
  32.  
  33.   rcString iname;
  34.   rcString oname;
  35.   rcString drivername;
  36.   rcString optionsForCPP;
  37.  
  38.   int      verbose;
  39.   int      quiet;
  40.   int      printlsys;
  41.   int      printModules;
  42.   int      deleteModules;
  43.   int      resX;
  44.   int      resY;
  45.   Vector   eye;
  46.   Vector   lookat;
  47.   Vector   up;
  48.   double   fov;
  49.   int      autoscale;
  50.   int      coneSpheres;
  51.   int      showHulls;
  52.   int      coneResolution;
  53.   int      sphereResolution;
  54.  
  55.   real defaultForward;
  56.   real defaultPitch;
  57.   real defaultTurn;
  58.   real defaultRoll;
  59.  
  60.   Expression* tropismX;
  61.   Expression* tropismY;
  62.   Expression* tropismZ;
  63.   Expression* weight;
  64.   HullSymtab* hulls;
  65. };
  66.  
  67. extern Options theOptions;
  68.  
  69. void parseOptions(int, char**);
  70.  
  71. #endif // Options_H
  72.