/* ------------------------------------------------------------------------- */ /* ezgraph3d.h -- Macros for EZGRAPH3D * * Copyright (C) 1996 - 1998, 2006 Dwight Barkley and Matthew Dowle * * RCS Information * --------------------------- * $Revision: 1.5.1.1 $ * $Date: 2007/05/07 10:07:03 $ * ------------------------------------------------------------------------- */ /* Modifications for EZView/bbxview: 2010, Vadim Biktashev vnb@liv.ac.uk */ #ifndef _EZGRAPH3D_ #define _EZGRAPH3D_ #define READLINE /* if readline library is installed and you wish */ /* to use it in parameter assignment dialogue; */ /* otherwise comment it out */ #define WINDOW_TITLE "bbxview" #define WINX -1 /* Window location, in pixels, from screen left */ #define WINY 0 /* Window location, in pixels, from screen top. */ #define WM_CTRLS_POS 0 /* If WM_CTRL_POS is 0 then the window is placed * at (WINX, WINY). If WM_CTRL_POS is 1 then WINX * and WINY are ignored and the location is * determined by the window manager. */ #define WINSIZE 600 /* Window is square of this size in pixels. */ #define PLOT_SIZE 1.2 /* This controls the size of the simulation * volume in the view port: >1.0 for larger * size, <1.0 for smaller size. */ #define PERSPECTIVE 1 /* 1 is perspective projection, 0 orthographic. * see myReshape(). */ #define DISTANCE 5.0 /* This is the distance that the screen is from * from the eye (measured in units of the largest * side of the simulations volume as it appears * on the screen). This is only relevant for * perspective projection. see myReshape() and * polarView(). */ #define START_PAUSED 1 /* If 1 then window is opened in paused mode * showing initial condition. */ #define INITIAL_THETA 130.0 /* Initial view (any value in [-180,180)). */ #define INITIAL_PHI 70.0 /* Initial view (any value in [-180,180)). */ #define ROTATE_SCALE 0.5 /* Number of degrees of rotation corresponding to * one pixel of mouse motion. */ #define BG_R 0.0 /* Background color red component */ #define BG_G 0.0 /* Background color green component */ #define BG_B 0.0 /* Background color blue component */ /* --------------------------------------------- * You probably should not change anything below * --------------------------------------------- */ #define TRUE 1 #define FALSE 0 #define U_FIELD 0 /* Symblic names */ #define V_FIELD 1 /* of field components */ /* #define NO_FIELD -1 */ #define ROT_LIST 1 #define BODY_LIST 2 #define BODY_ROT_LIST 3 #define MODE_SIMULATING 1 #define MODE_VIEWING 2 #define MODE_ROTATING 3 #ifdef READLINE #include #include #endif #endif /* _EZGRAPH3D_ */