Orbiter 2022
Combinatorial Objects
draw_incidence_structure_description.cpp
Go to the documentation of this file.
1/*
2 * draw_incidence_structure_description.cpp
3 *
4 * Created on: Dec 5, 2021
5 * Author: betten
6 */
7
8
9
10#include "foundations.h"
11
12
13using namespace std;
14
15
16namespace orbiter {
17namespace layer1_foundations {
18namespace graphics {
19
20
22{
23 f_width = FALSE;
24 width = 40;
25
27 width_10 = 10;
28
30
32 unit_length.assign("0.065mm");
33
35 thick_lines.assign("0.5mm");
36
38 thin_lines.assign("0.15mm");
39
41 geo_line_width.assign("0.25mm");
42
43
44 v = 0;
45 b = 0;
46 V = 0;
47 B = 0;
48 Vi = NULL;
49 Bj = NULL;
50
51#if 0
52 int *R;
53 int *X;
54 int dim_X;
55#endif
56
58 point_labels = NULL;
59
61 block_labels = NULL;
62}
63
65{
66
67}
68
69
70
72 int argc, std::string *argv,
73 int verbose_level)
74{
75 int f_v = (verbose_level >= 1);
76 int i;
78
79 if (f_v) {
80 cout << "draw_incidence_structure_description::read_arguments" << endl;
81 }
82 for (i = 0; i < argc; i++) {
83
84 if (ST.stringcmp(argv[i], "-width") == 0) {
85 f_width = TRUE;
86 width = ST.strtoi(argv[++i]);
87 cout << "-width " << width << endl;
88 }
89 else if (ST.stringcmp(argv[i], "-width_10") == 0) {
91 width_10 = ST.strtoi(argv[++i]);
92 cout << "-width_10 " << width_10 << endl;
93 }
94 else if (ST.stringcmp(argv[i], "-outline_thin") == 0) {
96 cout << "-outline_thin " << endl;
97 }
98 else if (ST.stringcmp(argv[i], "-unit_length") == 0) {
100 unit_length.assign(argv[++i]);
101 cout << "-unit_length " << unit_length << endl;
102 }
103 else if (ST.stringcmp(argv[i], "-thick_lines") == 0) {
105 thick_lines.assign(argv[++i]);
106 cout << "-thick_lines " << thick_lines << endl;
107 }
108 else if (ST.stringcmp(argv[i], "-thin_lines") == 0) {
110 thin_lines.assign(argv[++i]);
111 cout << "-thin_lines " << thin_lines << endl;
112 }
113 else if (ST.stringcmp(argv[i], "-geo_line_width") == 0) {
115 geo_line_width.assign(argv[++i]);
116 cout << "-geo_line_width " << geo_line_width << endl;
117 }
118 else if (ST.stringcmp(argv[i], "-end") == 0) {
119 cout << "-end" << endl;
120 break;
121 }
122 else {
123 cout << "draw_incidence_structure_description::read_arguments "
124 "unrecognized option " << argv[i] << endl;
125 }
126 } // next i
127 if (f_v) {
128 cout << "draw_incidence_structure_description::read_arguments done" << endl;
129 }
130 return i + 1;
131}
132
133#if 0
134int width;
135
136int width_10;
137
138int f_outline_thin;
139
140std::string unit_length;
141std::string thick_lines;
142std::string thin_lines;
143std::string geo_line_width;
144
145int v;
146int b;
147int V;
148int B;
149int *Vi;
150int *Bj;
151
152#if 0
153int *R;
154int *X;
155int dim_X;
156#endif
157
158int f_labelling_points;
159std::string *point_labels;
160
161int f_labelling_blocks;
162std::string *block_labels;
163#endif
164
166{
167 if (f_width) {
168 cout << "-width " << width << endl;
169 }
170 if (f_width_10) {
171 cout << "-width_10 " << width_10 << endl;
172 }
173 if (f_outline_thin) {
174 cout << "-outline_thin " << endl;
175 }
176 if (f_unit_length) {
177 cout << "-unit_length " << unit_length << endl;
178 }
179 if (f_thick_lines) {
180 cout << "-thick_lines " << thick_lines << endl;
181 }
182 if (f_thin_lines) {
183 cout << "-thin_lines " << thin_lines << endl;
184 }
185 if (f_geo_line_width) {
186 cout << "-geo_line_width " << geo_line_width << endl;
187 }
188}
189
190
191
192
193
194}}}
195
196
functions related to strings and character arrays
#define TRUE
Definition: foundations.h:231
#define FALSE
Definition: foundations.h:234
the orbiter library for the classification of combinatorial objects