Compound list   Compound Members  

Radar Class Reference

A generic 3D object tracking system. More...

List of all members.

Public Members


Detailed Description

A generic 3D object tracking system.

Can be subclassed to use the information anyway needed.


Member Function Documentation

Radar::Radar()

Construct the abstract tracking object.

long Radar::setRange(float Range, int ViewSize)

Sets the world Range, and a pixel viewsize to scale positions by.

Try playing with the range, and see what results you get. The ViewSize is the size (in pixels) of the actual representation. For example, if you plot the radar on a 200x200 area, use ViewSize=200

long Radar::addItem(float x, float y, float z)

Add an object to the radar.

The coordinates are relative to the radar's position and orientation

long Radar::clear()

Remove all objects.

Call before each frame.

long Radar::status()

Returns a non-zero value if an error occured.

long Radar::iterate()

Call this to reset the iteration through the objects Used in rendering implementation.

long Radar::getNext(int& x, int& y, int& z)

Retrieves the next object's position.

Returns 0 if an object is available and a non-zero value if no more objects are available. Returns object's position on the grid in the reference variables.

virtual long Radar::render() = 0 [pure virtual]

Implement this in subclasses to provide actual visible radar.


The documentation for this class was generated from the following file: