Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

xhrdplot.h File Reference

#include <strstream.h>
#include "stdinc.h"

Go to the source code of this file.

Defines

#define HALF_ROOT2   0.707106781186547524400844362105
#define ROOT2   1.414213562373095048801688724210
#define GRAPH_WINDOW   1
#define POPUP_WINDOW   2
#define DIALOG_WINDOW   3
#define BUTTON_WINDOW   4
#define INPUT_WINDOW   5
#define TEXT_WINDOW   6
#define NO_TYPE   0
#define OK_BUTTON   1
#define CANCEL_BUTTON   2
#define CHECK_BUTTON   3
#define OK_KEEP_BUTTON   4
#define lux_openwin   LUX_openwin
#define lux_setup_region   LUX_setup_region
#define lux_clear_current_region   LUX_clear_current_region
#define lux_setup_axis   LUX_setup_axis
#define lux_draw_linef   LUX_draw_linef
#define lux_draw_pointf   LUX_draw_pointf
#define lux_draw_rectanglef   LUX_draw_rectanglef
#define lux_draw_arcf   LUX_draw_arcf
#define lux_fill_arcf   LUX_fill_arcf
#define lux_draw_axis   LUX_draw_axis
#define lux_getevent   LUX_getevent
#define lux_exit   LUX_quick_exit
#define lux_set_color   LUX_set_color
#define lux_lookup_color   LUX_lookup_color
#define lux_rgb_pixel   LUX_rgb_pixel
#define lux_draw_vstring   LUX_draw_vstring
#define lux_draw_string   LUX_draw_string
#define lux_draw_image_string   LUX_draw_image_string
#define lux_check_keypress   LUX_check_keypress
#define lux_check_buttonpress   LUX_check_buttonpress
#define lux_open_dialog   LUX_open_dialog
#define lux_draw_palette   LUX_draw_palette
#define lux_set_item   LUX_set_item
#define lux_get_itemvalue   LUX_get_itemvalue
#define lux_update_itemvalue   LUX_update_itemvalue
#define lux_clear_window   LUX_clear_window
#define lux_reset_window   LUX_reset_window
#define lux_update_fg   LUX_update_fg
#define lux_show_dialog   LUX_show_dialog
#define lux_reconvert_rcoord   LUX_reconvert_rcoord
#define lux_set_linestyle   LUX_set_linestyle
#define lux_set_window_name   LUX_set_window_name
#define lux_set_window_bgcolor   LUX_set_window_bgcolor
#define lux_set_bgcolor   LUX_set_bgcolor
#define lux_set_noupdate   LUX_set_noupdate
#define lux_next_keypress   LUX_next_keypress
#define background_color   0
#define default_color   1
#define bound_single   2
#define bound_binary   3
#define unbound_single   4
#define unbound_binary   5
#define N_COLORS   16
#define NV_COLOR1   "black"
#define NV_COLOR2   "red"
#define NV_COLOR3   "limegreen"
#define NV_COLOR4   "blue"
#define NV_COLOR5   "gold"
#define NV_COLOR6   "magenta"
#define NV_COLOR7   "dark goldenrod"
#define NV_COLOR8   "lightpink"
#define NV_COLOR9   "aquamarine"
#define NV_COLORa   "cyan"
#define NV_COLORb   "lightgrey"
#define NV_COLORc   "turquoise"
#define NV_COLORd   "gold"
#define NV_COLORe   "thistle"
#define NV_COLORf   "beige"
#define NV_COLORg   "plum"
#define RV_COLOR1   "white"
#define RV_COLOR2   "red"
#define RV_COLOR3   "green"
#define RV_COLOR4   "lightblue"
#define RV_COLOR5   "yellow"
#define RV_COLOR6   "magenta"
#define RV_COLOR7   "orange"
#define RV_COLOR8   "pink"
#define RV_COLOR9   "aquamarine"
#define RV_COLORa   "cyan"
#define RV_COLORb   "lightgrey"
#define RV_COLORc   "turquoise"
#define RV_COLORd   "gold"
#define RV_COLORe   "thistle"
#define RV_COLORf   "beige"
#define RV_COLORg   "plum"
#define TAB   " "
#define FAC3D   1.75
#define ZOOM   ROOT2
#define PFAC   1.1892
#define SMALL_DOT_SIZE   (lmax3d/60.0)
#define _R_(i)   ((int)( ((float)i)*r_factor + 0.5 ))

