This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
GraphicsOptions.py
707 lines (665 loc) · 49.1 KB
/
GraphicsOptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
from abaqusConstants import *
class GraphicsOptions:
"""The GraphicsOptions object stores settings that control how objects are rendered in all
viewports. GraphicsOptions objects are accessed in one of two ways:
- The default graphics options. These settings are used as defaults when you start a
session and by the Defaults button on the Graphics ConstrainedSketchOptions dialog box.
- The current graphics options.
The GraphicsOptions object has no constructor; Abaqus creates both the
*defaultGraphicsOptions* and the *graphicsOptions* members when a session is started.
When you start a session, Abaqus detects the graphics hardware installed on your system
and uses the setValues method in the environment file (abaqus_v6.env ) to modify the
members of the GraphicsOptions object. If your graphics hardware is not supported by
Abaqus/CAE, or if you wish to override the default graphics options, you can modify
settings in the environment file. For more information, see Tuning graphics cards.
Attributes
----------
backgroundOverride: Boolean
A Boolean specifying whether a viewport background style of GRADIENT can be overridden
when displaying :py:class:`~.certain` objects, such as sketches or XY plots. When overridden, the
background will be the top color of the gradient background.
backfaceCulling: Boolean
A Boolean specifying whether facets that are determined to be facing away from the
viewer will be drawn. The default value is ON. backfaceCulling provides a performance
enhancement when displaying solid elements where the front side of the element occludes
the back side of the element. Set **backfaceCulling=OFF** if it appears that you are
seeing the back side of an element and the front side is missing. You should also set
**backfaceCulling=OFF** if you believe the display is not complete.
graphicsDriver: SymbolicConstant
A SymbolicConstant specifying the graphics driver to use. Abaqus/CAE currently uses
OpenGL exclusively so the only possible value is OPEN_GL. OPEN_GL takes advantage of
graphics adapter hardware acceleration.
doubleBuffering: Boolean
A Boolean specifying whether double buffering is used. The default value is ON.Double
buffering controls where Abaqus/CAE draws its graphics. When **doubleBuffering=OFF**,
everything is drawn directly to the screen and on many systems you can see the progress
of the drawing operations. Most users find this distracting, especially in dynamic
situations such as view manipulation or animation of results. When **doubleBuffering=ON**,
the drawing occurs in a separate graphics buffer that is displayed when all the drawing
operations are complete. This results in a much smoother display during view changes or
animation. It is recommended that you set double buffering to ON.
displayLists: Boolean
A Boolean specifying whether a display list will be used to accelerate graphics
performance. The default value is ON.When **displayLists=ON**, drawing operations are
recorded in a list that can be quickly replayed. This results in faster drawing on most
systems but requires extra memory to record the drawing operations. In the Visualization
module, display lists are only used during view manipulations and then their use is
subject to the setting of **viewManipDisplayListThreshold**.
dragMode: SymbolicConstant
A SymbolicConstant specifying which rendering is used during dynamic rotations of the
view. Possible values are:FAST, specifying a rendering mode where the image is rendered
in wireframe.AS_IS, specifying a rendering mode where the image is rendered as is.The
default value is AS_IS.When set to **dragMode=FAST**, a wireframe outline is drawn during
view changes by rotation, pan, or zoom. When **dragMode=AS_IS**, everything displayed in
the window will be drawn during view changes; however, the display may lag behind the
mouse movement when the model is complex especially if you are using an older or slower
system. For newer systems with graphics hardware acceleration the AS_IS setting can be
accommodated without significant loss of performance.
antiAlias: Boolean
A Boolean specifying whether lines will be smoothed to reduce the jagged effect of
rasterization. The default value is ON.
autoFitAfterRotate: Boolean
A Boolean specifying whether the model is automatically resized to fit the viewport
after each view rotation. The default value is OFF.
polygonOffsetConstant: float
A Float specifying the offset added when drawing the faces of a polygon. The
**polygonOffsetConstant** argument affects the behavior of only the OpenGL driver.
Possible values are 0.0 ≤≤ **polygonOffsetConstant** ≤≤ 100.0. The default value is
platform dependent and is typically between 0.0 and 2.0.
polygonOffsetSlope: float
A Float specifying the factor that multiplies the slope of each line before the line is
added to the vertexes of a polygon face. The **polygonOffsetSlope** argument affects the
behavior of only the OpenGL driver. Possible values are 0.0 ≤≤ **polygonOffsetSlope** ≤≤
100.0. The default value is platform dependent and is typically between 0.0 and 2.0.
printPolygonOffsetConstant: float
A Float specifying the offset added when drawing the faces of a polygon.
**printPolygonOffsetConstant** is similar to **polygonOffsetConstant**; however,
**printPolygonOffsetConstant** is used when printing and **polygonOffsetConstant** is used
for display. Some systems, especially Windows, use different OpenGL drivers for printing
and display, and you may have to use different offset values for each driver.
printPolygonOffsetSlope: float
A Float specifying the factor that multiplies the slope of each line before the line is
added to the vertexes of a polygon face. **printPolygonOffsetSlope** is similar to
**polygonOffsetSlope**; however, **printPolygonOffsetSlope** is used when printing and
**polygonOffsetSlope** is used for display. Some systems, especially Windows, use
different OpenGL drivers for printing and display, and you may have to use different
offset values for each driver.
vertexArrays: Boolean
A Boolean specifying how the three-dimensional vertices of the model are processed. When
**vertexArrays=OFF**, each vertex of the model is processed separately. When
**vertexArrays=ON**, the vertices are processed in large blocks resulting in faster
display. Not all graphics adapters support this capability correctly. An indicator that
the graphics adapters is not processing three-dimensional vertices correctly is the
absence of graphics during rubber banding operations. For example, when dynamically
dragging the radius of a circle in the Sketcher, the circle should be visible. The
default value is ON.
vertexArraysInDisplayLists: Boolean
A Boolean specifying whether the **vertexArrays** setting should temporarily be set to OFF
when building a display list. The default value is ON.Some graphics adapters do not
properly support using vertex arrays inside a display list. Setting
**vertexArraysInDisplayLists** to OFF has a smaller impact on graphics performance than
setting **vertexArrays** or **displayLists** to OFF.
viewManipDisplayListThreshold: int
An Int specifying how large a display list may be created in order to accelerate view
manipulation operations. Increasing this value when viewing large models will increase
the delay before a view manipulation operation begins in order to obtain improved
graphics performance during the view manipulation. If set high with a large model, the
delay can be many seconds. In excessive cases, graphics memory can be exceeded and the
result may be an empty display list (no visible model) for the view manipulation. This
setting is treated as 0 if **displayLists=OFF**. Possible values are 0 ≤≤
**viewManipDisplayListThreshold** ≤≤ 20000. The default value is 40.
directRendering: Boolean
A Boolean specifying how Abaqus renders X11 graphics operations. When
**directRendering=OFF**, the graphics are rendered through the X Server. When
**directRendering=ON**, the graphics operations are sent directly to the graphics adapter
producing faster displays. For maximum performance, the initial value is ON. This
argument is used only when you first start Abaqus/CAE; you cannot configure
**directRendering** during a session.
hardwareAcceleration: Boolean
A Boolean specifying whether a hardware accelerated OpenGL graphics driver will be used
on Windows platforms. The default value is ON.When **hardwareAcceleration=OFF**, the
graphics driver uses a software implementation of OpenGL that is included with the
operating system. This results in slower drawing on most systems; however, you may have
to use the software implementation of OpenGL if the hardware graphics driver is
incompatible with Abaqus/CAE.**hardwareAcceleration** is used only when you first start
Abaqus/CAE on a Windows platform; you cannot configure **hardwareAcceleration** during a
session.**hardwareAcceleration** is not used when you start Abaqus/CAE on an X-Windows
platform and display to a Windows platform running Exceed or any other X-Windows server.
hardwareOverlay: Boolean
A Boolean specifying whether hardware overlay planes will be used if available. The
default value is the same value as the **hardwareOverlayAvailable** member.When
**hardwareOverlayAvailable=OFF**, it will not be possible to set **hardwareOverlay** to ON
and the HARDWARE_OVERLAY highlight method will not be available. If viewports display a
solid color and will not display the model, it will be necessary to inhibit hardware
overlay completely by setting the ABAQUS_EMULATE_OVERLAYS environment variable (to any
value) before starting Abaqus/CAE.**hardwareOverlay** is used only when you first start
Abaqus/CAE; you cannot configure **hardwareOverlay** during a session.
textureMapping: Boolean
A Boolean specifying whether textures will be used to display contour plots. The default
value is ON.Turning off texture mapping is necessary only if viewports will not
correctly display a contour plot of your model.
printTextureMapping: Boolean
A Boolean specifying whether textures will be used to display contour plots. The default
value is ON.Turning off texture mapping for printing is necessary only if printed output
does not correctly display a contour plot of your model. **printTextureMapping** is
similar to **textureMapping**; however, **printTextureMapping** is used when printing and
**textureMapping** is used for display. Some systems, especially Windows, use different
OpenGL drivers for printing and display, and you may have to use different settings for
each driver.
backgroundStyle: SymbolicConstant
A SymbolicConstant specifying the background style to be used for all viewport windows.
Possible values are SOLID and GRADIENT. The default value is SOLID.If
**backgroundStyle=SOLID**, the viewport background will appear as a solid color as
specified by **backgroundColor**. If **backgroundStyle=GRADIENT**, the viewport background
will be drawn as a gradient beginning with the **backgroundColor** at the top of the
viewport and gradually blending to the **backgroundBottomColor** at the bottom of the
viewport.
accelerateOffScreen: Boolean
A Boolean specifying whether the hardware accelerated graphics driver will be used for
off-screen rendering. The default value is ON if graphics hardware acceleration is
available and has not been disabled via the hardwareAcceleration option, and the
graphics driver supports the underlying technology. When set to OFF, an alternate
(slower) technique will be used to create off-screen images. Off-screen rendering is
used for Printing, Probe, and backing store (viewport refresh). Setting this value to
OFF will force printed images to be rendered without hardware acceleration. This is
useful when writing automated tests to produce raster images that you will want to
compare across multiple machines that may have different graphics environments.
backingStore: Boolean
A Boolean specifying whether a backing store will be used to refresh a viewport after a
window occluding the viewport is moved or dismissed. The default value is ON.
highlightMethod: SymbolicConstant
A SymbolicConstant specifying the highlight method. For the :py:class:`~abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions` object,
possible values of the member are HARDWARE_OVERLAY, XOR, SOFTWARE_OVERLAY, and BLEND.
hardwareOverlayAvailable: Boolean
A Boolean specifying if the graphics hardware supports hardware overlay.
shadersAvailable: Boolean
A Boolean specifying if the graphics hardware supports the OpenGL Shading Language
(GLSL).
translucencyMode: int
An Int specifying whether speed or accuracy is more important when drawing translucent
objects. Lower values optimize for speed while higher values optimize for accuracy. The
actual meaning of each setting will depend on the setting of **shadersAvailable** and the
capabilities of the graphics hardware and driver. Possible values are 1 ≤≤
**translucencyMode** ≤≤ 6. The default value is 4.
contourRangeTexturePrecision: float
A Float specifying a tolerance used when computing the appropriate scale for
transforming result (contour) values to texture values. When set too low the 'out of
range' colors may be incorrectly shown for values near the range limits. The default
value is 0.5×10–5.
options: str
None or a :py:class:`~abaqus.DisplayOptions.GraphicsOptions.GraphicsOptions` object specifying :py:class:`~.the` object from which values are to be
copied. If o:py:class:`~.the`r arguments are also supplied to setValues, :py:class:`~.the`y will override :py:class:`~.the` values
in :py:class:`~.the` **options** member. The default value is None.
highlightMethodHint: SymbolicConstant
A tuple of SymbolicConstants specifying a hint used to modify the highlight method.
Possible values are:HARDWARE_OVERLAY, specifying a hint of hardware overlay. The best
graphics performance is achieved using hardware overlay, but not all systems and
graphics adapters support hardware overlay.XOR, specifying a hint of XOR technique. The
XOR technique uses a boolean pixel operation to simulate the drawing operations but can
produce different colors depending on the color of the underlying
pixels.SOFTWARE_OVERLAY, specifying a hint of software overlay. The software overlay
method simulates the effect of hardware overlay.BLEND, specifying a hint of blend
method. The blend method combines the color of the underlying pixel with the desired
color producing an approximation of the transient graphics.The default value is
(HARDWARE_OVERLAY, XOR, SOFTWARE_OVERLAY, BLEND).The values of this sequence are applied
by Abaqus when you start a session in first to last order. The first successful value
becomes the default highlight method. Not all graphics adapters support the
HARDWARE_OVERLAY value and you must use the **highlightMethodHint** argument to provide an
alternative.You can use a single value to set the first element of the list, or you can
use a tuple with one to four unique values. Abaqus sets any remaining elements of the
tuple to unique values based on the default order.
backgroundColor: str
A String specifying one of the two background colors for all viewport windows. The
initial color is black. A list of valid color strings is in the **colors** map in the
:py:class:`~abaqus.Session.Session.Session` object.
backgroundBottomColor: str
A String specifying one of the two background colors for all viewport windows. This
color is used only if **backgroundStyle** =GRADIENT. The initial color is black. A list of
valid color strings is in the **colors** map in the :py:class:`~abaqus.Session.Session.Session` object.
Notes
-----
This object can be accessed by:
.. code-block::
session.defaultGraphicsOptions
session.graphicsOptions
"""
# A Boolean specifying whether a viewport background style of GRADIENT can be overridden
# when displaying certain objects, such as sketches or XY plots. When overridden, the
# background will be the top color of the gradient background.
backgroundOverride: Boolean = OFF
# A Boolean specifying whether facets that are determined to be facing away from the
# viewer will be drawn. The default value is ON. backfaceCulling provides a performance
# enhancement when displaying solid elements where the front side of the element occludes
# the back side of the element. Set *backfaceCulling*=OFF if it appears that you are
# seeing the back side of an element and the front side is missing. You should also set
# *backfaceCulling*=OFF if you believe the display is not complete.
backfaceCulling: Boolean = ON
# A SymbolicConstant specifying the graphics driver to use. Abaqus/CAE currently uses
# OpenGL exclusively so the only possible value is OPEN_GL. OPEN_GL takes advantage of
# graphics adapter hardware acceleration.
graphicsDriver: SymbolicConstant = None
# A Boolean specifying whether double buffering is used. The default value is ON.Double
# buffering controls where Abaqus/CAE draws its graphics. When *doubleBuffering*=OFF,
# everything is drawn directly to the screen and on many systems you can see the progress
# of the drawing operations. Most users find this distracting, especially in dynamic
# situations such as view manipulation or animation of results. When *doubleBuffering*=ON,
# the drawing occurs in a separate graphics buffer that is displayed when all the drawing
# operations are complete. This results in a much smoother display during view changes or
# animation. It is recommended that you set double buffering to ON.
doubleBuffering: Boolean = ON
# A Boolean specifying whether a display list will be used to accelerate graphics
# performance. The default value is ON.When *displayLists*=ON, drawing operations are
# recorded in a list that can be quickly replayed. This results in faster drawing on most
# systems but requires extra memory to record the drawing operations. In the Visualization
# module, display lists are only used during view manipulations and then their use is
# subject to the setting of *viewManipDisplayListThreshold*.
displayLists: Boolean = ON
# A SymbolicConstant specifying which rendering is used during dynamic rotations of the
# view. Possible values are:FAST, specifying a rendering mode where the image is rendered
# in wireframe.AS_IS, specifying a rendering mode where the image is rendered as is.The
# default value is AS_IS.When set to *dragMode*=FAST, a wireframe outline is drawn during
# view changes by rotation, pan, or zoom. When *dragMode*=AS_IS, everything displayed in
# the window will be drawn during view changes; however, the display may lag behind the
# mouse movement when the model is complex especially if you are using an older or slower
# system. For newer systems with graphics hardware acceleration the AS_IS setting can be
# accommodated without significant loss of performance.
dragMode: SymbolicConstant = AS_IS
# A Boolean specifying whether lines will be smoothed to reduce the jagged effect of
# rasterization. The default value is ON.
antiAlias: Boolean = ON
# A Boolean specifying whether the model is automatically resized to fit the viewport
# after each view rotation. The default value is OFF.
autoFitAfterRotate: Boolean = OFF
# A Float specifying the offset added when drawing the faces of a polygon. The
# *polygonOffsetConstant* argument affects the behavior of only the OpenGL driver.
# Possible values are 0.0 ≤≤ *polygonOffsetConstant* ≤≤ 100.0. The default value is
# platform dependent and is typically between 0.0 and 2.0.
polygonOffsetConstant: float = None
# A Float specifying the factor that multiplies the slope of each line before the line is
# added to the vertexes of a polygon face. The *polygonOffsetSlope* argument affects the
# behavior of only the OpenGL driver. Possible values are 0.0 ≤≤ *polygonOffsetSlope* ≤≤
# 100.0. The default value is platform dependent and is typically between 0.0 and 2.0.
polygonOffsetSlope: float = None
# A Float specifying the offset added when drawing the faces of a polygon.
# *printPolygonOffsetConstant* is similar to *polygonOffsetConstant*; however,
# *printPolygonOffsetConstant* is used when printing and *polygonOffsetConstant* is used
# for display. Some systems, especially Windows, use different OpenGL drivers for printing
# and display, and you may have to use different offset values for each driver.
printPolygonOffsetConstant: float = None
# A Float specifying the factor that multiplies the slope of each line before the line is
# added to the vertexes of a polygon face. *printPolygonOffsetSlope* is similar to
# *polygonOffsetSlope*; however, *printPolygonOffsetSlope* is used when printing and
# *polygonOffsetSlope* is used for display. Some systems, especially Windows, use
# different OpenGL drivers for printing and display, and you may have to use different
# offset values for each driver.
printPolygonOffsetSlope: float = None
# A Boolean specifying how the three-dimensional vertices of the model are processed. When
# *vertexArrays*=OFF, each vertex of the model is processed separately. When
# *vertexArrays*=ON, the vertices are processed in large blocks resulting in faster
# display. Not all graphics adapters support this capability correctly. An indicator that
# the graphics adapters is not processing three-dimensional vertices correctly is the
# absence of graphics during rubber banding operations. For example, when dynamically
# dragging the radius of a circle in the Sketcher, the circle should be visible. The
# default value is ON.
vertexArrays: Boolean = ON
# A Boolean specifying whether the *vertexArrays* setting should temporarily be set to OFF
# when building a display list. The default value is ON.Some graphics adapters do not
# properly support using vertex arrays inside a display list. Setting
# *vertexArraysInDisplayLists* to OFF has a smaller impact on graphics performance than
# setting *vertexArrays* or *displayLists* to OFF.
vertexArraysInDisplayLists: Boolean = ON
# An Int specifying how large a display list may be created in order to accelerate view
# manipulation operations. Increasing this value when viewing large models will increase
# the delay before a view manipulation operation begins in order to obtain improved
# graphics performance during the view manipulation. If set high with a large model, the
# delay can be many seconds. In excessive cases, graphics memory can be exceeded and the
# result may be an empty display list (no visible model) for the view manipulation. This
# setting is treated as 0 if *displayLists*=OFF. Possible values are 0 ≤≤
# *viewManipDisplayListThreshold* ≤≤ 20000. The default value is 40.
viewManipDisplayListThreshold: int = 40
# A Boolean specifying how Abaqus renders X11 graphics operations. When
# *directRendering*=OFF, the graphics are rendered through the X Server. When
# *directRendering*=ON, the graphics operations are sent directly to the graphics adapter
# producing faster displays. For maximum performance, the initial value is ON. This
# argument is used only when you first start Abaqus/CAE; you cannot configure
# *directRendering* during a session.
directRendering: Boolean = OFF
# A Boolean specifying whether a hardware accelerated OpenGL graphics driver will be used
# on Windows platforms. The default value is ON.When *hardwareAcceleration*=OFF, the
# graphics driver uses a software implementation of OpenGL that is included with the
# operating system. This results in slower drawing on most systems; however, you may have
# to use the software implementation of OpenGL if the hardware graphics driver is
# incompatible with Abaqus/CAE.*hardwareAcceleration* is used only when you first start
# Abaqus/CAE on a Windows platform; you cannot configure *hardwareAcceleration* during a
# session.*hardwareAcceleration* is not used when you start Abaqus/CAE on an X-Windows
# platform and display to a Windows platform running Exceed or any other X-Windows server.
hardwareAcceleration: Boolean = ON
# A Boolean specifying whether hardware overlay planes will be used if available. The
# default value is the same value as the *hardwareOverlayAvailable* member.When
# *hardwareOverlayAvailable*=OFF, it will not be possible to set *hardwareOverlay* to ON
# and the HARDWARE_OVERLAY highlight method will not be available. If viewports display a
# solid color and will not display the model, it will be necessary to inhibit hardware
# overlay completely by setting the ABAQUS_EMULATE_OVERLAYS environment variable (to any
# value) before starting Abaqus/CAE.*hardwareOverlay* is used only when you first start
# Abaqus/CAE; you cannot configure *hardwareOverlay* during a session.
hardwareOverlay: Boolean = OFF
# A Boolean specifying whether textures will be used to display contour plots. The default
# value is ON.Turning off texture mapping is necessary only if viewports will not
# correctly display a contour plot of your model.
textureMapping: Boolean = ON
# A Boolean specifying whether textures will be used to display contour plots. The default
# value is ON.Turning off texture mapping for printing is necessary only if printed output
# does not correctly display a contour plot of your model. *printTextureMapping* is
# similar to *textureMapping*; however, *printTextureMapping* is used when printing and
# *textureMapping* is used for display. Some systems, especially Windows, use different
# OpenGL drivers for printing and display, and you may have to use different settings for
# each driver.
printTextureMapping: Boolean = ON
# A SymbolicConstant specifying the background style to be used for all viewport windows.
# Possible values are SOLID and GRADIENT. The default value is SOLID.If
# *backgroundStyle*=SOLID, the viewport background will appear as a solid color as
# specified by *backgroundColor*. If *backgroundStyle*=GRADIENT, the viewport background
# will be drawn as a gradient beginning with the *backgroundColor* at the top of the
# viewport and gradually blending to the *backgroundBottomColor* at the bottom of the
# viewport.
backgroundStyle: SymbolicConstant = SOLID
# A Boolean specifying whether the hardware accelerated graphics driver will be used for
# off-screen rendering. The default value is ON if graphics hardware acceleration is
# available and has not been disabled via the hardwareAcceleration option, and the
# graphics driver supports the underlying technology. When set to OFF, an alternate
# (slower) technique will be used to create off-screen images. Off-screen rendering is
# used for Printing, Probe, and backing store (viewport refresh). Setting this value to
# OFF will force printed images to be rendered without hardware acceleration. This is
# useful when writing automated tests to produce raster images that you will want to
# compare across multiple machines that may have different graphics environments.
accelerateOffScreen: Boolean = OFF
# A Boolean specifying whether a backing store will be used to refresh a viewport after a
# window occluding the viewport is moved or dismissed. The default value is ON.
backingStore: Boolean = ON
# A SymbolicConstant specifying the highlight method. For the GraphicsOptions object,
# possible values of the member are HARDWARE_OVERLAY, XOR, SOFTWARE_OVERLAY, and BLEND.
highlightMethod: SymbolicConstant = None
# A Boolean specifying if the graphics hardware supports hardware overlay.
hardwareOverlayAvailable: Boolean = OFF
# A Boolean specifying if the graphics hardware supports the OpenGL Shading Language
# (GLSL).
shadersAvailable: Boolean = OFF
# An Int specifying whether speed or accuracy is more important when drawing translucent
# objects. Lower values optimize for speed while higher values optimize for accuracy. The
# actual meaning of each setting will depend on the setting of *shadersAvailable* and the
# capabilities of the graphics hardware and driver. Possible values are 1 ≤≤
# *translucencyMode* ≤≤ 6. The default value is 4.
translucencyMode: int = 4
# A Float specifying a tolerance used when computing the appropriate scale for
# transforming result (contour) values to texture values. When set too low the 'out of
# range' colors may be incorrectly shown for values near the range limits. The default
# value is 0.5×10–5.
contourRangeTexturePrecision: float = 0
# None or a GraphicsOptions object specifying the object from which values are to be
# copied. If other arguments are also supplied to setValues, they will override the values
# in the *options* member. The default value is None.
options: str = None
# A tuple of SymbolicConstants specifying a hint used to modify the highlight method.
# Possible values are:HARDWARE_OVERLAY, specifying a hint of hardware overlay. The best
# graphics performance is achieved using hardware overlay, but not all systems and
# graphics adapters support hardware overlay.XOR, specifying a hint of XOR technique. The
# XOR technique uses a boolean pixel operation to simulate the drawing operations but can
# produce different colors depending on the color of the underlying
# pixels.SOFTWARE_OVERLAY, specifying a hint of software overlay. The software overlay
# method simulates the effect of hardware overlay.BLEND, specifying a hint of blend
# method. The blend method combines the color of the underlying pixel with the desired
# color producing an approximation of the transient graphics.The default value is
# (HARDWARE_OVERLAY, XOR, SOFTWARE_OVERLAY, BLEND).The values of this sequence are applied
# by Abaqus when you start a session in first to last order. The first successful value
# becomes the default highlight method. Not all graphics adapters support the
# HARDWARE_OVERLAY value and you must use the *highlightMethodHint* argument to provide an
# alternative.You can use a single value to set the first element of the list, or you can
# use a tuple with one to four unique values. Abaqus sets any remaining elements of the
# tuple to unique values based on the default order.
highlightMethodHint: SymbolicConstant = None
# A String specifying one of the two background colors for all viewport windows. The
# initial color is black. A list of valid color strings is in the *colors* map in the
# Session object.
backgroundColor: str = ""
# A String specifying one of the two background colors for all viewport windows. This
# color is used only if *backgroundStyle* =GRADIENT. The initial color is black. A list of
# valid color strings is in the *colors* map in the Session object.
backgroundBottomColor: str = ""
def setValues(
self,
graphicsDriver: SymbolicConstant = None,
doubleBuffering: Boolean = ON,
displayLists: Boolean = ON,
highlightMethodHint: SymbolicConstant = None,
dragMode: SymbolicConstant = AS_IS,
antiAlias: Boolean = ON,
autoFitAfterRotate: Boolean = OFF,
polygonOffsetConstant: float = None,
polygonOffsetSlope: float = None,
printPolygonOffsetConstant: float = None,
printPolygonOffsetSlope: float = None,
vertexArrays: Boolean = ON,
vertexArraysInDisplayLists: Boolean = ON,
viewManipDisplayListThreshold: int = 40,
directRendering: Boolean = OFF,
hardwareAcceleration: Boolean = ON,
hardwareOverlay: Boolean = OFF,
textureMapping: Boolean = ON,
printTextureMapping: Boolean = ON,
backgroundStyle: SymbolicConstant = SOLID,
backgroundColor: str = "",
backgroundBottomColor: str = "",
backgroundOverride: Boolean = OFF,
backfaceCulling: Boolean = ON,
accelerateOffScreen: Boolean = OFF,
backingStore: Boolean = ON,
shadersAvailable: Boolean = OFF,
translucencyMode: int = 4,
options: str = None,
contourRangeTexturePrecision: float = 0,
):
"""This method modifies the GraphicsOptions object.
Parameters
----------
graphicsDriver
A SymbolicConstant specifying the graphics driver to use. Abaqus/CAE currently uses
OpenGL exclusively so the only possible value is OPEN_GL. OPEN_GL takes advantage of
graphics adapter hardware acceleration.
doubleBuffering
A Boolean specifying whether double buffering is used. The default value is ON.Double
buffering controls where Abaqus/CAE draws its graphics. When *doubleBuffering*=OFF,
everything is drawn directly to the screen and on many systems you can see the progress
of the drawing operations. Most users find this distracting, especially in dynamic
situations such as view manipulation or animation of results. When *doubleBuffering*=ON,
the drawing occurs in a separate graphics buffer that is displayed when all the drawing
operations are complete. This results in a much smoother display during view changes or
animation. It is recommended that you set double buffering to ON.
displayLists
A Boolean specifying whether a display list will be used to accelerate graphics
performance. The default value is ON.When *displayLists*=ON, drawing operations are
recorded in a list that can be quickly replayed. This results in faster drawing on most
systems but requires extra memory to record the drawing operations. In the Visualization
module, display lists are only used during view manipulations and then their use is
subject to the setting of *viewManipDisplayListThreshold*.
highlightMethodHint
A sequence of SymbolicConstants specifying a hint used to modify the highlight method.
Possible values are:HARDWARE_OVERLAY, specifying a hint of hardware overlay. The best
graphics performance is achieved using hardware overlay, but not all systems and
graphics adapters support hardware overlay.XOR, specifying a hint of XOR technique. The
XOR technique uses a boolean pixel operation to simulate the drawing operations but can
produce different colors depending on the color of the underlying
pixels.SOFTWARE_OVERLAY, specifying a hint of software overlay. The software overlay
method simulates the effect of hardware overlay.BLEND, specifying a hint of blend
method. The blend method combines the color of the underlying pixel with the desired
color producing an approximation of the transient graphics.The default value is
(HARDWARE_OVERLAY, XOR, SOFTWARE_OVERLAY, BLEND).The values of this sequence are applied
by Abaqus when you start a session in first to last order. The first successful value
becomes the default highlight method. Not all graphics adapters support the
HARDWARE_OVERLAY value and you must use the *highlightMethodHint* argument to provide an
alternative.You can use a single value to set the first element of the list, or you can
use a tuple with one to four unique values. Abaqus sets any remaining elements of the
tuple to unique values based on the default order.
dragMode
A SymbolicConstant specifying which rendering is used during dynamic rotations of the
view. Possible values are:FAST, specifying a rendering mode where the image is rendered
in wireframe.AS_IS, specifying a rendering mode where the image is rendered as is.The
default value is AS_IS.When set to *dragMode*=FAST, a wireframe outline is drawn during
view changes by rotation, pan, or zoom. When *dragMode*=AS_IS, everything displayed in
the window will be drawn during view changes; however, the display may lag behind the
mouse movement when the model is complex especially if you are using an older or slower
system. For newer systems with graphics hardware acceleration the AS_IS setting can be
accommodated without significant loss of performance.
antiAlias
A Boolean specifying whether lines will be smoothed to reduce the jagged effect of
rasterization. The default value is ON.
autoFitAfterRotate
A Boolean specifying whether the model is automatically resized to fit the viewport
after each view rotation. The default value is OFF.
polygonOffsetConstant
A Float specifying the offset added when drawing the faces of a polygon. The
*polygonOffsetConstant* argument affects the behavior of only the OpenGL driver.
Possible values are 0.0 ≤≤ *polygonOffsetConstant* ≤≤ 100.0. The default value is
platform dependent and is typically between 0.0 and 2.0.
polygonOffsetSlope
A Float specifying the factor that multiplies the slope of each line before the line is
added to the vertexes of a polygon face. The *polygonOffsetSlope* argument affects the
behavior of only the OpenGL driver. Possible values are 0.0 ≤≤ *polygonOffsetSlope* ≤≤
100.0. The default value is platform dependent and is typically between 0.0 and 2.0.
printPolygonOffsetConstant
A Float specifying the offset added when drawing the faces of a polygon.
*printPolygonOffsetConstant* is similar to *polygonOffsetConstant*; however,
*printPolygonOffsetConstant* is used when printing and *polygonOffsetConstant* is used
for display. Some systems, especially Windows, use different OpenGL drivers for printing
and display, and you may have to use different offset values for each driver.
printPolygonOffsetSlope
A Float specifying the factor that multiplies the slope of each line before the line is
added to the vertexes of a polygon face. *printPolygonOffsetSlope* is similar to
*polygonOffsetSlope*; however, *printPolygonOffsetSlope* is used when printing and
*polygonOffsetSlope* is used for display. Some systems, especially Windows, use
different OpenGL drivers for printing and display, and you may have to use different
offset values for each driver.
vertexArrays
A Boolean specifying how the three-dimensional vertices of the model are processed. When
*vertexArrays*=OFF, each vertex of the model is processed separately. When
*vertexArrays*=ON, the vertices are processed in large blocks resulting in faster
display. Not all graphics adapters support this capability correctly. An indicator that
the graphics adapters is not processing three-dimensional vertices correctly is the
absence of graphics during rubber banding operations. For example, when dynamically
dragging the radius of a circle in the Sketcher, the circle should be visible. The
default value is ON.
vertexArraysInDisplayLists
A Boolean specifying whether the *vertexArrays* setting should temporarily be set to OFF
when building a display list. The default value is ON.Some graphics adapters do not
properly support using vertex arrays inside a display list. Setting
*vertexArraysInDisplayLists* to OFF has a smaller impact on graphics performance than
setting *vertexArrays* or *displayLists* to OFF.
viewManipDisplayListThreshold
An Int specifying how large a display list may be created in order to accelerate view
manipulation operations. Increasing this value when viewing large models will increase
the delay before a view manipulation operation begins in order to obtain improved
graphics performance during the view manipulation. If set high with a large model, the
delay can be many seconds. In excessive cases, graphics memory can be exceeded and the
result may be an empty display list (no visible model) for the view manipulation. This
setting is treated as 0 if *displayLists*=OFF. Possible values are 0 ≤≤
*viewManipDisplayListThreshold* ≤≤ 20000. The default value is 40.
directRendering
A Boolean specifying how Abaqus renders X11 graphics operations. When
*directRendering*=OFF, the graphics are rendered through the X Server. When
*directRendering*=ON, the graphics operations are sent directly to the graphics adapter
producing faster displays. For maximum performance, the initial value is ON. This
argument is used only when you first start Abaqus/CAE; you cannot configure
*directRendering* during a session.
hardwareAcceleration
A Boolean specifying whether a hardware accelerated OpenGL graphics driver will be used
on Windows platforms. The default value is ON.When *hardwareAcceleration*=OFF, the
graphics driver uses a software implementation of OpenGL that is included with the
operating system. This results in slower drawing on most systems; however, you may have
to use the software implementation of OpenGL if the hardware graphics driver is
incompatible with Abaqus/CAE.*hardwareAcceleration* is used only when you first start
Abaqus/CAE on a Windows platform; you cannot configure *hardwareAcceleration* during a
session.*hardwareAcceleration* is not used when you start Abaqus/CAE on an X-Windows
platform and display to a Windows platform running Exceed or any other X-Windows server.
hardwareOverlay
A Boolean specifying whether hardware overlay planes will be used if available. The
default value is the same value as the *hardwareOverlayAvailable* member.When
*hardwareOverlayAvailable*=OFF, it will not be possible to set *hardwareOverlay* to ON
and the HARDWARE_OVERLAY highlight method will not be available. If viewports display a
solid color and will not display the model, it will be necessary to inhibit hardware
overlay completely by setting the ABAQUS_EMULATE_OVERLAYS environment variable (to any
value) before starting Abaqus/CAE.*hardwareOverlay* is used only when you first start
Abaqus/CAE; you cannot configure *hardwareOverlay* during a session.
textureMapping
A Boolean specifying whether textures will be used to display contour plots. The default
value is ON.Turning off texture mapping is necessary only if viewports will not
correctly display a contour plot of your model.
printTextureMapping
A Boolean specifying whether textures will be used to display contour plots. The default
value is ON.Turning off texture mapping for printing is necessary only if printed output
does not correctly display a contour plot of your model. *printTextureMapping* is
similar to *textureMapping*; however, *printTextureMapping* is used when printing and
*textureMapping* is used for display. Some systems, especially Windows, use different
OpenGL drivers for printing and display, and you may have to use different settings for
each driver.
backgroundStyle
A SymbolicConstant specifying the background style to be used for all viewport windows.
Possible values are SOLID and GRADIENT. The default value is SOLID.If
*backgroundStyle*=SOLID, the viewport background will appear as a solid color as
specified by *backgroundColor*. If *backgroundStyle*=GRADIENT, the viewport background
will be drawn as a gradient beginning with the *backgroundColor* at the top of the
viewport and gradually blending to the *backgroundBottomColor* at the bottom of the
viewport.
backgroundColor
A String specifying one of the two background colors for all viewport windows. The
initial color is black. A list of valid color strings is in the *colors* map in the
Session object.
backgroundBottomColor
A String specifying one of the two background colors for all viewport windows. This
color is used only if *backgroundStyle* =GRADIENT. The initial color is black. A list of
valid color strings is in the *colors* map in the Session object.
backgroundOverride
A Boolean specifying whether a viewport background style of GRADIENT can be overridden
when displaying certain objects, such as sketches or XY plots. When overridden, the
background will be the top color of the gradient background.
backfaceCulling
A Boolean specifying whether facets that are determined to be facing away from the
viewer will be drawn. The default value is ON. backfaceCulling provides a performance
enhancement when displaying solid elements where the front side of the element occludes
the back side of the element. Set *backfaceCulling*=OFF if it appears that you are
seeing the back side of an element and the front side is missing. You should also set
*backfaceCulling*=OFF if you believe the display is not complete.
accelerateOffScreen
A Boolean specifying whether the hardware accelerated graphics driver will be used for
off-screen rendering. The default value is ON if graphics hardware acceleration is
available and has not been disabled via the hardwareAcceleration option, and the
graphics driver supports the underlying technology. When set to OFF, an alternate
(slower) technique will be used to create off-screen images. Off-screen rendering is
used for Printing, Probe, and backing store (viewport refresh). Setting this value to
OFF will force printed images to be rendered without hardware acceleration. This is
useful when writing automated tests to produce raster images that you will want to
compare across multiple machines that may have different graphics environments.
backingStore
A Boolean specifying whether a backing store will be used to refresh a viewport after a
window occluding the viewport is moved or dismissed. The default value is ON.
shadersAvailable
A Boolean specifying if the graphics hardware supports the OpenGL Shading Language
(GLSL).
translucencyMode
An Int specifying whether speed or accuracy is more important when drawing translucent
objects. Lower values optimize for speed while higher values optimize for accuracy. The
actual meaning of each setting will depend on the setting of *shadersAvailable* and the
capabilities of the graphics hardware and driver. Possible values are 1 ≤≤
*translucencyMode* ≤≤ 6. The default value is 4.
options
None or a GraphicsOptions object specifying the object from which values are to be
copied. If other arguments are also supplied to setValues, they will override the values
in the *options* member. The default value is None.
contourRangeTexturePrecision
A Float specifying a tolerance used when computing the appropriate scale for
transforming result (contour) values to texture values. When set too low the 'out of
range' colors may be incorrectly shown for values near the range limits. The default
value is 0.5×10–5.
Raises
------
RangeError
"""
pass