glot::vector Class Reference

#include <vector.h>

Inheritance diagram for glot::vector:

glot::primitive

List of all members.

Public Member Functions

 vector (const point &s, const point &e, const color &col)
 Constructor.
void dl_gen (const screen &s)
 Display-list generator.

Public Attributes

color c
 The color of the the point.
point start
 The endpoints of the vector.
point end


Constructor & Destructor Documentation

glot::vector::vector ( const point s,
const point e,
const color col 
) [inline]

Constructor.

Parameters:
s - the start point
e - the end point
col - the color with which to draw


Member Function Documentation

void glot::vector::dl_gen ( const screen s  )  [virtual]

Display-list generator.

Parameters:
s - the screen specs
The screen stores the dimensions of the plot, etc. and based on that information, this function generates the geometry for the primitive. Typically this might be stored in a display list, but that is up to the container class, grapher

Implements glot::primitive.


Member Data Documentation

The color of the the point.

Reimplemented from glot::primitive.

The endpoints of the vector.


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

Generated on Fri Nov 20 18:09:06 2009 for OpenGLot by  doxygen 1.5.8