#include <view.h>


Public Member Functions | |
Data Access. | |
| const Viewport & | getViewport () const |
| Config * | getConfig () |
| const Config * | getConfig () const |
| Layout * | getLayout () |
| const Layout * | getLayout () const |
| Observer * | getObserver () |
| const Observer * | getObserver () const |
| void | setOverdraw (const Vector2i &pixels) |
| const Vector2i & | getOverdraw () const |
Operations | |
| VisitorResult | accept (ViewVisitor &visitor) |
| Traverse this view using a view visitor. | |
| virtual bool | handleEvent (const Event &event) |
| Handle a received (view) event. | |
Protected Types | |
| enum | DirtyBits { DIRTY_VIEWPORT = Frustum::DIRTY_CUSTOM << 0, DIRTY_OBSERVER = Frustum::DIRTY_CUSTOM << 1, DIRTY_OVERDRAW = Frustum::DIRTY_CUSTOM << 2, DIRTY_FILL1 = Frustum::DIRTY_CUSTOM << 3, DIRTY_FILL2 = Frustum::DIRTY_CUSTOM << 4, DIRTY_CUSTOM = Frustum::DIRTY_CUSTOM << 5 } |
| The changed parts of the frustum since the last pack(). More... | |
Protected Member Functions | |
| virtual void | serialize (net::DataOStream &os, const uint64_t dirtyBits) |
| virtual void | deserialize (net::DataIStream &is, const uint64_t dirtyBits) |
| const Frustum & | getBaseFrustum () const |
| virtual ChangeType | getChangeType () const |
Friends | |
| class | Layout |
| class | Pipe |
| class | server::View |
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 45 of file lib/client/view.h.
enum eq::View::DirtyBits [protected] |
The changed parts of the frustum since the last pack().
Reimplemented from eq::Frustum.
Definition at line 109 of file lib/client/view.h.
| const Viewport & eq::View::getViewport | ( | ) | const |
Definition at line 121 of file lib/client/view.cpp.
Referenced by eq::server::Config::addCanvas(), and eq::server::Compound::updateFrustum().

| Config * eq::View::getConfig | ( | ) |
Reimplemented in eq::server::View.
Definition at line 83 of file lib/client/view.cpp.
References eq::Pipe::getConfig(), and eq::Layout::getConfig().
Referenced by deserialize().


| const Config * eq::View::getConfig | ( | ) | const |
Reimplemented in eq::server::View.
Definition at line 102 of file lib/client/view.cpp.
References eq::Pipe::getConfig(), and eq::Layout::getConfig().

| Layout* eq::View::getLayout | ( | ) | [inline] |
Reimplemented in eq::server::View.
Definition at line 63 of file lib/client/view.h.
Referenced by eqPly::Config::handleEvent().

| const Layout* eq::View::getLayout | ( | ) | const [inline] |
Reimplemented in eq::server::View.
Definition at line 66 of file lib/client/view.h.
| Observer* eq::View::getObserver | ( | ) | [inline] |
Definition at line 69 of file lib/client/view.h.
| void eq::View::setOverdraw | ( | const Vector2i & | pixels | ) |
Definition at line 126 of file lib/client/view.cpp.
References eq::Object::setDirty().

| VisitorResult eq::View::accept | ( | ViewVisitor & | visitor | ) |
Traverse this view using a view visitor.
| visitor | the visitor. |
Definition at line 132 of file lib/client/view.cpp.
References eq::ViewVisitor::visit().
Referenced by eq::Layout::accept().


| 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. |
Definition at line 137 of file lib/client/view.cpp.
References eq::ResizeEvent::dh, eq::ResizeEvent::dw, eq::Frustum::getCurrentType(), eq::Frustum::getProjection(), eq::Frustum::getWall(), eq::Frustum::setProjection(), eq::Frustum::setWall(), eq::Event::type, eq::Frustum::TYPE_NONE, eq::Frustum::TYPE_PROJECTION, eq::Frustum::TYPE_WALL, and eq::Event::VIEW_RESIZE.
Referenced by eq::Config::handleEvent().


| void eq::View::serialize | ( | net::DataOStream & | os, | |
| const uint64_t | dirtyBits | |||
| ) | [protected, virtual] |
Reimplemented from eq::Frustum.
Definition at line 46 of file lib/client/view.cpp.
References eq::net::Object::getID().

| void eq::View::deserialize | ( | net::DataIStream & | is, | |
| const uint64_t | dirtyBits | |||
| ) | [protected, virtual] |
Reimplemented from eq::Frustum.
Reimplemented in eq::server::View.
Definition at line 57 of file lib/client/view.cpp.
References eq::Config::findObserver(), and getConfig().

| const Frustum& eq::View::getBaseFrustum | ( | ) | const [inline, protected] |
| virtual ChangeType eq::View::getChangeType | ( | ) | const [inline, protected, virtual] |
Reimplemented from eq::Object.
Definition at line 122 of file lib/client/view.h.
References eq::net::Object::DELTA.
0.9 by
1.5.8