Go to the documentation of this file.
4 #ifndef tools_sg_valop2sg
5 #define tools_sg_valop2sg
73 float odx = omx[0]-omn[0];
74 float xmargin = odx*0.1f;
83 float xspace = (mx1[0]-mn1[0])*0.1f;
107 float osx =
mx(mx1[0]-mn1[0],mx2[0]-mn2[0]);
114 float dx1 = -(mn1[0]+mx1[0])*0.5f;
115 float dy1 = -mn1[1]+h+ymargin;
120 float dx2 = -(mn2[0]+mx2[0])*0.5f;
121 float dy2 = -mx2[1]-ymargin;
131 float s2 = 0.5f*(mx1[0]-mn1[0])/(mx2[0]-mn2[0]);
135 float xshift = (mx1[0]-mn1[0])*0.1f;
136 float dx2 = -mn2[0]+mx1[0]+xshift;
138 float yshift = (mx1[1]-mn1[1])*0.3f;
139 float dy2 = -mn2[1]+mx1[1]-yshift;
151 float s2 = 0.5f*(mx1[0]-mn1[0])/(mx2[0]-mn2[0]);
155 float xshift = (mx1[0]-mn1[0])*0.1f;
156 float dx2 = -mn2[0]+mx1[0]+xshift;
158 float yshift = (mx1[1]-mn1[1])*0.3f;
159 float dy2 = -mn2[1]-yshift;
207 float odx = omx[0]-omn[0];
208 float xmargin = odx*0.1f;
263 m_out <<
"valop2sg::variable :"
264 <<
" expected a value::STRING."
265 <<
" Got " << a_var.
stype() <<
"."
318 float w = mx1[0]-mn1[0];
321 vtcs->
add(omx[0]-dx ,omx[1]-h,0);
322 vtcs->
add(omx[0]+w ,omx[1]-h,0);
323 vtcs->
add(omx[0]+w ,omx[1] ,0);
324 vtcs->
add(omx[0]-dx ,omx[1] ,0);
327 vtcs->
add(omx[0]-dx ,omx[1]-h,0);
340 float osy = (mx1[1]-mn1[1])/(omx[1]-omn[1]);
341 float ody = -omn[1]*osy + mn1[1];
377 tft->
unitext[0].push_back(0x00028);
449 float s2 = 0.5f*(mx1[0]-mn1[0])/(mx2[0]-mn2[0]);
457 float xshift = (mx1[0]-mn1[0])*0.1f;
458 float dx2 = -mn2[0]+mx1[0]+xshift;
460 float yshift = (mx1[1]-mn1[1])*0.3f;
461 float dy2 = -mn2[1]+mx1[1]-yshift;
511 tft->
unitext[0].push_back(0x00028);
541 float odx = omx[0]-omn[0];
542 float xmargin = odx*0.1f;
545 float xendcomma = mx1[0]+xmargin+(omx[0]-omn[0]);
549 xend2 = xendcomma+(mx2[0]-mn2[0]);
616 if(a_c==
'-')
return 0x0002D;
617 if(a_c==
'.')
return 0x0002E;
619 if(a_c==
'0')
return 0x00030;
620 if(a_c==
'1')
return 0x00031;
621 if(a_c==
'2')
return 0x00032;
622 if(a_c==
'3')
return 0x00033;
623 if(a_c==
'4')
return 0x00034;
624 if(a_c==
'5')
return 0x00035;
625 if(a_c==
'6')
return 0x00036;
626 if(a_c==
'7')
return 0x00037;
627 if(a_c==
'8')
return 0x00038;
628 if(a_c==
'9')
return 0x00039;
630 if(a_c==
'A')
return 0x00041;
631 if(a_c==
'B')
return 0x00042;
632 if(a_c==
'C')
return 0x00043;
633 if(a_c==
'D')
return 0x00044;
634 if(a_c==
'E')
return 0x00045;
635 if(a_c==
'F')
return 0x00046;
636 if(a_c==
'G')
return 0x00047;
637 if(a_c==
'H')
return 0x00048;
638 if(a_c==
'I')
return 0x00049;
639 if(a_c==
'J')
return 0x0004A;
640 if(a_c==
'K')
return 0x0004B;
641 if(a_c==
'L')
return 0x0004C;
642 if(a_c==
'M')
return 0x0004D;
643 if(a_c==
'N')
return 0x0004E;
644 if(a_c==
'O')
return 0x0004F;
645 if(a_c==
'P')
return 0x00050;
646 if(a_c==
'Q')
return 0x00051;
647 if(a_c==
'R')
return 0x00052;
648 if(a_c==
'S')
return 0x00053;
649 if(a_c==
'T')
return 0x00054;
650 if(a_c==
'U')
return 0x00055;
651 if(a_c==
'V')
return 0x00056;
652 if(a_c==
'W')
return 0x00057;
653 if(a_c==
'X')
return 0x00058;
654 if(a_c==
'Y')
return 0x00059;
655 if(a_c==
'Z')
return 0x0005A;
657 if(a_c==
'a')
return 0x00061;
658 if(a_c==
'b')
return 0x00062;
659 if(a_c==
'c')
return 0x00063;
660 if(a_c==
'd')
return 0x00064;
661 if(a_c==
'e')
return 0x00065;
662 if(a_c==
'f')
return 0x00066;
663 if(a_c==
'g')
return 0x00067;
664 if(a_c==
'h')
return 0x00068;
665 if(a_c==
'i')
return 0x00069;
666 if(a_c==
'j')
return 0x0006A;
667 if(a_c==
'k')
return 0x0006B;
668 if(a_c==
'l')
return 0x0006C;
669 if(a_c==
'm')
return 0x0006D;
670 if(a_c==
'n')
return 0x0006E;
671 if(a_c==
'o')
return 0x0006F;
672 if(a_c==
'p')
return 0x00070;
673 if(a_c==
'q')
return 0x00071;
674 if(a_c==
'r')
return 0x00072;
675 if(a_c==
's')
return 0x00073;
676 if(a_c==
't')
return 0x00074;
677 if(a_c==
'u')
return 0x00075;
678 if(a_c==
'v')
return 0x00076;
679 if(a_c==
'w')
return 0x00077;
680 if(a_c==
'x')
return 0x00078;
681 if(a_c==
'y')
return 0x00079;
682 if(a_c==
'z')
return 0x0007A;
684 if(a_c==
'_')
return 0x0005F;
692 a_node.
font = sg::font_stixgeneral_otf();
694 std::vector<unichar>
line;
695 line.push_back(a_unichar);
703 a_node.
font = sg::font_stixgeneral_otf();
705 std::vector<unichar>
line;
#define tools_sforcit(a__s, a__it)