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
33 int draw;
34 int dv_x;
35 int dv_y;
36 int dv_a1;
37 int dv_a2;
52 int line_color[3];
53 int tick_color[3];
55};
56
58 int rc;
59 int draw; /* draw grid */
60 int snap; /* snap to grid */
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
70 int active; /* 1 - actively drawing a rectangle */
71 int draw; /* draw rubber band rectangle */
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
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 */
Header file for the BRL-CAD common definitions.
double fastf_t
fastest 64-bit (or larger) floating point type
Definition: vmath.h:330
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:64
fastf_t res_h
Definition: faceplate.h:62
fastf_t anchor[3]
Definition: faceplate.h:61
fastf_t res_v
Definition: faceplate.h:63
int res_major_v
Definition: faceplate.h:65
int color[3]
Definition: faceplate.h:66
int gos_line_color[3]
Definition: faceplate.h:88
int gos_text_color[3]
Definition: faceplate.h:89
fundamental vector, matrix, quaternion math macros