tkacik@hobbes.cs.gmr.com (Tom Tkacik CS/50) (04/30/91)
I am trying to use -lgraphics for a simple drawing editor. I am using minidraw (from the interviews tutorial) as a base. I want to modify it so that when I move or rotate a line, a rubberband line is used, instead of a rubberband rectangle. I finally settled on using IsA() to determine when I have grabbed a line instead of a rectangle, but cannot get the current end points for the line. Line::GetOriginal() always gives me the starting line, which is fine the first time I move it. But after that, it is not right. Graphic::GetBox() gets the current bounding box for a graphic, which is how the rubberband rectangle is drawn. But I need to know which corners of the box corresponds to the end points of the line. Is there a way to get the current endpoints of a line that may have had one or more transformations applied to it? Idraw does this, but it uses UniGraphics, so I do not know if that will help me. -- Tom Tkacik GM Research Labs tkacik@hobbes.cs.gmr.com tkacik@kyzyl.mi.org