nielsie95
2008-10-17 17:14:08
Hey,
This is a plugin which contains 2 functions: DTMtoDDTM and DDTMtoDTM. DTMtoDDTM converts a DTM (string) to a DDTM (TDTMPointDef). As you already might have guessed: DDTMtoDTM does the opposite.
DTMtoDDTM might be useful to turn a static DTM into a Dynamic one (less lines needed to load a DDTM).
DDTMtoDTM might be used for some functions I have seen around (the ones that create a DDTM from an item).
I'm sure there are many other possibilities. Use your imagination.
Used like this:
~Nielsie95
This is a plugin which contains 2 functions: DTMtoDDTM and DDTMtoDTM. DTMtoDDTM converts a DTM (string) to a DDTM (TDTMPointDef). As you already might have guessed: DDTMtoDTM does the opposite.
DTMtoDDTM might be useful to turn a static DTM into a Dynamic one (less lines needed to load a DDTM).
DDTMtoDTM might be used for some functions I have seen around (the ones that create a DDTM from an item).
I'm sure there are many other possibilities. Use your imagination.
Used like this:
program New;
var
c: TDDTMarray;
begin
c := DTMtoDDTM('78DA638C666660D8CB00074C40FCFFFF7F309B112A06005105041D');
WriteLn(IntToStr(Length(c))+' point[s].');
WriteLn('');
if (Length(c) > 0) then
begin
WriteLn('x: '+IntToStr(c[0].x));
WriteLn('y: '+IntToStr(c[0].y));
WriteLn('Size: '+IntToStr(c[0].AreaSize));
WriteLn('Shape: '+IntToStr(c[0].AreaShape));
WriteLn('Tol: '+IntToStr(c[0].Tolerance));
WriteLn('Col: '+IntToStr(c[0].Color));
end;
WriteLn(DDTMtoDTM(c));
end.
~Nielsie95