glot::curve Class Reference

curve: a curve to plot More...

#include <curve.h>

Inheritance diagram for glot::curve:

glot::shader_primitive glot::primitive

List of all members.

Public Member Functions

 curve (string f, const color &col)
 Constructor.
void dl_gen (const screen &s)
 Display-list generator.

Public Attributes

color c
 Color variable.


Detailed Description

curve: a curve to plot

This class takes a function that accepts a double and returns a double and does its best to plot it in the grapher.

See also:
grapher

p_curve


Constructor & Destructor Documentation

glot::curve::curve ( string  f,
const color col 
) [inline]

Constructor.

Parameters:
func - the function to render
col - the color of the curve


Member Function Documentation

void glot::curve::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

Color variable.

This is the color the curve is supposed to take on.

Reimplemented from glot::primitive.


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