Equalizer
1.4.1
|
A View is a 2D area of a Layout. More...
#include <view.h>
Public Member Functions | |
View (Layout *parent) | |
Construct a new view. | |
virtual | ~View () |
Destruct this view. | |
Data Access. | |
Pipe * | getPipe () |
const Pipe * | getPipe () const |
Config * | getConfig () |
const Config * | getConfig () const |
ServerPtr | getServer () |
Operations | |
virtual bool | handleEvent (const Event &event) |
Handle a received (view) event. | |
void | freezeLoadBalancing (const bool onOff) |
Protected Member Functions | |
virtual void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
Worker for unpack() and applyInstanceData(). | |
const Frustum & | getBaseFrustum () const |
virtual void | detach () |
Friends | |
class | Pipe |
A View is a 2D area of a Layout.
It is a view of the application's data on a model, in the sense used by the MVC pattern. It can be a scene, viewing mode, viewing position, or any other representation of the application's data.
Definition at line 40 of file include/eq/client/view.h.
eq::View::View | ( | Layout * | parent | ) |
virtual eq::View::~View | ( | ) | [virtual] |
Destruct this view.
Reimplemented from eq::fabric::View< Layout, View, Observer >.
Reimplemented in eqPly::View.
virtual void eq::View::deserialize | ( | co::DataIStream & | , |
const uint64_t | |||
) | [protected, virtual] |
Worker for unpack() and applyInstanceData().
This function is called with the dirty bits send by the master instance. The dirty bits are received beforehand, and do not need to be deserialized by the overriding method.
Reimplemented from eq::fabric::View< Layout, View, Observer >.
void eq::View::freezeLoadBalancing | ( | const bool | onOff | ) |
const Frustum& eq::View::getBaseFrustum | ( | ) | const [inline, protected] |
Definition at line 98 of file include/eq/client/view.h.
const Config* eq::View::getConfig | ( | ) | const |
Pipe* eq::View::getPipe | ( | ) | [inline] |
Definition at line 55 of file include/eq/client/view.h.
const Pipe* eq::View::getPipe | ( | ) | const [inline] |
Definition at line 61 of file include/eq/client/view.h.
virtual bool eq::View::handleEvent | ( | const Event & | event | ) | [virtual] |
Handle a received (view) event.
The task of this method is to update the view as necessary. It is called by Config::handleEvent on the application main thread for all view events.
event | the received view event. |