Debian Codegraph @

packages/seacas/libraries/ioss/src/visualization/catalyst/test/parser/ImageSetRepresentationValidTests.h

raw
1 // Copyright(C) 1999-2021 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6
7 #ifndef __IMAGE_SET_REPRESENTATION_VALID_TESTS_H
8 #define __IMAGE_SET_REPRESENTATION_VALID_TESTS_H
9
10 #include <string>
11
12 std::string ImagesetRepresentationSurfaces = R"(
13 begin catalyst
14 begin camera singletestcamera
15 look direction = -1 -1 -1
16 end
17 begin imageset fooImageset
18 camera = singletestcamera
19 show surfaces = false
20 show edges = true
21 image size = 800 450
22 end imageset
23 end
24 )";
25
26 std::string ImagesetRepresentationEdges = R"(
27 begin catalyst
28 begin camera singletestcamera
29 look direction = -1 -1 -1
30 end
31 begin imageset fooImageset
32 camera = singletestcamera
33 show edges = true
34 image size = 800 450
35 end imageset
36 end
37 )";
38
39 std::string ImagesetRepresentationBoundingBox = R"(
40 begin catalyst
41 begin camera singletestcamera
42 look direction = -1 -1 -1
43 end
44 begin imageset fooImageset
45 camera = singletestcamera
46 show surfaces = false
47 show bounding box = true
48 image size = 800 450
49 end imageset
50 end
51 )";
52
53 std::string ImagesetRepresentationColorByScalar = R"(
54 begin catalyst
55 begin camera singletestcamera
56 look direction = -1 -1 -1
57 end
58 begin imageset fooImageset
59 camera = singletestcamera
60 color by scalar = VON_MISES
61 image size = 800 450
62 end imageset
63 end
64 )";
65
66 std::string ImagesetRepresentationColorByVectorMagnitude = R"(
67 begin catalyst
68 begin camera singletestcamera
69 look direction = -1 -1 -1
70 end
71 begin imageset fooImageset
72 camera = singletestcamera
73 color by vector magnitude = displ
74 image size = 800 450
75 end imageset
76 end
77 )";
78
79 std::string ImagesetRepresentationColorByVectorComponent = R"(
80 begin catalyst
81 begin camera singletestcamera
82 look direction = -1 -1 -1
83 end
84 begin imageset fooImageset
85 camera = singletestcamera
86 color by vector component = displ_x
87 image size = 800 450
88 end imageset
89 end
90 )";
91
92 std::string ImagesetRepresentationColorByTensorComponent = R"(
93 begin catalyst
94 begin camera singletestcamera
95 look direction = -1 -1 -1
96 end
97 begin imageset fooImageset
98 camera = singletestcamera
99 color by tensor component = stress_xy
100 image size = 800 450
101 end imageset
102 end
103 )";
104
105 std::string ImagesetRepresentationColorBySolidColor = R"(
106 begin catalyst
107 begin camera singletestcamera
108 look direction = -1 -1 -1
109 end
110 begin imageset fooImageset
111 camera = singletestcamera
112 color by solid color = 1.0 0.5 0.0
113 image size = 800 450
114 end imageset
115 end
116 )";
117
118 std::string ImagesetRepresentationColorByBlockId = R"(
119 begin catalyst
120 begin camera singletestcamera
121 look direction = -1 -1 -1
122 end
123 begin imageset fooImageset
124 camera = singletestcamera
125 image size = 800 450
126 color by blockid
127 end imageset
128 end
129 )";
130
131 std::string ImagesetRepresentationTimeAnnotation = R"(
132 begin catalyst
133 begin camera singletestcamera
134 look direction = -1 -1 -1
135 end
136 begin imageset fooImageset
137 camera = singletestcamera
138 show time annotation = true
139 image size = 800 450
140 end imageset
141 end
142 )";
143
144 std::string ImagesetRepresentationColorLegend = R"(
145 begin catalyst
146 begin camera singletestcamera
147 look direction = -1 -1 -1
148 end
149 begin imageset fooImageset
150 camera = singletestcamera
151 show color legend = true
152 color by scalar = VON_MISES
153 image size = 800 450
154 end imageset
155 end
156 )";
157
158 std::string ImagesetRepresentationColorLegendRange = R"(
159 begin catalyst
160 begin camera singletestcamera
161 look direction = -1 -1 -1
162 end
163 begin imageset fooImageset
164 camera = singletestcamera
165 color legend range = 22 32
166 color by scalar = VON_MISES
167 image size = 800 450
168 end imageset
169 end
170 )";
171
172 std::string ImagesetRepresentationColorLegendUseCurrentDataRange = R"(
173 begin catalyst
174 begin camera singletestcamera
175 look direction = -1 -1 -1
176 end
177 begin imageset fooImageset
178 camera = singletestcamera
179 color legend use current data range
180 color by tensor component = stress_yz
181 image size = 800 450
182 end imageset
183 end
184 )";
185
186 std::string ImagesetRepresentationColorLegendUseCumulativeDataRange = R"(
187 begin catalyst
188 begin camera singletestcamera
189 look direction = -1 -1 -1
190 end
191 begin imageset fooImageset
192 camera = singletestcamera
193 color legend use cumulative data range
194 color by tensor component = stress_yz
195 image size = 800 450
196 end imageset
197 end
198 )";
199
200 std::string ImagesetRepresentationColorLegendMinimumRange = R"(
201 begin catalyst
202 begin camera singletestcamera
203 look direction = -1 -1 -1
204 end
205 begin imageset fooImageset
206 camera = singletestcamera
207 color legend minimum range = -5 15
208 color by scalar = VON_MISES
209 image size = 800 450
210 end imageset
211 end
212 )";
213
214 std::string ImagesetRepresentationColorLegendMaximumRange = R"(
215 begin catalyst
216 begin camera singletestcamera
217 look direction = -1 -1 -1
218 end
219 begin imageset fooImageset
220 camera = singletestcamera
221 color legend maximum range = -5 15
222 color by scalar = VON_MISES
223 image size = 800 450
224 end imageset
225 end
226 )";
227
228 std::string ImagesetRepresentationColorLegendPosition = R"(
229 begin catalyst
230 begin camera singletestcamera
231 look direction = -1 -1 -1
232 end
233 begin imageset fooImageset
234 camera = singletestcamera
235 color legend position = right 0.5
236 color by scalar = VON_MISES
237 image size = 800 450
238 end imageset
239 end
240 )";
241
242 std::string ImagesetRepresentationPresetColorScale = R"(
243 begin catalyst
244 begin representation BlueToRedRainbowInvertedRep
245 color by tensor component = stress_xy
246 preset color scale = Blue_to_Red_Rainbow
247 invert color scale = true
248 end representation
249 begin camera singletestcamera
250 look direction = -1 -1 -1
251 end
252 begin imageset BlueToRedRainbowInverted
253 camera = singletestcamera
254 representation = BlueToRedRainbowInvertedRep
255 image size = 800 450
256 image basename = "BlueToRedRainbow."
257 end imageset
258 end
259 )";
260
261 std::string ImagesetRepresentationTimeAnnotationPosition = R"(
262 begin catalyst
263 begin camera singletestcamera
264 look direction = -1 -1 -1
265 end
266 begin imageset fooImageset
267 camera = singletestcamera
268 time annotation position = top left 0.5
269 show time annotation = true
270 image size = 800 450
271 end imageset
272 end
273 )";
274
275 std::string ImagesetMultiColorBy = R"(
276 begin catalyst
277 begin camera singletestcamera
278 look direction = -1 -1 -1
279 end
280 begin imageset is1
281 image size = 800 450
282 camera = singletestcamera
283 color by scalar = VON_MISES
284 image basename = is1.
285 end imageset
286 begin imageset is2
287 image size = 800 450
288 camera = singletestcamera
289 color by tensor component = stress_xy
290 image basename = is2.
291 end imageset
292 begin imageset is3
293 image size = 800 450
294 camera = singletestcamera
295 color by vector magnitude = displ
296 image basename = is3.
297 end imageset
298 begin imageset is4
299 image size = 800 450
300 camera = singletestcamera
301 color by solid color = 0.1 0.9 0.95
302 image basename = is4.
303 end imageset
304 begin imageset is5
305 image size = 800 450
306 camera = singletestcamera
307 image basename = is5.
308 end imageset
309 end
310 )";
311
312 std::string ImagesetAxesLegendOnOffMultiImageset = R"(
313 begin catalyst
314 begin camera singletestcamera
315 look direction = -1 -1 -1
316 end
317 begin imageset is1
318 image size = 800 450
319 camera = singletestcamera
320 color by scalar = VON_MISES
321 image basename = is1.
322 show axes = true
323 show orientation axes = true
324 show time annotation = true
325 show edges = true
326 end imageset
327 begin imageset is2
328 image size = 800 450
329 camera = singletestcamera
330 color by tensor component = stress_xy
331 image basename = is2.
332 show color legend = false
333 show orientation axes = false
334 end imageset
335 begin imageset is3
336 image size = 800 450
337 camera = singletestcamera
338 color by scalar = VON_MISES
339 image basename = is3.
340 show color legend = true
341 show axes = true
342 end imageset
343 begin imageset is4
344 image size = 800 450
345 camera = singletestcamera
346 image basename = is4.
347 show axes = true
348 show edges = true
349 end imageset
350 begin imageset is5
351 image size = 800 450
352 camera = singletestcamera
353 color by solid color = 1.0 0.5 0.0
354 image basename = is5.
355 end imageset
356 begin imageset is6
357 image size = 800 450
358 camera = singletestcamera
359 image basename = is6.
360 show axes = true
361 show edges = true
362 show surfaces = false
363 end imageset
364 begin imageset is7
365 image size = 800 450
366 camera = singletestcamera
367 color by solid color = 0.0 1.0 1.0
368 image basename = is7.
369 show axes = true
370 end imageset
371 end
372 )";
373
374 std::string ImagesetRepresentationAxes = R"(
375 begin catalyst
376 begin camera singletestcamera
377 look direction = -1 -1 -1
378 end
379 begin imageset fooImageset
380 camera = singletestcamera
381 show axes = true
382 image size = 800 450
383 end imageset
384 end
385 )";
386
387 std::string ImagesetRepresentationAxisLabelName = R"(
388 begin catalyst
389 begin camera singletestcamera
390 look direction = -1 -1 -1
391 end
392 begin imageset fooImageset
393 camera = singletestcamera
394 show axes = true
395 x axis label name = xAxis
396 y axis label name = yAxis
397 z axis label name = zAxis
398 image size = 800 450
399 end imageset
400 end
401 )";
402
403 std::string ImagesetRepresentationAxisLabel = R"(
404 begin catalyst
405 begin camera singletestcamera
406 look direction = -1 -1 -1
407 end
408 begin imageset fooImageset
409 camera = singletestcamera
410 show axes = true
411 show x axis label = false
412 show y axis label = false
413 show z axis label = false
414 image size = 800 450
415 end imageset
416 end
417 )";
418
419 std::string ImagesetRepresentationAxisTicMarks = R"(
420 begin catalyst
421 begin camera singletestcamera
422 look direction = -1 -1 -1
423 end
424 begin imageset fooImageset
425 camera = singletestcamera
426 show axes = true
427 show x axis tic marks = false
428 show y axis tic marks = false
429 show z axis tic marks = false
430 image size = 800 450
431 end imageset
432 end
433 )";
434
435 std::string ImagesetRepresentationAxisMinorTicMarks = R"(
436 begin catalyst
437 begin camera singletestcamera
438 look direction = -1 -1 -1
439 end
440 begin imageset fooImageset
441 camera = singletestcamera
442 show axes = true
443 show x axis minor tic marks = false
444 show y axis minor tic marks = false
445 show z axis minor tic marks = false
446 image size = 800 450
447 end imageset
448 end
449 )";
450
451 std::string ImagesetRepresentationAxisTicMarkLabels = R"(
452 begin catalyst
453 begin camera singletestcamera
454 look direction = -1 -1 -1
455 end
456 begin imageset fooImageset
457 camera = singletestcamera
458 show axes = true
459 show x axis tic mark labels = false
460 show y axis tic mark labels = false
461 show z axis tic mark labels = false
462 image size = 800 450
463 end imageset
464 end
465 )";
466
467 std::string ImagesetRepresentationOrientationAxes = R"(
468 begin catalyst
469 begin camera singletestcamera
470 look direction = -1 -1 -1
471 end
472 begin imageset fooImageset
473 camera = singletestcamera
474 show orientation axes = true
475 image size = 800 450
476 end imageset
477 begin imageset fooImageset2
478 camera = singletestcamera
479 show orientation axes = false
480 image size = 800 450
481 end imageset
482 end
483 )";
484
485 #endif /* __IMAGE_SET_REPRESENTATION_VALID_TESTS_H */