#include <Improv.h>
Collaboration diagram for Improv:
Public Methods | |
~Improv () | |
Destructor. More... | |
bool | isPlaying (void) |
Check if the sequence is currently playing. More... | |
bool | isReady (void) |
Check if the application is ready to play. More... | |
void | setPlaying (bool opt) |
Start/stop the sequence from playing. More... | |
void | addSrcWidget (SrcWidget *sw) |
Add a source widget to the application. More... | |
SrcWidget * | getSrcWidget (int sourceId) |
Return a pointer to the requested source widget. More... | |
int | getWidgetCount (int sourceId, int position) |
Return the number of widgets at a given position, with a given sourceId. More... | |
QValueList< SrcWidget * > | getSrcWidgetList (void) |
Return the doubly linked list containing all the source widgets. More... | |
void | addSeqWidget (SeqWidget *sw) |
Add a sequence widget to the list This class keeps track of all the sequence widgets in the application through this function. More... | |
QValueList< SeqWidget * > | getSeqWidgetList (void) |
Return the doubly linked list containing all the sequence widgets. More... | |
QPopupMenu * | getPluginMenu (void) |
Return a pointer to the plugin menu. More... | |
void | setFPS (int fps) |
Set the frame rate of playback. More... | |
void | setUnlimitedFPS (bool toggle) |
Toggle unlimited frames per second. More... | |
void | copyPictures (Picture *pic) |
Copies a picture to the internal buffers of all the app's sequence widgets When the source image is changed, this clears all the sequence widget internal buffers which are displayed and replaces them with one of matching format and attributes of the source picture. More... | |
void | tick (int frames=1) |
Iterates through one cycle of animation/processing/display. More... | |
void | process (Picture **in, Picture *out, int menuId, int inCount=1, int bufferId=-1, float *params=NULL) |
Perform image processing operation on a picture, given a selected menu Id. More... | |
QString * | getPluginName (int id) |
Return the name of the plugin given a menu id. More... | |
int | getPluginNumParams (int id) |
Return the number of input input paramters of the plugin operation given a menu id. More... | |
Static Public Methods | |
Improv * | Instance (int argc, char **argv) |
Returns the instance of the class, or if one does not exist, creates an instance and then returns it. More... | |
Friends | |
class | PluginMenu |
class | SeqWidget |
class | SrcWidget |
This class is used to track the global state of the application and provide communications between the classes. This class is the guts of the whole app.
|
Destructor. Deletes the instance of the class. |
|
Add a sequence widget to the list This class keeps track of all the sequence widgets in the application through this function. Once a sequence is added it becomes available to display the result of image processing operations.
|
|
Add a source widget to the application. The source widgets provide the animation sequence or camera images, which are then processed by the sequence widgets.
|
|
Copies a picture to the internal buffers of all the app's sequence widgets When the source image is changed, this clears all the sequence widget internal buffers which are displayed and replaces them with one of matching format and attributes of the source picture.
|
|
Return a pointer to the plugin menu. Only one copy of the plugin menu is instantiated. It is tracked by this class, and can be referenced through this function
|
|
Return the name of the plugin given a menu id.
|
|
Return the number of input input paramters of the plugin operation given a menu id.
|
|
Return the doubly linked list containing all the sequence widgets.
|
|
Return a pointer to the requested source widget.
|
|
Return the doubly linked list containing all the source widgets.
|
|
Return the number of widgets at a given position, with a given sourceId. In the application, all source widgets are at position 0 and sequence widgets are at subsequent positions.
|
|
Returns the instance of the class, or if one does not exist, creates an instance and then returns it.
|
|
Check if the sequence is currently playing.
|
|
Check if the application is ready to play.
|
|
Perform image processing operation on a picture, given a selected menu Id.
|
|
Set the frame rate of playback. Sets the desired rate of playback. If possible, the source and sequence widgets will update synchronously to this rate unless the CPU is overloaded, in which case it will update as fast as possible.
|
|
Start/stop the sequence from playing.
|
|
Toggle unlimited frames per second.
|
|
Iterates through one cycle of animation/processing/display.
|