Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Visualization Class Reference

#include <plugin.h>

Inheritance diagram for Visualization:

FFTScope Scope MonoFFTScope StereoFFTScope MonoScope StereoScope List of all members.

Public Member Functions

 Visualization (int interval=125, int pid=0)
virtual ~Visualization ()
virtual void start ()
virtual void stop ()
int interval () const
virtual void setInterval (int msecs)
virtual void timeout ()=0
Noatun::StereoEffectStack visualizationStack ()
Arts::SoundServerV2 * server ()
bool connected ()

Static Public Member Functions

int noatunPid ()
void initDispatcher ()

Friends

class TimerThingy
class ThingThatTellsAVisualizationThatNoatunIsGone
class ExitNotifier
class NoatunApp

Detailed Description

The base for all sorts of visualizations

all Noatun Visualizations can be in separate processes! You must fork, and then exec() to be able to use this. Its perfectly safe to create a visualization in a binary executed by KProcess.

Definition at line 74 of file plugin.h.


Constructor & Destructor Documentation

Visualization::Visualization int    interval = 125,
int    pid = 0
 

interval is how frequently the rescope will occur 0 means disabled

Pid, if not zero, can force the visualizaton to use another noatun's process's visualization stack, if it is zero, it'l try to guess what to use

virtual Visualization::~Visualization   [virtual]
 


Member Function Documentation

bool Visualization::connected  
 

test if the server is still there

void Visualization::initDispatcher   [static]
 

create a dispatcher object , does nothing if this already has been called

int Visualization::interval   const
 

how long between each rescoping in milliseconds

int Visualization::noatunPid   [static]
 

return noatun's pid, useful if you're doing remote-visualization

It returns the pid to use, or -1, if there was an error, or there isn't a noatun running. If there isn't a noatun running, the computer will crash, the trains will take the wrong tracks, time will start moving in the wrong direction, and the whole universe will melt down.

Arts::SoundServerV2* Visualization::server  
 

virtual void Visualization::setInterval int    msecs [virtual]
 

set how long to wait the change takes effect immediately, unless it hadn't been start()ed beforehand

virtual void Visualization::start   [virtual]
 

start the timer, if it's 0, then this will do nothing.

virtual void Visualization::stop   [virtual]
 

stop the timer

virtual void Visualization::timeout   [pure virtual]
 

cause a rescoping to take effect immediately

Implemented in StereoFFTScope, MonoFFTScope, MonoScope, and StereoScope.

Noatun::StereoEffectStack Visualization::visualizationStack  
 


Friends And Related Function Documentation

friend class ExitNotifier [friend]
 

Definition at line 78 of file plugin.h.

friend class NoatunApp [friend]
 

Definition at line 79 of file plugin.h.

friend class ThingThatTellsAVisualizationThatNoatunIsGone [friend]
 

Definition at line 77 of file plugin.h.

friend class TimerThingy [friend]
 

Definition at line 76 of file plugin.h.


The documentation for this class was generated from the following file:
Generated on Sat May 24 15:10:28 2003 for Noatun by doxygen1.3-rc3