Enumerations

enum  {
  colorenergy = 1, tracking, graph3dim, xminimum,
  xmaximum, yminimum, ymaximum, basepointsize,
  pointscalemode, lmax3D, theta3D, phi3D,
  DelayTime, dtheta3D, Origin, Xorigin,
  Yorigin, Zorigin, View2D, view2D,
  originstar, OriginStar
}
enum  { ok = 1, ok_keep, cancel }

Functions

unsigned long lux_openwin (int, int, int, int)
int lux_set_window_name (unsigned long, char *)
int lux_setup_region (unsigned long, float, float, float, float)
int lux_clear_current_region (unsigned long)
int lux_setup_axis (unsigned long, float, float, float, float)
int lux_draw_linef (unsigned long, float, float, float, float)
int lux_draw_pointf (unsigned long, float, float)
int lux_draw_rectanglef (unsigned long, float, float, float, float)
int lux_draw_arcf (unsigned long, float, float, float, float, float, float)
int lux_fill_arcf (unsigned long, float, float, float, float, float, float)
int lux_draw_axis (unsigned long)
int lux_getevent ()
int lux_exit ()
int lux_set_color (unsigned long, long)
int lux_set_window_bgcolor (unsigned long, long)
int lux_set_bgcolor (unsigned long, long)
unsigned long lux_rgb_pixel (unsigned long, float, float, float)
unsigned long lux_lookup_color (unsigned long, char *)
int lux_draw_string (unsigned long, float, float, float, char *, char)
int lux_draw_vstring (unsigned long, float, float, float, char *, char)
int lux_draw_image_string (unsigned long, float, float, float, char *, char)
int lux_check_keypress (unsigned long, char)
int lux_check_buttonpress (unsigned long)
unsigned long lux_open_dialog (int, int, int, int)
int lux_set_item (unsigned long, int, int, int, int, int, int, char *)
int lux_draw_palette (unsigned long)
int lux_get_itemvalue (unsigned long, int, int, int, char *)
int lux_update_itemvalue (unsigned long, int, int, int, char *)
int lux_clear_window (unsigned long)
int lux_reset_window (unsigned long)
int lux_update_fg (unsigned long)
int lux_show_dialog (unsigned long)
int lux_reconvert_rcoord (unsigned long, int, int, float *, float *)
int lux_set_linestyle (unsigned long, int)
int lux_set_noupdate (unsigned long)
int lux_next_keypress (unsigned long, char *, char *, char *, char *)
int get_mouse_position (unsigned long, float *, float *)
void set_default_font (char *)
void lux_pause (int)
void initialize_graphics (float, bool, unsigned long &, unsigned long &, unsigned long &, unsigned long *, unsigned long *, int &, int &, int &)
void project3d (float, float, float, float &, float &, float, float, float, float, float, float, float, float &)
void project3d (float, float, float, float &, float &, float, float, float, float)
void draw3d_axis (unsigned long, float, float, float, float, float)
void draw2d_axis (unsigned long, float, float, float, float, int)
void update_with_delay (unsigned long, float)
void show_instructions (unsigned long, float, char *, int)
void show_instructions (unsigned long, float, char *, int, int)
void show_main_instructions (unsigned long, float, int, int)
void format_and_show_instructions (unsigned long, float, unsigned long *, int, int, char *, int, int)
void show_color_scheme (unsigned long, unsigned long *, unsigned long *, float, char, bool, int)
void init_colors (unsigned long, unsigned long *, unsigned long *, bool)
void set_limits (float *, float, int, float &, float &, int, float &, float &)
float interp_to_x (float, float, float, float, float)
float interp_to_y (float, float, float, float, float)
void initialize_hrd_graphics (float, bool, unsigned long &, unsigned long &, unsigned long &, unsigned long *, unsigned long *, int &, int &, int &)
void show_hrd_color_scheme (unsigned long, unsigned long *, unsigned long *, float, char, bool, int)


