Equalizer 1.0
|
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. | |
Config * | getConfig () |
const Config * | getConfig () const |
ServerPtr | getServer () |
Operations | |
virtual bool | handleEvent (const Event &event) |
Handle a received (view) event. | |
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 42 of file include/eq/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 >.
const Frustum& eq::View::getBaseFrustum | ( | ) | const [inline, protected] |
Definition at line 85 of file include/eq/view.h.
const Config* eq::View::getConfig | ( | ) | const |
Config* eq::View::getConfig | ( | ) |
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. |