0028095: Draw Harness, ViewerTest - use RGBA format instead of BGRA within vreadpixel
[occt.git] / tests / caf / presentation / B3
CommitLineData
40093367 1#INTERFACE CAF
2# Presentation attributes
3#
4# Testing attribute: TPrsStd_AISPresentation
5#
6# Testing command: AISColor
7# Note: Visual control of setting color
8#
9
10puts "caf003-B3"
11
12# Set NamedShape attribute
13box aBox1 100 200 300
14set aLabel 0:2
15SetShape D ${aLabel} aBox1
16
17# Initialize 3D viewer
18AISInitViewer D
19
20# Add AISPresentation attribute with parameter NS
21AISSet D ${aLabel} NS
22
23# Display presentation of NamedShape in the viewer
24AISDisplay D ${aLabel}
25
26# Close/Open transaction
27NewCommand D
28
29# Set a color of the shape as NOC_GREEN
30AISColor D ${aLabel} 229
31
32# Close/Open transaction
33NewCommand D
34
35# Undo
36Undo D
37
38# Update the viewer
39AISRepaint D
40
41# Redo
42Redo D
43
44# Update the viewer
45AISRepaint D
46
47puts "The box's color is NOC_GREEN"