Define Documentation

#define BUTTON_WINDOW   4
 

Definition at line 11 of file xhrdplot.h.

#define CANCEL_BUTTON   2
 

Definition at line 17 of file xhrdplot.h.

#define CHECK_BUTTON   3
 

Definition at line 18 of file xhrdplot.h.

#define DIALOG_WINDOW   3
 

Definition at line 10 of file xhrdplot.h.

#define FAC3D   1.75
 

Definition at line 159 of file xhrdplot.h.

#define GRAPH_WINDOW   1
 

Definition at line 8 of file xhrdplot.h.

#define HALF_ROOT2   0.707106781186547524400844362105
 

Definition at line 5 of file xhrdplot.h.

#define INPUT_WINDOW   5
 

Definition at line 12 of file xhrdplot.h.

#define NO_TYPE   0
 

Definition at line 15 of file xhrdplot.h.

#define NV_COLOR1   "black"
 

Definition at line 121 of file xhrdplot.h.

#define NV_COLOR2   "red"
 

Definition at line 122 of file xhrdplot.h.

#define NV_COLOR3   "limegreen"
 

Definition at line 123 of file xhrdplot.h.

#define NV_COLOR4   "blue"
 

Definition at line 124 of file xhrdplot.h.

#define NV_COLOR5   "gold"
 

Definition at line 125 of file xhrdplot.h.

#define NV_COLOR6   "magenta"
 

Definition at line 126 of file xhrdplot.h.

#define NV_COLOR7   "dark goldenrod"
 

Definition at line 127 of file xhrdplot.h.

#define NV_COLOR8   "lightpink"
 

Definition at line 128 of file xhrdplot.h.

#define NV_COLOR9   "aquamarine"
 

Definition at line 129 of file xhrdplot.h.

#define NV_COLORa   "cyan"
 

Definition at line 130 of file xhrdplot.h.

#define NV_COLORb   "lightgrey"
 

Definition at line 131 of file xhrdplot.h.

#define NV_COLORc   "turquoise"
 

Definition at line 132 of file xhrdplot.h.

#define NV_COLORd   "gold"
 

Definition at line 133 of file xhrdplot.h.

#define NV_COLORe   "thistle"
 

Definition at line 134 of file xhrdplot.h.

#define NV_COLORf   "beige"
 

Definition at line 135 of file xhrdplot.h.

#define NV_COLORg   "plum"
 

Definition at line 136 of file xhrdplot.h.

#define N_COLORS   16
 

Definition at line 117 of file xhrdplot.h.

#define OK_BUTTON   1
 

Definition at line 16 of file xhrdplot.h.

#define OK_KEEP_BUTTON   4
 

Definition at line 19 of file xhrdplot.h.

#define PFAC   1.1892
 

Definition at line 162 of file xhrdplot.h.

#define POPUP_WINDOW   2
 

Definition at line 9 of file xhrdplot.h.

#define ROOT2   1.414213562373095048801688724210
 

Definition at line 6 of file xhrdplot.h.

#define RV_COLOR1   "white"
 

Definition at line 138 of file xhrdplot.h.

#define RV_COLOR2   "red"
 

Definition at line 139 of file xhrdplot.h.

#define RV_COLOR3   "green"
 

Definition at line 140 of file xhrdplot.h.

#define RV_COLOR4   "lightblue"
 

Definition at line 141 of file xhrdplot.h.

#define RV_COLOR5   "yellow"
 

Definition at line 142 of file xhrdplot.h.

#define RV_COLOR6   "magenta"
 

