glot::primitive Class Reference

primitive: the parent class of all rendered objects More...

#include <primitive.h>

Inheritance diagram for glot::primitive:

glot::p_curve glot::shader_primitive glot::vector glot::contour glot::curve glot::flow glot::scalar_field

List of all members.

Public Member Functions

 primitive ()
 Default constructor.
 primitive (const color &col)
 Constructor.
virtual ~primitive ()
 Destructor.
virtual void dl_gen (const screen &s)=0
 Display-list generator.

Public Attributes

color c
 The color of the the primitive.
GLenum p
 Shader program handle.


Detailed Description

primitive: the parent class of all rendered objects

This class is the parent of all the primitives that get drawn to the screen.

See also:
shader_primitive

Constructor & Destructor Documentation

glot::primitive::primitive (  )  [inline]

Default constructor.

glot::primitive::primitive ( const color col  )  [inline]

Constructor.

Parameters:
col - the color of the primitive
Initializes the color of the primitive and the program GLenum

virtual glot::primitive::~primitive (  )  [inline, virtual]

Destructor.

Virtual classes need virtual destructors


Member Function Documentation

virtual void glot::primitive::dl_gen ( const screen s  )  [pure 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

Implemented in glot::contour, glot::curve, glot::flow, glot::p_curve, glot::scalar_field, and glot::vector.


Member Data Documentation

The color of the the primitive.

Reimplemented in glot::curve, glot::p_curve, and glot::vector.

Shader program handle.

Some primitives specify their own shader programs and the container class, grapher, will use each one's self-specified program when it's called.


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