glot::scalar_field Class Reference

scalar_field: a scalar field to plot More...

#include <scalar_field.h>

Inheritance diagram for glot::scalar_field:

glot::shader_primitive glot::primitive

List of all members.

Public Member Functions

 scalar_field (const string &f)
 Constructor.
void dl_gen (const screen &s)
 Display-list generator.


Detailed Description

scalar_field: a scalar field to plot

This class takes a scalar-valued function of x, y and t and renders the resulting scalar field with a fragment shader. The shader expects the value of the function to be scaled between -1 and 1 and will clamp any value outside of that. (For instance, -10 gets mapped to the color for -1 and 1220 gets mapped to the value for 1).

Future versions will allow for a user-specified range, and ideally would also have a mode that automatically scales the values appropriately.

See also:
grapher

p_curve


Constructor & Destructor Documentation

glot::scalar_field::scalar_field ( const string &  f  )  [inline]

Constructor.

Parameters:
func - the function to render


Member Function Documentation

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

Display-list generator.

Parameters:
s - the screen specs of the plot
Generates a screen-filling quad that serves as the canvas for the fragment shader to do its thing.

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