Definition at line 143 of file xhrdplot.h.

#define RV_COLOR7   "orange"
 

Definition at line 144 of file xhrdplot.h.

#define RV_COLOR8   "pink"
 

Definition at line 145 of file xhrdplot.h.

#define RV_COLOR9   "aquamarine"
 

Definition at line 146 of file xhrdplot.h.

#define RV_COLORa   "cyan"
 

Definition at line 147 of file xhrdplot.h.

#define RV_COLORb   "lightgrey"
 

Definition at line 148 of file xhrdplot.h.

#define RV_COLORc   "turquoise"
 

Definition at line 149 of file xhrdplot.h.

#define RV_COLORd   "gold"
 

Definition at line 150 of file xhrdplot.h.

#define RV_COLORe   "thistle"
 

Definition at line 151 of file xhrdplot.h.

#define RV_COLORf   "beige"
 

Definition at line 152 of file xhrdplot.h.

#define RV_COLORg   "plum"
 

Definition at line 153 of file xhrdplot.h.

#define SMALL_DOT_SIZE   (lmax3d/60.0)
 

Definition at line 215 of file xhrdplot.h.

#define TAB   " "
 

Definition at line 155 of file xhrdplot.h.

#define TEXT_WINDOW   6
 

Definition at line 13 of file xhrdplot.h.

#define ZOOM   ROOT2
 

Definition at line 161 of file xhrdplot.h.

#define _R_( i )   ((int)( ((float)i)*r_factor + 0.5 ))
 

Definition at line 219 of file xhrdplot.h.

#define background_color   0
 

Definition at line 108 of file xhrdplot.h.

#define bound_binary   3
 

Definition at line 111 of file xhrdplot.h.

#define bound_single   2
 

Definition at line 110 of file xhrdplot.h.

#define default_color   1
 

Definition at line 109 of file xhrdplot.h.

#define lux_check_buttonpress   LUX_check_buttonpress
 

Definition at line 43 of file xhrdplot.h.

#define lux_check_keypress   LUX_check_keypress
 

Definition at line 42 of file xhrdplot.h.

#define lux_clear_current_region   LUX_clear_current_region
 

Definition at line 26 of file xhrdplot.h.

#define lux_clear_window   LUX_clear_window
 

Definition at line 49 of file xhrdplot.h.

#define lux_draw_arcf   LUX_draw_arcf
 

Definition at line 31 of file xhrdplot.h.

#define lux_draw_axis   LUX_draw_axis
 

Definition at line 33 of file xhrdplot.h.

#define lux_draw_image_string   LUX_draw_image_string
 

Definition at line 41 of file xhrdplot.h.

#define lux_draw_linef   LUX_draw_linef
 

Definition at line 28 of file xhrdplot.h.

#define lux_draw_palette   LUX_draw_palette
 

Definition at line 45 of file xhrdplot.h.

#define lux_draw_pointf   LUX_draw_pointf
 

Definition at line 29 of file xhrdplot.h.

#define lux_draw_rectanglef   LUX_draw_rectanglef
 

Definition at line 30 of file xhrdplot.h.

#define lux_draw_string   LUX_draw_string
 

Definition at line 40 of file xhrdplot.h.

#define lux_draw_vstring   LUX_draw_vstring
 

Definition at line 39 of file xhrdplot.h.

#define lux_exit   LUX_quick_exit
 

Definition at line 35 of file xhrdplot.h.

#define lux_fill_arcf   LUX_fill_arcf
 

Definition at line 32 of file xhrdplot.h.

#define lux_get_itemvalue   LUX_get_itemvalue
 

Definition at line 47 of file xhrdplot.h.

#define lux_getevent   LUX_getevent
 

Definition at line 34 of file xhrdplot.h.

#define lux_lookup_color   LUX_lookup_color
 

Definition at line 37 of file xhrdplot.h.

#define lux_next_keypress   LUX_next_keypress
 

Definition at line 59 of file xhrdplot.h.

