


Next:Animation
ViewsUp:Animator
levelPrevious:Entry
pointsContents
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.
Example
Below is an example of a correctly defined subclass of Animator.
class MyAnimator : public Animator {
private:
View1 v1; // see next section
View2 v2;
public:
int Controller();
}
The controller might look like
int MyAnimator::Controller()
{
if (!strcmp(AlgoEvtName,''Init")) {
v1.Start(AnimInts[0],AnimDoubles[0]);
v2.Init(AnimInts[0],AnimDoubles[0]);
}
else if . . .
}
Ha Hoai Phuong
2002-11-11