0029350: Visualization, OpenGl_Text - add Aspect_TODT_SHADOW text style
[occt.git] / tests / 3rdparty / fonts / A7
index 75d74bc..32931b6 100644 (file)
@@ -6,28 +6,30 @@ puts ""
 
 vfont add [locate_data_file DejaVuSans.ttf] SansFont
 
-vdrawtext t1 "Overlay Test Blend" -2d -perspos -1 1 -pos 100 -50 0 -height 16 -font SansFont -color 1 1 0 -disptype blend -subcolor 0 0 1
+set aParams "-height 16 -font SansFont -2d -persPos -1 1 -subColor BLUE1"
 
-vdrawtext t2 "Overlay Test Decal" -2d -perspos -1 1 -pos 100 -100 0 -height 16 -font SansFont -color 1 1 0 -disptype decal -subcolor 0 0 1
+vclear
+vviewparams -scale 254.5 -proj 0.89 -0.37 0.26 -up -0.21 0.16 0.96 -at 0.69 1.05 1.46
 
-vdrawtext t3 "Overlay Test Subtitle" -2d -perspos -1 1 -pos 100 -150 0 -height 16 -font SansFont -color 1 1 0 -disptype subtitle -subcolor 0 0 1
+vdrawtext td "Overlay Test Decal"    {*}$aParams -pos 20 -100 0 -color WHITE  -dispType decal
+vdrawtext ts "Overlay Test Shadow"   {*}$aParams -pos 20 -150 0 -color WHITE  -dispType shadow
+vdrawtext tx "Overlay Test XOR"      {*}$aParams -pos 20 -200 0 -color YELLOW -dispType blend
+vdrawtext tt "Overlay Test Subtitle" {*}$aParams -pos 20 -250 0 -color WHITE  -dispType subtitle
+vdrawtext tw "Overlay Test Normal"   {*}$aParams -pos 20 -300 0 -color WHITE  -dispType normal
+vdrawtext tb "Overlay Test Normal"   {*}$aParams -pos 20 -350 0 -color GRAY33  -dispType normal
 
-vdrawtext t4 "Overlay Test Normal" -2d -perspos -1 1 -pos 100 -200 0 -height 16 -font SansFont -color 0 1 1 -disptype normal -subcolor 0 0 1
-
-vdrawtext t5 "    Overlay Test Normal  \n    Second line" -2d -perspos -1 1 -pos 100 -250 0 -height 16 -font SansFont -color 0 1 1 -disptype normal -subcolor 0 0 1
-
-vdrawtext t6 "    Overlay Test Subtitle\n    Second line" -2d -perspos -1 1 -pos 100 -300 0 -height 16 -font SansFont -color 1 1 0 -disptype subtitle -subcolor 0 0 1
-
-vdrawtext t7 "    Overlay Test Decal   \n    Second line" -2d -perspos -1 1 -pos 100 -350 0 -height 16 -font SansFont -color 1 1 0 -disptype decal -subcolor 0 0 1
-
-vdrawtext t8 "    Overlay Test Blend   \n    Second line" -2d -perspos -1 1 -pos 100 -400 0 -height 16 -font SansFont -color 1 1 0 -disptype blend -subcolor 0 0 1
+vdrawtext td2 "    Overlay Test Decal   \n    Second line" {*}$aParams -pos 200 -100 0 -color WHITE  -dispType decal
+vdrawtext ts2 "    Overlay Test Shadow  \n    Second line" {*}$aParams -pos 200 -150 0 -color WHITE  -dispType shadow
+vdrawtext tx2 "    Overlay Test XOR     \n    Second line" {*}$aParams -pos 200 -200 0 -color YELLOW -dispType blend
+vdrawtext tt2 "    Overlay Test Subtitle\n    Second line" {*}$aParams -pos 200 -250 0 -color WHITE  -dispType subtitle
+vdrawtext tw2 "    Overlay Test Normal  \n    Second line" {*}$aParams -pos 200 -300 0 -color WHITE  -dispType normal
+vdrawtext tb2 "    Overlay Test Normal  \n    Second line" {*}$aParams -pos 200 -350 0 -color GRAY33 -dispType normal
 
 box b 1 2 3
-vsetdispmode 1
-vdisplay b
-vfit
-
-vfps
+vdisplay -dispMode 1 b
+vselprops localSelHighlight -dispMode 1 -material SILVER -color WHITE
+vselmode b FACE 1
+vselect 250 250
 
 vglinfo
-checkview -screenshot -3d -path ${imagedir}/${test_image}.png
+vdump ${imagedir}/${casename}.png