#define lux_open_dialog   LUX_open_dialog
 

Definition at line 44 of file xhrdplot.h.

#define lux_openwin   LUX_openwin
 

Definition at line 24 of file xhrdplot.h.

#define lux_reconvert_rcoord   LUX_reconvert_rcoord
 

Definition at line 53 of file xhrdplot.h.

#define lux_reset_window   LUX_reset_window
 

Definition at line 50 of file xhrdplot.h.

#define lux_rgb_pixel   LUX_rgb_pixel
 

Definition at line 38 of file xhrdplot.h.

#define lux_set_bgcolor   LUX_set_bgcolor
 

Definition at line 57 of file xhrdplot.h.

#define lux_set_color   LUX_set_color
 

Definition at line 36 of file xhrdplot.h.

#define lux_set_item   LUX_set_item
 

Definition at line 46 of file xhrdplot.h.

#define lux_set_linestyle   LUX_set_linestyle
 

Definition at line 54 of file xhrdplot.h.

#define lux_set_noupdate   LUX_set_noupdate
 

Definition at line 58 of file xhrdplot.h.

#define lux_set_window_bgcolor   LUX_set_window_bgcolor
 

Definition at line 56 of file xhrdplot.h.

#define lux_set_window_name   LUX_set_window_name
 

Definition at line 55 of file xhrdplot.h.

#define lux_setup_axis   LUX_setup_axis
 

Definition at line 27 of file xhrdplot.h.

#define lux_setup_region   LUX_setup_region
 

Definition at line 25 of file xhrdplot.h.

#define lux_show_dialog   LUX_show_dialog
 

Definition at line 52 of file xhrdplot.h.

#define lux_update_fg   LUX_update_fg
 

Definition at line 51 of file xhrdplot.h.

#define lux_update_itemvalue   LUX_update_itemvalue
 

Definition at line 48 of file xhrdplot.h.

#define unbound_binary   5
 

Definition at line 113 of file xhrdplot.h.

#define unbound_single   4
 

Definition at line 112 of file xhrdplot.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
colorenergy  
tracking  
graph3dim  
xminimum  
xmaximum  
yminimum  
ymaximum  
basepointsize  
pointscalemode  
lmax3D  
theta3D  
phi3D  
DelayTime  
dtheta3D  
Origin  
Xorigin  
Yorigin  
Zorigin  
View2D  
view2D  
originstar  
OriginStar  

Definition at line 164 of file xhrdplot.h.

anonymous enum
 

Enumeration values:
ok  
ok_keep  
cancel  

Definition at line 171 of file xhrdplot.h.


Function Documentation

void draw2d_axis ( unsigned long win,
float xmin,
float xmax,
float ymin,
float ymax,
int k )
 

void draw3d_axis ( unsigned long win,
float lmax,
float ct,
float st,
float cp,
float sp )
 

void format_and_show_instructions ( unsigned long co,
float r,
unsigned long * c_i,
int index,
int tab,
char * cstring,
int line,
int u )
 

int get_mouse_position ( unsigned long,
float *,
float * )
 

void init_colors ( unsigned long win,
unsigned long * ce,
unsigned long * ci,
bool b_flag )
 

void initialize_graphics ( float r_factor,
bool b_flag,
unsigned long & win,
unsigned long & instr,
unsigned long & colwin,
unsigned long * c_index,
unsigned long * c_energy,
int & win_size,
int & xorigin,
int & yorigin )
 

void initialize_hrd_graphics ( float r_factor,
bool b_flag,
unsigned long & hrd_win,
unsigned long & hrd_instr,
unsigned long & hrd_colwin,
unsigned long * c_index,
unsigned long * c_energy,
int & win_size,
int & hrd_xorigin,
int & hrd_yorigin )
 

Definition at line 11 of file hrd_util.C.

Referenced by xhrdplot().

float interp_to_x ( float r,
float s,
float rr,
float ss,
float x )
 

