glot::contour Class Reference

curve: a contour to plot More...

#include <contour.h>

Inheritance diagram for glot::contour:

glot::shader_primitive glot::primitive

List of all members.

Public Member Functions

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


Detailed Description

curve: a contour to plot

This class maps a scalar function of two variables to a 2-d plot showing the iso-curve z = 0

See also:
grapher

Constructor & Destructor Documentation

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

Constructor.

Parameters:
f - A function of x, y and t
col - the color of the curve
The function may use x, y and t and any combination of C-available functions. Rather, any C-available functions supported by the OpenGL Shading Language (GLSL) which includes most.

NOTE: GLSL is very picky about typecasting. When using integer values use the float equivalent instead: (Use 1.0 not 1, 93.0 not 93)


Member Function Documentation

void glot::contour::dl_gen ( const screen scr  )  [virtual]

Display-list generator.

Parameters:
scr - The specifications of the screen
This returns the geometry appropriate for the geometry shader used here. In this case, it's a set of line segments that specify a bounding square for which the shader should find the iso-curve. That is, a line from (x_min, y_min) to (x_max, y_max)

Implements 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