Equalizer
1.8.0
Parallel Rendering Framework
|
The configuration, run be the EqPly application. More...
#include <config.h>
Public Member Functions | |
Config (eq::ServerPtr parent) | |
virtual bool | init () |
virtual bool | exit () |
virtual uint32_t | startFrame () |
void | setInitData (const LocalInitData &data) |
const InitData & | getInitData () const |
bool | loadInitData (const eq::uint128_t &initDataID) |
Map per-config data to the local node process. | |
const Model * | getModel (const eq::uint128_t &id) |
virtual bool | handleEvent (const eq::ConfigEvent *event) |
virtual bool | handleEvent (eq::EventICommand command) |
Handle one config event. More... | |
bool | isIdleAA () |
bool | needRedraw () |
uint32_t | getAnimationFrame () |
Public Member Functions inherited from eq::Config | |
EQ_API | Config (ServerPtr parent) |
Construct a new config. More... | |
void | setupMessagePump (Pipe *pipe) |
void | setupServerConnections (const std::string &connectionData) |
EQ_API ClientPtr | getClient () |
EQ_API ConstClientPtr | getClient () const |
EQ_API co::NodePtr | getApplicationNode () |
EQ_API co::CommandQueue * | getMainThreadQueue () |
EQ_API co::CommandQueue * | getCommandThreadQueue () |
EQ_API uint32_t | getCurrentFrame () const |
EQ_API uint32_t | getFinishedFrame () const |
EQ_API GLStats::Data | getStatistics () const |
EQ_API bool | isRunning () const |
EQ_API void | stopRunning () |
Stop the config. More... | |
EQ_API int64_t | getTime () const |
Get the current time in milliseconds. More... | |
MessagePump * | getMessagePump () |
const Channel * | findChannel (const std::string &name) const |
virtual EQ_API bool | init (const uint128_t &initID) |
Initialize this configuration. More... | |
EQ_API bool | update () |
Update the configuration. More... | |
virtual EQ_API void | setLatency (const uint32_t latency) |
virtual EQ_API bool | registerObject (co::Object *object) |
Register a distributed object. More... | |
virtual EQ_API void | deregisterObject (co::Object *object) |
Deregister a distributed object. More... | |
virtual EQ_API bool | mapObject (co::Object *object, const uint128_t &id, const uint128_t &version=co::VERSION_OLDEST) |
Map a distributed object. More... | |
virtual EQ_API uint32_t | mapObjectNB (co::Object *object, const uint128_t &id, const uint128_t &version=co::VERSION_OLDEST) |
Start mapping a distributed object. More... | |
virtual EQ_API uint32_t | mapObjectNB (co::Object *object, const uint128_t &id, const uint128_t &version, co::NodePtr master) |
Start mapping a distributed object from a known master. More... | |
virtual EQ_API bool | mapObjectSync (const uint32_t requestID) |
Finalize the mapping of a distributed object. More... | |
virtual EQ_API void | unmapObject (co::Object *object) |
Unmap a mapped object. More... | |
EQ_API f_bool_t | syncObject (co::Object *object, co::NodePtr master, const uint128_t &id, const uint32_t instanceID=CO_INSTANCE_ALL) override |
Synchronize the local object with a remote object. More... | |
virtual EQ_API uint32_t | startFrame (const uint128_t &frameID) |
Request a new frame of rendering. More... | |
virtual EQ_API uint32_t | finishFrame () |
Finish the rendering of a frame. More... | |
virtual EQ_API uint32_t | finishAllFrames () |
Finish rendering all pending frames. More... | |
EQ_API void | releaseFrameLocal (const uint32_t frameNumber) |
Release the local synchronization of the config for a frame. More... | |
EQ_API void | stopFrames () |
Asynchronously signal all channels to interrupt their rendering. More... | |
EQ_API const ConfigEvent * | nextEvent () |
Get the next event. More... | |
EQ_API const ConfigEvent * | tryNextEvent () |
Try to get the next event. More... | |
EQ_API void | sendEvent (ConfigEvent &event) |
Send an (old) event to the application node. More... | |
EQ_API EventOCommand | sendEvent (const uint32_t type) |
Send an event to the application node. More... | |
EQ_API EventOCommand | sendError (const uint32_t type, const Error &error) |
Send an error event to the application node. More... | |
EQ_API Errors | getErrors () |
EQ_API EventICommand | getNextEvent (const uint32_t timeout=LB_TIMEOUT_INDEFINITE) const |
Get the next event. More... | |
EQ_API bool | checkEvent () const |
virtual EQ_API void | handleEvents () |
Handle all config events. More... | |
void | addStatistic (const uint32_t originator, const Statistic &stat) |
Add an statistic event to the statistics overlay. More... | |
Public Member Functions inherited from eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor > | |
virtual void | output (std::ostream &) const |
void | create (Observer **observer) |
void | create (Layout **layout) |
void | create (Canvas **canvas) |
void | create (Node **node) |
void | release (Observer *observer) |
void | release (Layout *layout) |
void | release (Canvas *canvas) |
void | release (Node *node) |
EQFABRIC_INL lunchbox::RefPtr < Server > | getServer () |
EQFABRIC_INL lunchbox::RefPtr < const Server > | getServer () const |
const Observers & | getObservers () const |
const Layouts & | getLayouts () const |
const Canvases & | getCanvases () const |
EQFABRIC_INL uint32_t | getTimeout () const |
const Nodes & | getNodes () const |
EQFABRIC_INL Node * | findAppNode () |
EQFABRIC_INL const Node * | findAppNode () const |
EQFABRIC_INL VisitorResult | accept (ConfigVisitor &visitor) |
Perform a depth-first traversal of this config. More... | |
EQFABRIC_INL VisitorResult | accept (ConfigVisitor &visitor) const |
Const-version of accept(). More... | |
EQFABRIC_INL T * | find (const uint128_t &id) |
EQFABRIC_INL const T * | find (const uint128_t &id) const |
EQFABRIC_INL T * | find (const std::string &name) |
EQFABRIC_INL const T * | find (const std::string &name) const |
void | find (const uint128_t &id, T **result) |
void | find (const std::string &name, const T **result) const |
Observer * | getObserver (const ObserverPath &path) |
Layout * | getLayout (const LayoutPath &path) |
Canvas * | getCanvas (const CanvasPath &path) |
virtual void | updateCanvas (Canvas *) |
virtual void | exitCanvas (Canvas *) |
uint32_t | getLatency () const |
virtual EQFABRIC_INL void | restore () |
void | setFAttribute (const FAttribute attr, const float value) |
void | setIAttribute (const IAttribute attr, const int32_t value) |
float | getFAttribute (const FAttribute attr) const |
int32_t | getIAttribute (const IAttribute attr) const |
Public Member Functions inherited from eq::fabric::Object | |
virtual EQFABRIC_API bool | isDirty () const |
virtual EQFABRIC_API void | backup () |
virtual EQFABRIC_API void | setName (const std::string &name) |
Set the name of the object. More... | |
EQFABRIC_API const std::string & | getName () const |
EQFABRIC_API void | setUserData (co::Object *userData) |
Set user-specific data. More... | |
EQFABRIC_API co::Object * | getUserData () |
EQFABRIC_API const co::Object * | getUserData () const |
EQFABRIC_API uint32_t | getTasks () const |
Return the set of tasks this channel might execute in the worst case. More... | |
EQFABRIC_API uint32_t | getSerial () const |
Protected Member Functions | |
virtual | ~Config () |
Destruct a config. More... | |
virtual co::uint128_t | sync (const co::uint128_t &version=co::VERSION_HEAD) |
Synchronize config and admin copy. More... | |
Protected Member Functions inherited from eq::Config | |
virtual EQ_API void | attach (const uint128_t &id, const uint32_t instanceID) |
virtual EQ_API void | notifyAttached () |
virtual EQ_API void | notifyDetach () |
virtual EQ_API void | changeLatency (const uint32_t latency) |
virtual EQ_API bool | mapViewObjects () const |
Protected Member Functions inherited from eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor > | |
EQFABRIC_INL | Config (lunchbox::RefPtr< Server > parent) |
virtual EQFABRIC_INL void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
virtual EQFABRIC_INL void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
virtual void | _removeChild (const uint128_t &) |
void | setAppNodeID (const co::NodeID &nodeID) |
const co::NodeID & | getAppNodeID () const |
EQFABRIC_INL EventOCommand | sendError (co::NodePtr node, const uint32_t event, const Error &error) |
virtual bool | mapNodeObjects () const |
virtual VisitorResult | _acceptCompounds (ConfigVisitor &) |
virtual VisitorResult | _acceptCompounds (ConfigVisitor &) const |
Node * | _findNode (const uint128_t &id) |
virtual EQFABRIC_INL uint128_t | commit (const uint32_t incarnation=CO_COMMIT_NEXT) |
Protected Member Functions inherited from eq::fabric::Object | |
EQFABRIC_API | Object () |
Construct a new Object. More... | |
EQFABRIC_API | Object (const Object &) |
Construct an unmapped, unregistered copy of an object. More... | |
virtual EQFABRIC_API | ~Object () |
Destruct the object. More... | |
EQFABRIC_API Object & | operator= (const Object &from) |
NOP assignment operator. More... | |
virtual bool | hasMasterUserData () |
virtual uint32_t | getUserDataLatency () const |
EQFABRIC_API void | setTasks (const uint32_t tasks) |
EQFABRIC_API void | postRemove (Object *child) |
virtual void | removeChild (const uint128_t &) |
template<class C , class S > | |
void | commitChild (C *child, S *sender, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChild (C *child, const uint32_t incarnation) |
template<class C , class S > | |
void | commitChildren (const std::vector< C * > &children, S *sender, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChildren (const std::vector< C * > &children, uint32_t cmd, const uint32_t incarnation) |
template<class C > | |
void | commitChildren (const std::vector< C * > &children, const uint32_t incarnation) |
template<class C > | |
void | syncChildren (const std::vector< C * > &children) |
template<class P , class C > | |
void | releaseChildren (const std::vector< C * > &children) |
EQFABRIC_API bool | _cmdSync (co::ICommand &command) |
Additional Inherited Members | |
Public Types inherited from eq::Config | |
typedef fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor > | Super |
base class | |
Public Types inherited from eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor > | |
typedef std::vector< Observer * > | Observers |
A vector of observers. | |
typedef std::vector< Layout * > | Layouts |
A vector of layouts. | |
typedef std::vector< Canvas * > | Canvases |
A vector of canvases. | |
typedef std::vector< Node * > | Nodes |
A vector of nodes. | |
enum | FAttribute |
Floating-point attributes. | |
enum | IAttribute |
Integer attributes. More... | |
Public Types inherited from eq::fabric::Object | |
enum | DirtyBits { DIRTY_NAME = Serializable::DIRTY_CUSTOM << 0, DIRTY_USERDATA = Serializable::DIRTY_CUSTOM << 1, DIRTY_TASKS = Serializable::DIRTY_CUSTOM << 2, DIRTY_REMOVED = Serializable::DIRTY_CUSTOM << 3, DIRTY_SERIAL = Serializable::DIRTY_CUSTOM << 4, DIRTY_CUSTOM = Serializable::DIRTY_CUSTOM << 6, DIRTY_OBJECT_BITS = DIRTY_NAME | DIRTY_USERDATA } |
The changed parts of the object since the last pack(). More... | |
Static Public Member Functions inherited from eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor > | |
static const std::string & | getFAttributeString (const FAttribute attr) |
static const std::string & | getIAttributeString (const IAttribute attr) |
The configuration, run be the EqPly application.
A configuration instance manages configuration-specific data; it distributes the initialization and model data, updates frame-specific data and manages frame generation based on event handling.
Definition at line 51 of file share/Equalizer/examples/eqPly/config.h.
|
protectedvirtual |
Destruct a config.
Reimplemented from eq::Config.
Definition at line 55 of file eqPly/config.cpp.
|
virtual |
Reimplemented from eq::Config.
Definition at line 105 of file eqPly/config.cpp.
References eq::Config::exit().
Referenced by eqPly::EqPly::run().
uint32_t eqPly::Config::getAnimationFrame | ( | ) |
Definition at line 314 of file eqPly/config.cpp.
Referenced by eqPly::EqPly::run().
const Model * eqPly::Config::getModel | ( | const eq::uint128_t & | id | ) |
Definition at line 232 of file eqPly/config.cpp.
References eq::Config::getApplicationNode(), eq::Config::getClient(), eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor >::getNodes(), and eq::fabric::Node< C, N, P, V >::getPipes().
|
virtual |
Reimplemented from eq::Config.
Definition at line 334 of file eqPly/config.cpp.
References eq::ConfigEvent::data, eq::fabric::Canvas< CFG, C, S, L >::getActiveLayout(), eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor >::getCanvases(), eq::fabric::View< class, class, class >::getLayout(), and eq::Config::handleEvent().
Referenced by eqPly::EqPly::run().
|
virtual |
Handle one config event.
Thread safe.
command | the event command. |
Reimplemented from eq::Config.
Definition at line 481 of file eqPly/config.cpp.
References eq::EventICommand::getEventType(), and eq::Config::handleEvent().
|
virtual |
Definition at line 69 of file eqPly/config.cpp.
References eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor >::getCanvases(), eq::fabric::Config< Server, Config, Observer, Layout, Canvas, Node, ConfigVisitor >::getLatency(), eq::Config::init(), and eq::Config::registerObject().
Referenced by eqPly::EqPly::run().
bool eqPly::Config::isIdleAA | ( | ) |
Definition at line 304 of file eqPly/config.cpp.
bool eqPly::Config::needRedraw | ( | ) |
Definition at line 309 of file eqPly/config.cpp.
Referenced by eqPly::EqPly::run().
|
virtual |
Definition at line 261 of file eqPly/config.cpp.
References eq::Config::startFrame().
Referenced by eqPly::EqPly::run().
|
protectedvirtual |
Synchronize config and admin copy.
Definition at line 784 of file eqPly/config.cpp.