SoftVisionSoftware development, consulting and services
Guest (talk|msg)
Content Server >> Content > Content formats > gfx
Content Server




GFX formát obsahu
The GFX content is interpreted as the batch of graphics commands to construct (compile) the image. This functionality is available if the graphic module SoftVision SpaceDisplay is either part of the system, or is available remotely as a graphic server. Graphic subsystem SpaceDisplay represents the object 3D graphic space with extensive possibilities of graphical objects and parameterization, the possibility of using mathematical expressions, generating charts, the insertion of LaTeX and MATH output, the execution of the graphic macros, and the composition of the output images from multiple graphical GFX articles.

The system allows to use the format identifiers to denote the blocks of text in the WIK article, enclosing the text between the opening <gfx> and closing </gfx> tag, which makes the denoted block of text to be interpreted using algorithm corresponding to the FMT content format. Denoting of the content blocks between the opening and closing format tags allows to specify the attributes of the output according to the type of output, such as alignment, and the like.

Každý riadok článku GFX predstavuje grafický príkaz, alebo nastavenie parametra grafického priestoru. Grafické objekty sú v systéme reprezentované programovými objektami, čo umožňuje v priebehu zostavovania grafickej štruktúry a grafického výstupu odkazovať sa na parametre grafických objektov, a pracovať s objektami pred zostavením grafického výstupu. Zostavenie grafického výstupu sa vykoná po vykonaní posledného príkazu dávky grafických príkazov.



Príklad
gfx.example

Kód príkladu
.gfx/picture 700;400 //odkaz na grafický článok so vstupnými parametrami šírka,výška
.gfx/xyz //odkaz na grafický článok ktorý zaradí x,y,z osi do výstupu
origin=zero
scale=14
rotate -45°,0,15°
picturerect <0|-4|-4>;<0|0|3>;<0|3>;.images/Shamrock.png,128,green.128,1
picturerect <1|-4|0>;<3|0|0>;<0|3>;.images/Crop-circles.png,200,blue.64,1
xycircle origin;6;blue.12,5,white.32:radial:white.32:white.32:blue~brighten~40.32
circle origin;zunit.norm(3);red.128,10,maroon.16,red
ellipse origin;xunit;yunit.norm(1);maroon.128,5,green.50,maroon
arc origin;xunit.norm(-3);zunit.opposite;blue,3,silver.64
arc origin;zunit.norm(-3);yunit;blue,1,silver.64
textex.t1 #CC:<0|-5>;* ALL IN ONE *;0;Verdana,14,,red.128
textex #TL:topleft.sum(view.<0.5|-0.5>);SoftVision;0;Verdana,42,B,blue.128,navy.200,2,white.128,blue.128
textex topleft.sum(view.<1|-5>);Space;90;Verdana,14,B,maroon.64
textex topleft.sum(view.<1.9|-5.02>);Display;90;Verdana,14,B,maroon.64
#txt=Grafický podsystém SoftVision predstavuje objektový 3D grafický priestor s rozsiahlymi možnosťami grafických objektov a parametrizácie.
textbox.tb1 #TR:topright.sum(view.<-1.5|-0.6>);{txt};0;6;4;Times,10,,blue.128,Wheat.128,5,yellow.32,silver.128,white.128:linear.-45:yellow~brighten~40.128
polyline <2|2>;blue,5,blue.32;<1|-1>,2,<3|-2>,4,5
math.m1 #BR:<0|0.5|-10>;#300#\fsin{x}
point m1.position;blue.64,5
math.m2 #BL:<10|0.5|0>;\fsin{x}
point m2.position;blue.64,3
math.m3 #BL:<3|6.5|0>;x^2
point m3.position;blue.64,3
rect.r1 origin;<1|0>;yunit;red.128,3,yellow.64
vector r1.center;r1.normal.norm(-3);green,5
ruler #BL:origin;<18|0>;<0|8>;<1|1|1>;#0.###,Verdana,8,,gray
chart origin;;;sin(x);blue,1
chart origin;;;sqr(x);blue,1
chart origin;,,,zunit.opposite;,,,xunit;sin(x);blue,5
arrow.a1 <0|-2|-14>;<5|0>;<0|1>;1.5;yellow.128+white.64+silver.16,25,gray,1
arrow.a2 <14|-2|0>;<0|0|-5>;<0|1>;1.5;yellow.128+white.64+silver.16,25,gray,1