Equalizer
1.2.1
|
Base data transport class for views. More...
#include <view.h>
Classes | |
struct | BackupData |
Public Member Functions | |
void | setCapabilities (const uint64_t bitmask) |
virtual void | updateCapabilities () |
Data Access. | |
EQFABRIC_INL const Viewport & | getViewport () const |
L * | getLayout () |
const L * | getLayout () const |
EQFABRIC_INL void | setObserver (O *observer) |
Set the entity tracking this view. | |
O * | getObserver () |
const O * | getObserver () const |
const version of getObserver(). | |
virtual EQFABRIC_INL void | setWall (const Wall &wall) |
virtual EQFABRIC_INL void | setProjection (const Projection &) |
virtual EQFABRIC_INL void | unsetFrustum () |
EQFABRIC_INL void | setOverdraw (const Vector2i &pixels) |
const Vector2i & | getOverdraw () const |
EQFABRIC_INL void | useEqualizer (uint32_t equalizerMask) |
uint32_t | getEqualizers () const |
EQFABRIC_INL void | setTileSize (const Vector2i &size) |
const Vector2i & | getTileSize () const |
EQFABRIC_INL void | setViewport (const Viewport &viewport) |
Mode | getMode () const |
virtual EQFABRIC_INL void | changeMode (const Mode mode) |
Set the mode of this view. | |
virtual void | activateMode (const Mode mode) |
EQFABRIC_INL bool | isActive () const |
Operations | |
EQFABRIC_INL VisitorResult | accept (LeafVisitor< V > &visitor) |
Traverse this view using a view visitor. | |
EQFABRIC_INL VisitorResult | accept (LeafVisitor< V > &visitor) const |
Const-version of accept(). | |
virtual EQFABRIC_INL void | backup () |
virtual EQFABRIC_INL void | restore () |
EQFABRIC_INL void | setMinimumCapabilities (const uint64_t bitmask) |
Set the minimum required capabilities for this view. | |
EQFABRIC_INL uint64_t | getMinimumCapabilities () const |
EQFABRIC_INL void | setMaximumCapabilities (const uint64_t bitmask) |
Set the maximum desired capabilities for this view. | |
EQFABRIC_INL uint64_t | getMaximumCapabilities () const |
EQFABRIC_INL uint64_t | getCapabilities () const |
Public Types | |
enum | Mode { MODE_MONO = 1, MODE_STEREO } |
The current rendering mode. More... | |
enum | DirtyBits { DIRTY_VIEWPORT = Object::DIRTY_CUSTOM << 0, DIRTY_OBSERVER = Object::DIRTY_CUSTOM << 1, DIRTY_OVERDRAW = Object::DIRTY_CUSTOM << 2, DIRTY_FRUSTUM = Object::DIRTY_CUSTOM << 3, DIRTY_MODE = Object::DIRTY_CUSTOM << 4, DIRTY_MINCAPS = Object::DIRTY_CUSTOM << 5, DIRTY_MAXCAPS = Object::DIRTY_CUSTOM << 6, DIRTY_CAPABILITIES = Object::DIRTY_CUSTOM << 7, DIRTY_TILESIZE = Object::DIRTY_CUSTOM << 8, DIRTY_EQUALIZERS = Object::DIRTY_CUSTOM << 9, DIRTY_VIEW_BITS } |
The changed parts of the object since the last pack(). More... | |
Protected Member Functions | |
EQFABRIC_INL | View (L *layout) |
virtual bool | hasMasterUserData () |
The application view instance holds the user data master by default. | |
virtual EQFABRIC_INL uint32_t | getUserDataLatency () const |
The view user data instance uses the config latency by default. | |
virtual EQFABRIC_INL void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
Worker for pack() and getInstanceData(). | |
virtual EQFABRIC_INL void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
Worker for unpack() and applyInstanceData(). | |
virtual EQFABRIC_INL void | setDirty (const uint64_t bits) |
Add dirty flags to mark data for distribution. | |
virtual uint64_t | getRedistributableBits () const |
Base data transport class for views.
Definition at line 35 of file include/eq/fabric/view.h.
enum eq::fabric::View::DirtyBits |
The changed parts of the object since the last pack().
Subclasses should define their own bits, starting at DIRTY_CUSTOM.
Reimplemented from eq::fabric::Object.
Definition at line 195 of file include/eq/fabric/view.h.
enum eq::fabric::View::Mode |
The current rendering mode.
Definition at line 39 of file include/eq/fabric/view.h.
EQFABRIC_INL VisitorResult eq::fabric::View< L, V, O >::accept | ( | LeafVisitor< V > & | visitor | ) |
Traverse this view using a view visitor.
visitor | the visitor. |
EQFABRIC_INL VisitorResult eq::fabric::View< L, V, O >::accept | ( | LeafVisitor< V > & | visitor | ) | const |
Const-version of accept().
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::changeMode | ( | const Mode | mode | ) | [virtual] |
Set the mode of this view.
mode | the new rendering mode |
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::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::Object.
Reimplemented in eq::View.
EQFABRIC_INL uint64_t eq::fabric::View< L, V, O >::getCapabilities | ( | ) | const |
uint32_t eq::fabric::View< L, V, O >::getEqualizers | ( | ) | const [inline] |
Definition at line 93 of file include/eq/fabric/view.h.
L* eq::fabric::View< L, V, O >::getLayout | ( | ) | [inline] |
Definition at line 54 of file include/eq/fabric/view.h.
Referenced by eVolve::Config::handleEvent(), eqPly::Config::handleEvent(), and eq::fabric::View< Layout, View, Observer >::hasMasterUserData().
const L* eq::fabric::View< L, V, O >::getLayout | ( | ) | const [inline] |
Definition at line 60 of file include/eq/fabric/view.h.
EQFABRIC_INL uint64_t eq::fabric::View< L, V, O >::getMaximumCapabilities | ( | ) | const |
EQFABRIC_INL uint64_t eq::fabric::View< L, V, O >::getMinimumCapabilities | ( | ) | const |
Mode eq::fabric::View< L, V, O >::getMode | ( | ) | const [inline] |
Definition at line 105 of file include/eq/fabric/view.h.
O* eq::fabric::View< L, V, O >::getObserver | ( | ) | [inline] |
Definition at line 69 of file include/eq/fabric/view.h.
const O* eq::fabric::View< L, V, O >::getObserver | ( | ) | const [inline] |
const Vector2i& eq::fabric::View< L, V, O >::getOverdraw | ( | ) | const [inline] |
Definition at line 87 of file include/eq/fabric/view.h.
const Vector2i& eq::fabric::View< L, V, O >::getTileSize | ( | ) | const [inline] |
Definition at line 99 of file include/eq/fabric/view.h.
virtual EQFABRIC_INL uint32_t eq::fabric::View< L, V, O >::getUserDataLatency | ( | ) | const [protected, virtual] |
The view user data instance uses the config latency by default.
Reimplemented from eq::fabric::Object.
EQFABRIC_INL const Viewport& eq::fabric::View< L, V, O >::getViewport | ( | ) | const |
virtual bool eq::fabric::View< L, V, O >::hasMasterUserData | ( | ) | [inline, protected, virtual] |
The application view instance holds the user data master by default.
Reimplemented from eq::fabric::Object.
Definition at line 226 of file include/eq/fabric/view.h.
EQFABRIC_INL bool eq::fabric::View< L, V, O >::isActive | ( | ) | const |
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::serialize | ( | co::DataOStream & | , |
const uint64_t | |||
) | [protected, virtual] |
Worker for pack() and getInstanceData().
Override this and deserialize() if you want to distribute subclassed data.
This method is called with DIRTY_ALL from getInstanceData() and with the actual dirty bits from pack(), which also resets the dirty state afterwards. The dirty bits are transmitted beforehand, and do not need to be transmitted by the overriding method.
Reimplemented from eq::fabric::Object.
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::setDirty | ( | const uint64_t | bits | ) | [protected, virtual] |
EQFABRIC_INL void eq::fabric::View< L, V, O >::setMaximumCapabilities | ( | const uint64_t | bitmask | ) |
Set the maximum desired capabilities for this view.
The capabilities returned by getCapabilities() during rendering match the lowest common denominator of all channel capabilities and this bitmask. Logically it has to be a superset of the minimum capabilities. By default all bits are set.
The capabilities are used to selectively disable source channels in conjunction with a load equalizer. Each channel typically sets its capabilities during configInit. The application sets the minimum and maximum capabilities needed or desired to render this view. The channel queries the capabilities to be used using getCapabilities().
bitmask | the capabilities as bitmask |
EQFABRIC_INL void eq::fabric::View< L, V, O >::setMinimumCapabilities | ( | const uint64_t | bitmask | ) |
Set the minimum required capabilities for this view.
Any channel which does not support all of the bits in this mask does not execute any tasks. By default no bit is set.
bitmask | the capabilities as bitmask |
EQFABRIC_INL void eq::fabric::View< L, V, O >::setObserver | ( | O * | observer | ) |
Set the entity tracking this view.
EQFABRIC_INL void eq::fabric::View< L, V, O >::setOverdraw | ( | const Vector2i & | pixels | ) |
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::setProjection | ( | const Projection & | ) | [virtual] |
EQFABRIC_INL void eq::fabric::View< L, V, O >::setTileSize | ( | const Vector2i & | size | ) |
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::setWall | ( | const Wall & | wall | ) | [virtual] |
virtual EQFABRIC_INL void eq::fabric::View< L, V, O >::unsetFrustum | ( | ) | [virtual] |
EQFABRIC_INL void eq::fabric::View< L, V, O >::useEqualizer | ( | uint32_t | equalizerMask | ) |