Classes | Public Member Functions

pav::lib::visualizer::Bubbles Class Reference

List of all members.

Classes

class  Bubble
class  Generator
class  Intensity

Public Member Functions

 Bubbles ()
void setDarkenFactor (float factor)
void setBubbleSize (float min, float max)
void useBloom (boolean bloom)
void setSpawnRate (float min, float max)
void drawTo (PApplet applet) throws PAVException
void process () throws PAVException
String toString ()
void dispose ()

Detailed Description

Generates bubbles based on sound. Requires GLGraphics render mode.

Author:
christopher

Constructor & Destructor Documentation

pav::lib::visualizer::Bubbles::Bubbles (  )  [inline]

Ctor.


Member Function Documentation

void pav::lib::visualizer::Bubbles::dispose (  )  [inline]

Disposes this visualizer, releasing all resources that were used exclusively by this visualiter. Subsequent calls to any methods of the visualizer might cause exceptions.

Implements pav::lib::visualizer::Visualizer.

void pav::lib::visualizer::Bubbles::drawTo ( PApplet  applet  )  throws PAVException [inline]

Sets the PApplet to draw to. Must be called before process().

Parameters:
applet Where to draw to. Must not be null
Exceptions:
PAVException If the visualizer does not work with this applet

Reimplemented from pav::lib::visualizer::VisualizerAbstract.

void pav::lib::visualizer::Bubbles::process (  )  throws PAVException [inline]

Draws to the PApplet specified by drawTo.

Exceptions:
PAVException If an error occures while drawing

Implements pav::lib::visualizer::Visualizer.

void pav::lib::visualizer::Bubbles::setBubbleSize ( float  min,
float  max 
) [inline]

Sets the minimum and maximum size of the bubbles. The values are relative, f.i. 0.2 means 0.2 times display area width.

Parameters:
min The minimum bubble size. Must be positive
max The maximum bubble size. Must be > min
void pav::lib::visualizer::Bubbles::setDarkenFactor ( float  factor  )  [inline]

Sets the darken factor. This factor will influence how fast drawn bubbles will disappear.

Fitting values are based on many variables, mainly on the spawn rate (see setSpawnRateTargets()). Default is 12.

Parameters:
factor The darken factor. Must be positive
void pav::lib::visualizer::Bubbles::setSpawnRate ( float  min,
float  max 
) [inline]

Sets the spawn rate. The visualization will try to spawn at least min bubbles and at the most max bubbles per call to process().

Parameters:
min The min number of bubbles to spawn. Must be > 0
max The max number of bubbles to spawn. Must be > min
String pav::lib::visualizer::Bubbles::toString (  )  [inline]

Returns a short string representation of this visualizer.

Returns:
visualizer info

Implements pav::lib::visualizer::Visualizer.

void pav::lib::visualizer::Bubbles::useBloom ( boolean  bloom  )  [inline]

Whether to use a bloom postprocessing filter.

Parameters:
bloom Whether to use bloom postprocessing

The documentation for this class was generated from the following file:
 All Classes Functions Variables