Home

hersto:  The Followers Test Application

 

Rant to the author:

    

Check for a response

 

The Followers Tester application utilizes the classes provided by the Follower C++ Library in order to:

  • demonstrate their usage in C++ code

  • demonstrate the animations these classes generate

  • verify the correctness of the implementation

The application demonstrates the Follower classes (CTDamper and CTChaser) to be used for various data types, draws a visual representation of the animation performed and allows the user to generate destination and value input and send it to the Follower objects.

The application runs under Windows and is provided as source code as well as a compiled binary.

Download

Please Note:
The Followers Tester application currently only supports Dampers, but no Chasers.

Download or start the application directly from this website: TestFollowers-1_0.exe (272 K Byte)
The application runs under Windows and Wine(Linux).

Or download the source for study or compilation: FollowersTester-1.0.rar (36.6 K Byte)
The project is an MFC project that compiles under Visual Studio 7.1.

Structure

The source files are grouped into the following directories:

Directory Followers:

The files from the Follower C++ Library.

The templates are generic on the data type to be animated. Thus one can use the CTDamper and CTChaser on simple data types as a double precision number or an n-dimensional vector, as well as on a quaternion representing orientations in 3D.

A CTFollowerVarTrait class allows to specify how the operations required by the CTDamper and CTChaser class are translated to operations supported by the animated data type. This is necessary only if they differ from addition, diference calculation and comparision as performed on floating point numbers.

Directory ExampleDataTypes:

Contains a few data types that are animated by the CTDamper and CTChaser classes.
These are:

  • n-dimensional vector
  • complex numbers
  • angles (2D rotations)

The tAngle data type demonstrates how a more abstract data type than a simple floating point number can be used by a CTDamper or CTChaser class. Together with the AngleTester.cpp|.h files it demonstrates how such a data type is adopted to these classes via the CTFollowerVarTrait. There is a comment that indicates how this could be done for 3D rotations using a slerp operation.

Directory ExampleTimer:

The CTDamper and CTChaser classes are designed to be integrated in an animating frame work where they can announce at what periods in time they need a method to be called that allows them to frequently update their internal state. This directory contains an example CTimer class that manages a list of animation objects like the CTDamper and CTChaser and provides them with a frequent time stamp update as they need it.

Directory TestApp:

The Follower Test application itself. This directory provides the GUI that allow the user to control the application and the various tester modules that drive the CTDamper and CTChaser objects and visualize their animation.

Directory Resources:

Files required for to define Win32 resources of the Follower tester application.

 

__.-.__
end of document