#include <PfApp.h>
Inheritance diagram for vrj::PfApp:


Public Methods | |
| PfApp (Kernel *kern) | |
| PfApp () | |
| virtual | ~PfApp () |
| virtual void | initScene ()=0 |
| Initializes the scene graph. More... | |
| virtual void | preForkInit () |
| Called between pfInit and pfConfig. More... | |
| virtual void | appChanFunc (pfChannel *chan) |
| Function called in application process for each active channel each frame. More... | |
| virtual pfGroup * | getScene ()=0 |
| Returns the current scene graph. More... | |
| virtual void | configPWin (pfPipeWindow *pWin) |
| Initializes a pWin. More... | |
| virtual std::vector< int > | getFrameBufferAttrs () |
| Returns the needed parameters for the performer framebuffer. More... | |
| virtual void | drawChan (pfChannel *chan, void *chandata) |
| Function called in the channel draw function to do the actual drawing. More... | |
| virtual void | preDrawChan (pfChannel *chan, void *chandata) |
| Function called by the DEFAULT drawChan function before clearing the channel and drawing the next frame (pfFrame()). More... | |
| virtual void | postDrawChan (pfChannel *chan, void *chandata) |
| Function called by the DEFAULT drawChan function after clearing the channel and drawing the next frame (pfFrame()). More... | |
| virtual DrawManager * | getDrawManager () |
| Gets the Draw Manager to use. More... | |
This class defines the class that Performer application classes should be derived from. The interface given is the interface that the System expects in order to interface with the application.
Definition at line 57 of file PfApp.h.
|
|
Definition at line 60 of file PfApp.h. References vrj::App::App.
00060 : App(kern) 00061 { 00062 //api.setPerformer(); // Tell everyone that we are Performer 00063 } |
|
|
Definition at line 65 of file PfApp.h.
00065 {;}
|
|
|
Definition at line 67 of file PfApp.h.
00068 {
00069 /* Do nothing. */ ;
00070 }
|
|
|
Initializes the scene graph. Called after pfInit and pfConfig but before apiInit. |
|
|
Called between pfInit and pfConfig. This function allows the user application to do any processing that needs to happen before performer forks its processes off but after pfInit().
Definition at line 85 of file PfApp.h.
00085 {;}
|
|
|
Function called in application process for each active channel each frame. Called immediately before draw (pfFrame()). XXX: Should maybe only call this for one "master" channel each frame. Definition at line 92 of file PfApp.h.
00092 {;}
|
|
|
Returns the current scene graph. This function must be defined so that the Performer Draw Manager can get a scene graph to draw.
|
|
|
Initializes a pWin. Called by the Performer Draw Manager as soon as the pwin is opened. Definition at line 110 of file PfApp.h.
00111 {;}
|
|
|
Returns the needed parameters for the performer framebuffer.
Definition at line 119 of file PfApp.h.
00120 { return std::vector<int>();}
|
|
||||||||||||
|
Function called in the channel draw function to do the actual drawing.
For most programs the default behavior of this function is correct. It simply does the following: Advanced users may want to overide this behavior for advanced rendering effects such as over-lays, or multi-pass rendering. See the Performer man pages about overiding the draw traversal function. This function is the draw traversal function but with the projections set correctly for the given display and eye.
Definition at line 139 of file PfApp.h. References postDrawChan, preDrawChan, and vrjDBG_DRAW_MGR.
00140 {
00141 vprDEBUG_OutputGuard(vrjDBG_DRAW_MGR, vprDBG_VERB_LVL,
00142 std::string("--- drawChan: Entered ---.\n"),
00143 std::string("--- drawChan: Exited ---.\n"));
00144 this->preDrawChan(chan,chandata);
00145 chan->clear(); // Clear the channel
00146 pfDraw(); // Draw the channel
00147 this->postDrawChan(chan,chandata);
00148 }
|
|
||||||||||||
|
Function called by the DEFAULT drawChan function before clearing the channel and drawing the next frame (pfFrame()).
Definition at line 154 of file PfApp.h. Referenced by drawChan.
00154 {;}
|
|
||||||||||||
|
Function called by the DEFAULT drawChan function after clearing the channel and drawing the next frame (pfFrame()).
Definition at line 160 of file PfApp.h. Referenced by drawChan.
00160 {;}
|
|
|
Gets the Draw Manager to use. Returns the Performer Draw Manager. Implements vrj::App. Definition at line 166 of file PfApp.h.
00167 { return PfDrawManager::instance(); }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002