float interp_to_y ( float r,
float s,
float rr,
float ss,
float y )
 

int lux_check_buttonpress ( unsigned long )
 

int lux_check_keypress ( unsigned long,
char )
 

int lux_clear_current_region ( unsigned long )
 

int lux_clear_window ( unsigned long )
 

int lux_draw_arcf ( unsigned long,
float,
float,
float,
float,
float,
float )
 

int lux_draw_axis ( unsigned long )
 

int lux_draw_image_string ( unsigned long,
float,
float,
float,
char *,
char )
 

int lux_draw_linef ( unsigned long,
float,
float,
float,
float )
 

int lux_draw_palette ( unsigned long )
 

int lux_draw_pointf ( unsigned long,
float,
float )
 

int lux_draw_rectanglef ( unsigned long,
float,
float,
float,
float )
 

int lux_draw_string ( unsigned long,
float,
float,
float,
char *,
char )
 

int lux_draw_vstring ( unsigned long,
float,
float,
float,
char *,
char )
 

int lux_exit ( )
 

int lux_fill_arcf ( unsigned long,
float,
float,
float,
float,
float,
float )
 

int lux_get_itemvalue ( unsigned long,
int,
int,
int,
char * )
 

int lux_getevent ( )
 

unsigned long lux_lookup_color ( unsigned long,
char * )
 

int lux_next_keypress ( unsigned long,
char *,
char *,
char *,
char * )
 

unsigned long lux_open_dialog ( int,
int,
int,
int )
 

unsigned long lux_openwin ( int,
int,
int,
int )
 

void lux_pause ( int )
 

int lux_reconvert_rcoord ( unsigned long,
int,
int,
float *,
float * )
 

int lux_reset_window ( unsigned long )
 

unsigned long lux_rgb_pixel ( unsigned long,
float,
float,
float )
 

int lux_set_bgcolor ( unsigned long,
long )
 

int lux_set_color ( unsigned long,
long )
 

int lux_set_item ( unsigned long,
int,
int,
int,
int,
int,
int,
char * )
 

int lux_set_linestyle ( unsigned long,
int )
 

int lux_set_noupdate ( unsigned long )
 

int lux_set_window_bgcolor ( unsigned long,
long )
 

int lux_set_window_name ( unsigned long,
char * )
 

int lux_setup_axis ( unsigned long,
float,
float,
float,
float )
 

int lux_setup_region ( unsigned long,
float,
float,
float,
float )
 

int lux_show_dialog ( unsigned long )
 

int lux_update_fg ( unsigned long )
 

int lux_update_itemvalue ( unsigned long,
int,
int,
int,
char * )
 

void project3d ( float x,
float y,
float z,
float & X,
float & Y,
float ct,
float st,
float cp,
float sp )
 

void project3d ( float x,
float y,
float z,
float & X,
float & Y,
float ct,
float st,
float cp,
float sp,
float vx,
float vy,
float vz,
float & dv2 )
 

void set_default_font ( char * font )
 

void set_limits ( float * origin,
float lmax3d,
int kx,
float & xmin,
float & xmax,
int ky,
float & ymin,
float & ymax )
 

void show_color_scheme ( unsigned long co,
unsigned long * c_e,
unsigned long * c_i,
float r,
char ce,
bool b_flag,
int u )
 

void show_hrd_color_scheme ( unsigned long co,
unsigned long * c_e,
unsigned long * c_i,
float r,
char ce,
bool b_flag,
int u )
 

Definition at line 188 of file hrd_util.C.

Referenced by check_for_input(), xhrdplot(), and xstarplot().

void show_instructions ( unsigned long win,
float r,
char * buffer,
int line,
int update )
 

void show_instructions ( unsigned long win,
float r,
char * buffer,
int update )
 

void show_main_instructions ( unsigned long instr,
float r,
int d,
int u )
 

void update_with_delay ( unsigned long win,
float t )
 


Generated at Sun Feb 24 09:57:32 2002 for STARLAB by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001