Public Member Functions | |
Phasor () | |
void | process () throws PAVException |
void | setMode (int mode) |
String | toString () |
void | dispose () |
Static Public Attributes | |
static final int | MODE_DOTS = 1 |
static final int | MODE_LINES = 2 |
static final int | MODE_CURVES = 3 |
Phasor draws the amplitude of the frame samples versus their rate of change (first derivate).
pav::lib::visualizer::Phasor::Phasor | ( | ) | [inline] |
Ctor.
void pav::lib::visualizer::Phasor::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::Phasor::process | ( | ) | throws PAVException [inline] |
Draws to the PApplet specified by drawTo.
PAVException | If an error occures while drawing |
Implements pav::lib::visualizer::Visualizer.
void pav::lib::visualizer::Phasor::setMode | ( | int | mode | ) | [inline] |
Sets the visualization mode. Must be a valid mode according to the MODE_ constants of this class.
mode | The visualization mode |
String pav::lib::visualizer::Phasor::toString | ( | ) | [inline] |
Returns a short string representation of this visualizer.
Implements pav::lib::visualizer::Visualizer.
final int pav::lib::visualizer::Phasor::MODE_CURVES = 3 [static] |
Draw a shape (connect dots with curves).
This offers the best quality at the cost of speed.
final int pav::lib::visualizer::Phasor::MODE_DOTS = 1 [static] |
Draw dots.
final int pav::lib::visualizer::Phasor::MODE_LINES = 2 [static] |
Draw a a shape (connect dots with lines).