1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 
6 #ifndef HECMW_VIS_PSF_RENDERING_H_INCLUDED
7 #define HECMW_VIS_PSF_RENDERING_H_INCLUDED
8 
9 /*#define  ResSize 1
10 #define  PixelSize 1
11 #define  DIGN_PE  2
12  */
13 #define BAR_WIDTH 10
14 #define NUM_CONTROL_PARAS2 49
15 #define SQR(x) (x) * (x)
16 #define PI 3.1415926
17 
18 typedef struct _rendering_parameter_struct {
19   int xr;
20   int yr;
21   int projection_style;
22   int num_of_lights;
23 
24   double view_point_d[3];
25   double screen_point[3];
26   double up[3];
27   double k_ads[3];
28   int color_mapping_style;
29   double *light_point;
30   int interval_mapping_num;
31   double *interval_point; /* 2:mincolor, maxcolor 3: interval_mapping_num*2
32                              (value, mark_value) */
33   int transfer_function_style;
34   /*  1: constant    input: value
35 2: first-order derivatives  input: none
36   3: feature points  input:  num_of_featurepoints, point[num]
37   4: feature intervals  input: num_of_intervals  point[num*2]
38   5: distance inverse
39   6: distance proportional
40   7: look-up table      input: name of the look-up table file
41    */
42   double opa_value;
43   int num_of_features;
44   double *fea_point;
45   char name_lookup[128];
46 
47   int rotate_style;
48   int color_mapping_bar_on;
49   int scale_marking_on;
50   int rotate_num_of_frames;
51   int deform_num_of_frames;
52   double background_color[3];
53   double font_color[3];
54   int color_system_type;
55   double font_size;
56   int color_bar_style;
57   int fixed_range_on;
58   double range_value[2];
59   int num_of_scale;
60   int mark_0_on;
61   int histogram_on;
62   int boundary_line_on;
63   double isoline_color[3];
64   int time_mark_on;
65   int fixed_scale_mark;
66   int smooth_shading;
67   double fixed_mesh_range[6];
68   double start_time;
69   double time_interval;
70 } Parameter_rendering;
71 /*
72 Parameter_rendering *sr;
73  */
74 
75 #endif /* HECMW_VIS_PSF_RENDERING_H_INCLUDED */
76