BRL-CAD
faceplate.h
Go to the documentation of this file.
1 /* F A C E P L A T E . H
2  * BRL-CAD
3  *
4  * Copyright (c) 1993-2024 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @addtogroup bv_faceplate
21  *
22  */
23 /** @{ */
24 /** @file bv/faceplate.h */
25 
26 #ifndef DM_BV_FACEPLATE_H
27 #define DM_BV_FACEPLATE_H
28 
29 #include "common.h"
30 #include "vmath.h"
31 
32 struct bv_adc_state {
33  int draw;
34  int dv_x;
35  int dv_y;
36  int dv_a1;
37  int dv_a2;
38  int dv_dist;
46  int anchor_a1;
47  int anchor_a2;
52  int line_color[3];
53  int tick_color[3];
55 };
56 
57 struct bv_grid_state {
58  int rc;
59  int draw; /* draw grid */
60  int adaptive; /* adapt to view size */
61  int snap; /* snap to grid */
63  fastf_t res_h; /* grid resolution in h */
64  fastf_t res_v; /* grid resolution in v */
65  int res_major_h; /* major grid resolution in h */
66  int res_major_v; /* major grid resolution in v */
67  int color[3];
68 };
69 
71  int active; /* 1 - actively drawing a rectangle */
72  int draw; /* draw rubber band rectangle */
74  int line_style; /* 0 - solid, 1 - dashed */
75  int pos[2]; /* Position in image coordinates */
76  int dim[2]; /* Rectangle dimension in image coordinates */
77  fastf_t x; /* Corner of rectangle in normalized */
78  fastf_t y; /* ------ view coordinates (i.e. +-1.0). */
79  fastf_t width; /* Width and height of rectangle in */
80  fastf_t height; /* ------ normalized view coordinates. */
81  int bg[3]; /* Background color */
82  int color[3]; /* Rectangle color */
83  int cdim[2]; /* Canvas dimension in pixels */
84  fastf_t aspect; /* Canvas aspect ratio */
85 };
86 
87 
89  int draw; /* Overall on/off toggle */
90  int draw_size; /* Print view size */
91  int draw_center; /* Print view X,Y,Z center point */
92  int draw_az; /* Print view azimuth */
93  int draw_el; /* Print view elevation */
94  int draw_tw; /* Print view twist */
95  int draw_fps; /* Print frame per second */
96  int color[3]; /* Set params color */
97  int font_size; /* Set params font size */
98 };
99 
100 
102  int gos_draw;
106 };
107 
108 #endif /* DM_BV_FACEPLATE_H */
109 
110 /** @} */
111 /*
112  * Local Variables:
113  * mode: C
114  * tab-width: 8
115  * indent-tabs-mode: t
116  * c-file-style: "stroustrup"
117  * End:
118  * ex: shiftwidth=4 tabstop=8
119  */
Header file for the BRL-CAD common definitions.
double fastf_t
fastest 64-bit (or larger) floating point type
Definition: vmath.h:334
int line_color[3]
Definition: faceplate.h:52
fastf_t pos_grid[3]
Definition: faceplate.h:41
int tick_color[3]
Definition: faceplate.h:53
fastf_t anchor_pt_a1[3]
Definition: faceplate.h:49
int anchor_a2
Definition: faceplate.h:47
int line_width
Definition: faceplate.h:54
fastf_t anchor_pt_a2[3]
Definition: faceplate.h:50
int anchor_a1
Definition: faceplate.h:46
fastf_t pos_model[3]
Definition: faceplate.h:39
fastf_t pos_view[3]
Definition: faceplate.h:40
int anchor_pos
Definition: faceplate.h:45
fastf_t a2
Definition: faceplate.h:43
fastf_t a1
Definition: faceplate.h:42
fastf_t dst
Definition: faceplate.h:44
int anchor_dst
Definition: faceplate.h:48
fastf_t anchor_pt_dst[3]
Definition: faceplate.h:51
int res_major_h
Definition: faceplate.h:65
fastf_t res_h
Definition: faceplate.h:63
fastf_t anchor[3]
Definition: faceplate.h:62
fastf_t res_v
Definition: faceplate.h:64
int res_major_v
Definition: faceplate.h:66
int color[3]
Definition: faceplate.h:67
int gos_line_color[3]
Definition: faceplate.h:103
int gos_text_color[3]
Definition: faceplate.h:104
int color[3]
Definition: faceplate.h:96
fundamental vector, matrix, quaternion math macros