Equalizer
1.6.1
|
The main application object. More...
#include <application.h>
Public Member Functions | |
Application () | |
Construct a new application instance. More... | |
virtual | ~Application () |
Destruct this application instance. More... | |
Data Access | |
co::NodePtr | getMasterNode () |
Operations | |
virtual bool | init (const int argc, char **argv, co::Object *initData) |
Initialize the application instance. More... | |
virtual bool | run (co::Object *frameData) |
Run the application main loop. More... | |
virtual bool | exit () |
Exit this application instance. More... | |
void | stopRunning () |
Request that the application leaves its run loop. More... | |
Callbacks | |
virtual bool | clientInit (co::Object *initData) |
Initialize a render client. More... | |
virtual bool | clientExit () |
Exit a render client. More... | |
virtual Renderer * | createRenderer ()=0 |
Create a new renderer instance. More... | |
virtual void | destroyRenderer (Renderer *renderer) |
Delete the given renderer. More... | |
virtual ViewData * | createViewData () |
Create a new per-view data instance. More... | |
virtual void | destroyViewData (ViewData *viewData) |
Delete the given view data. More... | |
Internal | |
eq::Config * | getConfig () |
detail::Application * | getImpl () |
Public Member Functions inherited from eq::Client | |
Client () | |
Construct a new client. More... | |
virtual | ~Client () |
Destruct the client. More... | |
bool | connectServer (ServerPtr server) |
Open and connect an Equalizer server to the local client. More... | |
bool | disconnectServer (ServerPtr server) |
Disconnect and close the connection to an Equalizer server. More... | |
virtual bool | initLocal (const int argc, char **argv) |
Initialize a local, listening node. More... | |
virtual bool | exitLocal () |
De-initialize a local, listening node. More... | |
bool | hasCommands () |
virtual co::CommandQueue * | getMainThreadQueue () |
const Strings & | getActiveLayouts () |
const std::string & | getGPUFilter () const |
float | getModelUnit () const |
Public Member Functions inherited from eq::fabric::Client | |
bool | connectServer (co::NodePtr server) |
Open and connect an Equalizer server to the local client. More... | |
bool | disconnectServer (co::NodePtr server) |
Disconnect and close the connection to an Equalizer server. More... | |
void | processCommand (const uint32_t timeout=LB_TIMEOUT_INDEFINITE) |
Get and process one pending command from the node command queue. More... | |
virtual bool | dispatchCommand (co::ICommand &command) |
Additional Inherited Members | |
Protected Member Functions inherited from eq::Client | |
virtual void | clientLoop () |
Implements the processing loop for render clients. More... | |
virtual void | exitClient () |
Exit the process cleanly on render clients. More... | |
Protected Member Functions inherited from eq::fabric::Client | |
Client () | |
Construct a new client. | |
The main application object.
Definition at line 28 of file include/seq/application.h.
seq::Application::Application | ( | ) |
Construct a new application instance.
|
virtual |
Destruct this application instance.
Reimplemented in seqPly::Application, and eqHello::Application.
|
inlinevirtual |
|
inlinevirtual |
Initialize a render client.
Also called on the master application node if it contributes to the rendering.
initData | A slave instance of the object passed to init(). |
Definition at line 101 of file include/seq/application.h.
|
pure virtual |
Create a new renderer instance.
Called once per rendering thread, potentially in parallel, during initialization.
Implemented in seqPly::Application, and eqHello::Application.
|
virtual |
Create a new per-view data instance.
Called once for each view in the current configuration. Creates the view data objects used by the application to set parameters for the renderers.
|
virtual |
Delete the given renderer.
|
virtual |
Delete the given view data.
|
virtual |
Exit this application instance.
Reimplemented in seqPly::Application.
Referenced by seqPly::Application::exit().
co::NodePtr seq::Application::getMasterNode | ( | ) |
|
virtual |
Initialize the application instance.
The initData object is registered and is passed to all initialization callbacks on all processes. The object may be 0, if the application does not want to use an object during initialization.
argc | the command line argument count. |
argv | the command line arguments. |
initData | a distributable object for initialization data. |
|
virtual |
Run the application main loop.
The frameData object is registered and is passed to all rendering callbacks on all processes. It is automatically committed at the beginning of each frame. The instance passed to the render callbacks is automatically synchronized to the version belonging to the frame rendered. The object may be 0, if the application does not want to use a per-frame object.
frameData | a distributed object holding frame-specific data. |
void seq::Application::stopRunning | ( | ) |
Request that the application leaves its run loop.