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-2023 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
snap
;
/* snap to grid */
61
fastf_t
anchor
[3];
62
fastf_t
res_h
;
/* grid resolution in h */
63
fastf_t
res_v
;
/* grid resolution in v */
64
int
res_major_h
;
/* major grid resolution in h */
65
int
res_major_v
;
/* major grid resolution in v */
66
int
color
[3];
67
};
68
69
struct
bv_interactive_rect_state
{
70
int
active
;
/* 1 - actively drawing a rectangle */
71
int
draw
;
/* draw rubber band rectangle */
72
int
line_width
;
73
int
line_style
;
/* 0 - solid, 1 - dashed */
74
int
pos
[2];
/* Position in image coordinates */
75
int
dim
[2];
/* Rectangle dimension in image coordinates */
76
fastf_t
x
;
/* Corner of rectangle in normalized */
77
fastf_t
y
;
/* ------ view coordinates (i.e. +-1.0). */
78
fastf_t
width
;
/* Width and height of rectangle in */
79
fastf_t
height
;
/* ------ normalized view coordinates. */
80
int
bg
[3];
/* Background color */
81
int
color
[3];
/* Rectangle color */
82
int
cdim
[2];
/* Canvas dimension in pixels */
83
fastf_t
aspect
;
/* Canvas aspect ratio */
84
};
85
86
struct
bv_other_state
{
87
int
gos_draw
;
88
int
gos_line_color
[3];
89
int
gos_text_color
[3];
90
};
91
92
#endif
/* DM_BV_FACEPLATE_H */
93
94
/** @} */
95
/*
96
* Local Variables:
97
* mode: C
98
* tab-width: 8
99
* indent-tabs-mode: t
100
* c-file-style: "stroustrup"
101
* End:
102
* ex: shiftwidth=4 tabstop=8
103
*/
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:330
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:64
bv_grid_state::res_h
fastf_t res_h
Definition:
faceplate.h:62
bv_grid_state::snap
int snap
Definition:
faceplate.h:60
bv_grid_state::anchor
fastf_t anchor[3]
Definition:
faceplate.h:61
bv_grid_state::res_v
fastf_t res_v
Definition:
faceplate.h:63
bv_grid_state::rc
int rc
Definition:
faceplate.h:58
bv_grid_state::res_major_v
int res_major_v
Definition:
faceplate.h:65
bv_grid_state::color
int color[3]
Definition:
faceplate.h:66
bv_interactive_rect_state
Definition:
faceplate.h:69
bv_interactive_rect_state::line_style
int line_style
Definition:
faceplate.h:73
bv_interactive_rect_state::height
fastf_t height
Definition:
faceplate.h:79
bv_interactive_rect_state::dim
int dim[2]
Definition:
faceplate.h:75
bv_interactive_rect_state::draw
int draw
Definition:
faceplate.h:71
bv_interactive_rect_state::cdim
int cdim[2]
Definition:
faceplate.h:82
bv_interactive_rect_state::pos
int pos[2]
Definition:
faceplate.h:74
bv_interactive_rect_state::line_width
int line_width
Definition:
faceplate.h:72
bv_interactive_rect_state::bg
int bg[3]
Definition:
faceplate.h:80
bv_interactive_rect_state::x
fastf_t x
Definition:
faceplate.h:76
bv_interactive_rect_state::width
fastf_t width
Definition:
faceplate.h:78
bv_interactive_rect_state::y
fastf_t y
Definition:
faceplate.h:77
bv_interactive_rect_state::aspect
fastf_t aspect
Definition:
faceplate.h:83
bv_interactive_rect_state::active
int active
Definition:
faceplate.h:70
bv_interactive_rect_state::color
int color[3]
Definition:
faceplate.h:81
bv_other_state
Definition:
faceplate.h:86
bv_other_state::gos_line_color
int gos_line_color[3]
Definition:
faceplate.h:88
bv_other_state::gos_text_color
int gos_text_color[3]
Definition:
faceplate.h:89
bv_other_state::gos_draw
int gos_draw
Definition:
faceplate.h:87
vmath.h
fundamental vector, matrix, quaternion math macros
include
bv
faceplate.h
Generated on Tue Mar 7 2023 23:41:50 for BRL-CAD by
1.9.3