nextuppreviouscontents
Next:Entry PointsUp:Objects in an AnimationPrevious:Objects in an AnimationContents




This section is a copy of [1] , which is available at:
http://www.cc.gatech.edu/gvu/softviz/parviz/polkastuff/polkadoc-lite.ps.
The POLKA document is copyrighted by John T. Stasko, College of Computing, Georgia Institute of Technology, Atlanta, GA 30332-0280, and is available for noncommercial use.

Loc

A Loc(ation) is an ( x,y) position within a View window. Locs are convenient for placing AnimObjects or having movements run relative to them. The $x$ and $y$ positions in a Loc are actually double values.

The ability to save various logical coordinate points in the viewing window is a powerful tool. Because locations are identified within a real-valued coordinate system, the same animation can be performed in windows of varying physical size without changing any of the code controlling the animation.

Below is the class definition for a Loc.

class Loc {
   public:
      Loc();
      Loc(double x, double y);
      ~Loc();

      double XCoord();
      double YCoord();
      int operator == (Loc &loc);
};
 

 
 
 


Ha Hoai Phuong

2002-11-11