class NDATA2KNOT
****

-----------NData[]_-->_Knot[]_---------------------




Public


Readonly Shareds
dir0,
**** current dir= -1/ 1
dir1,
****
ofs
**** slope
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
pos0,
**** current pos.
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared str0,
****current str.
str1,
****
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;

Writable Shareds
dir0,
**** current dir= -1/ 1
dir1,
****
ofs
**** slope
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
pos0,
**** current pos.
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared str0,
****current str.
str1,
****
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;
shared v0,v1,v2,p0,scale:VERTEXK;
**** shared x0, x1, x2, y0, y1, y2:INT; shared xscale, yscale, px0, py0:INT;

Features
NData2Knot(ndata:NDATA, inout Knot:KNOT):BOOL
PointInCr(inout Knot:KNOT,inout tp:INT, OverSw:BOOL)
PointInPt2(NData:NDATA,inout Knot:KNOT,wi1,dir0,str1,pos0,ofs:INT,v:VERTEXK, inout pt:INT,inout needPt0:BOOL)
**** check the condition of the next code, then set (x1,y1) to Knot[] if needed and set "needPt0" be true if (x0,y0) of the next code is needed.
__-->_needPt0.
errMsg(n:INT)
findStart(NData:NDATA, KTbl:ARRAY{BOOL}, out wi:INT):BOOL
**** search start point of a component -->wi
searchNext(NData:NDATA, inout wi:INT, dir0, str0:INT):BOOL
**** search next code
setPts(NData:NDATA,wi:INT)
****
__x0:=px0+(pos0*2+1-dir0)*xscale;
__y0:=py0+(str0*2_-index_)*yscale;_
__x1:=px0+(pos0*2+1+dir0)*xscale;
__y1:=py0+((str0+ofs)*2_-index_)*yscale;_
__x2:=(x0+x1)_DIV_2;
__y2:=(y0+y1)_DIV_2;_
setStr1(NData:NDATA, wi, dir0:INT, inout str0,inout dir1,inout str1,inout ofs:INT)
**** wi,dir0,str0 ---> str0,dir1,str1,ofs

The Sather Home Page