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
;
39
fastf_t
pos_model
[3];
40
fastf_t
pos_view
[3];
41
fastf_t
pos_grid
[3];
42
fastf_t
a1
;
43
fastf_t
a2
;
44
fastf_t
dst
;
45
int
anchor_pos
;
46
int
anchor_a1
;
47
int
anchor_a2
;
48
int
anchor_dst
;
49
fastf_t
anchor_pt_a1
[3];
50
fastf_t
anchor_pt_a2
[3];
51
fastf_t
anchor_pt_dst
[3];
52
int
line_color
[3];
53
int
tick_color
[3];
54
int
line_width
;
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 */
62
fastf_t
anchor
[3];
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
70
struct
bv_interactive_rect_state
{
71
int
active
;
/* 1 - actively drawing a rectangle */
72
int
draw
;
/* draw rubber band rectangle */
73
int
line_width
;
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
88
struct
bv_params_state
{
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
101
struct
bv_other_state
{
102
int
gos_draw
;
103
int
gos_line_color
[3];
104
int
gos_text_color
[3];
105
int
gos_font_size
;
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
*/
common.h
Header file for the BRL-CAD common definitions.
fastf_t
double fastf_t
fastest 64-bit (or larger) floating point type
Definition:
vmath.h:334
bv_adc_state
Definition:
faceplate.h:32
bv_adc_state::draw
int draw
Definition:
faceplate.h:33
bv_adc_state::line_color
int line_color[3]
Definition:
faceplate.h:52
bv_adc_state::pos_grid
fastf_t pos_grid[3]
Definition:
faceplate.h:41
bv_adc_state::dv_a1
int dv_a1
Definition:
faceplate.h:36
bv_adc_state::tick_color
int tick_color[3]
Definition:
faceplate.h:53
bv_adc_state::anchor_pt_a1
fastf_t anchor_pt_a1[3]
Definition:
faceplate.h:49
bv_adc_state::dv_y
int dv_y
Definition:
faceplate.h:35
bv_adc_state::anchor_a2
int anchor_a2
Definition:
faceplate.h:47
bv_adc_state::line_width
int line_width
Definition:
faceplate.h:54
bv_adc_state::dv_x
int dv_x
Definition:
faceplate.h:34
bv_adc_state::anchor_pt_a2
fastf_t anchor_pt_a2[3]
Definition:
faceplate.h:50
bv_adc_state::anchor_a1
int anchor_a1
Definition:
faceplate.h:46
bv_adc_state::pos_model
fastf_t pos_model[3]
Definition:
faceplate.h:39
bv_adc_state::pos_view
fastf_t pos_view[3]
Definition:
faceplate.h:40
bv_adc_state::anchor_pos
int anchor_pos
Definition:
faceplate.h:45
bv_adc_state::a2
fastf_t a2
Definition:
faceplate.h:43
bv_adc_state::dv_a2
int dv_a2
Definition:
faceplate.h:37
bv_adc_state::a1
fastf_t a1
Definition:
faceplate.h:42
bv_adc_state::dst
fastf_t dst
Definition:
faceplate.h:44
bv_adc_state::anchor_dst
int anchor_dst
Definition:
faceplate.h:48
bv_adc_state::dv_dist
int dv_dist
Definition:
faceplate.h:38
bv_adc_state::anchor_pt_dst
fastf_t anchor_pt_dst[3]
Definition:
faceplate.h:51
bv_grid_state
Definition:
faceplate.h:57
bv_grid_state::draw
int draw
Definition:
faceplate.h:59
bv_grid_state::res_major_h
int res_major_h
Definition:
faceplate.h:65
bv_grid_state::adaptive
int adaptive
Definition:
faceplate.h:60
bv_grid_state::res_h
fastf_t res_h
Definition:
faceplate.h:63
bv_grid_state::snap
int snap
Definition:
faceplate.h:61
bv_grid_state::anchor
fastf_t anchor[3]
Definition:
faceplate.h:62
bv_grid_state::res_v
fastf_t res_v
Definition:
faceplate.h:64
bv_grid_state::rc
int rc
Definition:
faceplate.h:58
bv_grid_state::res_major_v
int res_major_v
Definition:
faceplate.h:66
bv_grid_state::color
int color[3]
Definition:
faceplate.h:67
bv_interactive_rect_state
Definition:
faceplate.h:70
bv_interactive_rect_state::line_style
int line_style
Definition:
faceplate.h:74
bv_interactive_rect_state::height
fastf_t height
Definition:
faceplate.h:80
bv_interactive_rect_state::dim
int dim[2]
Definition:
faceplate.h:76
bv_interactive_rect_state::draw
int draw
Definition:
faceplate.h:72
bv_interactive_rect_state::cdim
int cdim[2]
Definition:
faceplate.h:83
bv_interactive_rect_state::pos
int pos[2]
Definition:
faceplate.h:75
bv_interactive_rect_state::line_width
int line_width
Definition:
faceplate.h:73
bv_interactive_rect_state::bg
int bg[3]
Definition:
faceplate.h:81
bv_interactive_rect_state::x
fastf_t x
Definition:
faceplate.h:77
bv_interactive_rect_state::width
fastf_t width
Definition:
faceplate.h:79
bv_interactive_rect_state::y
fastf_t y
Definition:
faceplate.h:78
bv_interactive_rect_state::aspect
fastf_t aspect
Definition:
faceplate.h:84
bv_interactive_rect_state::active
int active
Definition:
faceplate.h:71
bv_interactive_rect_state::color
int color[3]
Definition:
faceplate.h:82
bv_other_state
Definition:
faceplate.h:101
bv_other_state::gos_line_color
int gos_line_color[3]
Definition:
faceplate.h:103
bv_other_state::gos_text_color
int gos_text_color[3]
Definition:
faceplate.h:104
bv_other_state::gos_font_size
int gos_font_size
Definition:
faceplate.h:105
bv_other_state::gos_draw
int gos_draw
Definition:
faceplate.h:102
bv_params_state
Definition:
faceplate.h:88
bv_params_state::draw
int draw
Definition:
faceplate.h:89
bv_params_state::font_size
int font_size
Definition:
faceplate.h:97
bv_params_state::draw_center
int draw_center
Definition:
faceplate.h:91
bv_params_state::draw_fps
int draw_fps
Definition:
faceplate.h:95
bv_params_state::draw_az
int draw_az
Definition:
faceplate.h:92
bv_params_state::draw_el
int draw_el
Definition:
faceplate.h:93
bv_params_state::color
int color[3]
Definition:
faceplate.h:96
bv_params_state::draw_tw
int draw_tw
Definition:
faceplate.h:94
bv_params_state::draw_size
int draw_size
Definition:
faceplate.h:90
vmath.h
fundamental vector, matrix, quaternion math macros
include
bv
faceplate.h
Generated on Wed Sep 25 2024 01:05:28 for BRL-CAD by
1.9.1