class Plane : public GModule

Class Plane

Inheritance:


Public Methods

virtual void draw_graphics (void)
Main drawing routine
virtual void init_graphics (void)
Set lighting and material properties for planes
virtual void kill_graphics (void)
If memory lock has been set, free it.
Plane ()
Constructor. Set initial variable values.
virtual void preinit_graphics (void)
Initialize memory lock for planes
virtual void update_graphics (void)
Empty.

Private Methods

void set_color (double colval, int colflag)
Calculate and set the color of the plane
void set_gray (double grayval, int grayflag)
Calculate the color of the gray highlight in the plane
void set_pos (double yval, double zval, int yflag, int zflag)
Calculate and set the y and z position of the plane
void set_tilt (double tiltval, int tiltflag)
Calculate and set the amount that the plane will tilt to the left

Inherited from GModule:


Documentation

Class Plane. Class Plane is a child of the class GModule. It is one of currently three graphical representations which maps sound parameters to visual parameters. One plane with the following attributes is drawn per fundamental sound.
Plane()
Constructor. Set initial variable values.

virtual void preinit_graphics(void)
Initialize memory lock for planes. Calculate plane coordinates and set normal vectors.

virtual void init_graphics(void)
Set lighting and material properties for planes. If not already done, initialize menu.

virtual void draw_graphics(void)
Main drawing routine. For each wave that is active, determine if it represents a fundamental. If it does, draw a plane with the sound attributes.

virtual void update_graphics(void)
Empty.

virtual void kill_graphics(void)
If memory lock has been set, free it.

void set_pos(double yval, double zval, int yflag, int zflag)
Calculate and set the y and z position of the plane. Called from draw_graphics.
Parameters:
yval - Value to calculate y coordinate.
zval - Value to calcualte z coordinate.
yflag - True if yval will be used. Otherwise use a default.
zflag - True if zval will be used. Otherwise use a default.
See Also:
draw_graphics

void set_tilt(double tiltval, int tiltflag)
Calculate and set the amount that the plane will tilt to the left. Called from draw_graphics.
Parameters:
tiltval - Value to calculate the amount of tilt.
tiltflag - True if tiltval will be used. Otherwise use a default.
See Also:
draw_graphics

void set_color(double colval, int colflag)
Calculate and set the color of the plane. Called from draw_graphics.
Parameters:
colval - Value to calculate the color.
colflag - True if colval will be used. Otherwise use a default.
See Also:
draw_graphics

void set_gray(double grayval, int grayflag)
Calculate the color of the gray highlight in the plane. Called from draw_graphics.
Parameters:
grayval - Value to calculate amount of gray.
grayflag - True if grayval will be used. Otherwise use a default.
See Also:
draw_graphics


This class has no child classes.

alphabetic index hierarchy of classes


M4cave Sound Visualization

Contacts

M4cave Reference Manual
Help With Doc++

generated by doc++