List of all members.
Detailed Description
Visualization implementation.
- Author:
- christopher
Constructor & Destructor Documentation
pav::lib::VisualizationImpl::VisualizationImpl |
( |
PApplet |
target |
) |
[inline] |
Ctor.
- Parameters:
-
| target | Where to visualize to. Must not be null |
Member Function Documentation
Adds a new visualizer. The new visualizer will be drawn last. This method automatically tells the visualizer to draw to the applet of this visualization.
- Parameters:
-
| visualizer | The visualizer to add. Must not be null |
- Exceptions:
-
| PAVException | If an error occured while adding the visualizer |
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::addVisualizer |
( |
Visualizer |
visualizer, |
|
|
String |
name | |
|
) |
| | throws PAVException [inline] |
Adds a new visualizer. The new visualizer will be drawn last. This method automatically tells the visualizer to draw to the applet of this visualization.
- Parameters:
-
| visualizer | The visualizer to add. Must not be null |
| name | The name of the visualizer. Must be unique |
- Exceptions:
-
| PAVException | If an error occured while adding the visualizer |
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::addVisualizer |
( |
Visualizer |
visualizer, |
|
|
int |
level, |
|
|
String |
name | |
|
) |
| | throws PAVException [inline] |
Adds a new visualizer with a given level. The level specifies then the visualizer will be told to draw itself relative to the other visualizers. Visualizers with lower levels will be drawn first. If a visualizer with the given level already exists, it will be replaced. This method automatically tells the visualizer to draw to the applet of this visualization.
- Parameters:
-
| visualizer | The visualizer to add. Must not be null |
| level | The level |
| name | The name of the visualizer. Must be unique |
- Exceptions:
-
| PAVException | If an error occured while adding the visualizer |
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::addVisualizer |
( |
Visualizer |
visualizer, |
|
|
int |
level | |
|
) |
| | throws PAVException [inline] |
Adds a new visualizer with a given level. The level specifies then the visualizer will be told to draw itself relative to the other visualizers. Visualizers with lower levels will be drawn first. If a visualizer with the given level already exists, it will be replaced. This method automatically tells the visualizer to draw to the applet of this visualization.
- Parameters:
-
| visualizer | The visualizer to add. Must not be null |
| level | The level |
- Exceptions:
-
| PAVException | If an error occured while adding the visualizer |
Implements pav::lib::Visualization.
Visualizer pav::lib::VisualizationImpl::getVisualizer |
( |
String |
name |
) |
[inline] |
Returns the visualizer with the given name or null if no such visualizer exists.
- Parameters:
-
| level | The visualizer name |
- Returns:
- The visualizer or null
Implements pav::lib::Visualization.
Visualizer pav::lib::VisualizationImpl::getVisualizer |
( |
int |
level |
) |
[inline] |
Returns the visualizer that is located at the specified level. Returns null if no visualizer exists at that level.
- Parameters:
-
- Returns:
- The visualizer or null
Implements pav::lib::Visualization.
Map<Integer, Visualizer> pav::lib::VisualizationImpl::getVisualizers |
( |
|
) |
[inline] |
Gets all visualizers that are currently part of this visualization along with their associated level. The Map is be sorted, the visualizer with the lowest level is the first item in the list. The returned map must not be modified.
- Returns:
- A map containing all visualizers
Implements pav::lib::Visualization.
int pav::lib::VisualizationImpl::numVisualizers |
( |
|
) |
[inline] |
Returns the number of visualizers this visualization contains.
- Returns:
- Number of visualizers
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::process |
( |
float[] |
frame |
) |
throws PAVException [inline] |
Tells the visualization to process.
- Parameters:
-
| frame | The next frame of the audio signal. Must not be null |
- Exceptions:
-
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::removeVisualizer |
( |
String |
name |
) |
[inline] |
Removes the visualizer with the given name. Does nothing if the visualizer does not exist.
- Parameters:
-
| name | The name of the visualizer. Must not be null |
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::removeVisualizer |
( |
Visualizer |
visualizer |
) |
[inline] |
Removes a visualizer. Does nothing if the visualizer does not exist.
- Parameters:
-
| visualizer | The visualizer. Must not be null |
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::removeVisualizerAt |
( |
int |
level |
) |
[inline] |
Removes the visualizer at the specified level if it exists, otherwise does nothing.
- Parameters:
-
Implements pav::lib::Visualization.
void pav::lib::VisualizationImpl::setSampleRate |
( |
float |
rate |
) |
[inline] |
List<Visualizer> pav::lib::VisualizationImpl::visualizers |
( |
|
) |
[inline, protected] |
Returns a sorted list of the visualizers to draw to or an empty set if no visualizers are added.
- Returns:
- A list of visualizers
The documentation for this class was generated from the following file:
- src/pav/lib/VisualizationImpl.java