Equalizer
1.2.1
|
A canvas represents a logical 2D projection surface. More...
#include <canvas.h>
Classes | |
struct | BackupData |
Public Member Functions | |
Data Access | |
CFG * | getConfig () |
const CFG * | getConfig () const |
CanvasPath | getPath () const |
uint32_t | getActiveLayoutIndex () const |
EQFABRIC_INL const L * | getActiveLayout () const |
const Segments & | getSegments () const |
S * | findSegment (const std::string &name) |
const S * | findSegment (const std::string &name) const |
const Layouts & | getLayouts () const |
EQFABRIC_INL void | addLayout (L *layout) |
EQFABRIC_INL bool | removeLayout (L *layout) |
EQFABRIC_INL void | setSwapBarrier (SwapBarrierPtr barrier) |
SwapBarrierConstPtr | getSwapBarrier () const |
SwapBarrierPtr | getSwapBarrier () |
virtual EQFABRIC_INL void | setWall (const Wall &wall) |
virtual EQFABRIC_INL void | setProjection (const Projection &) |
virtual EQFABRIC_INL void | unsetFrustum () |
Operations | |
virtual EQFABRIC_INL bool | useLayout (const uint32_t index) |
Activate the given layout on this canvas. | |
EQFABRIC_INL VisitorResult | accept (Visitor &visitor) |
Traverse this canvas and all children using a canvas visitor. | |
EQFABRIC_INL VisitorResult | accept (Visitor &visitor) const |
Const-version of accept(). | |
virtual EQFABRIC_INL void | backup () |
virtual EQFABRIC_INL void | restore () |
void | create (S **segment) |
void | release (S *segment) |
Public Types | |
typedef std::vector< C * > | Canvases |
A vector of canvases. | |
typedef std::vector< S * > | Segments |
A vector of segments. | |
typedef std::vector< L * > | Layouts |
A vector of layouts. | |
typedef ElementVisitor< C, LeafVisitor< S > > | Visitor |
A Canvas visitor. | |
Protected Member Functions | |
EQFABRIC_INL | Canvas (CFG *config) |
Construct a new Canvas. | |
virtual EQFABRIC_INL | ~Canvas () |
Destruct this canvas. | |
virtual EQFABRIC_INL void | attach (const co::base::UUID &id, const uint32_t instanceID) |
EQFABRIC_INL void | serialize (co::DataOStream &os, const uint64_t dirtyBits) |
virtual EQFABRIC_INL void | deserialize (co::DataIStream &is, const uint64_t dirtyBits) |
virtual EQFABRIC_INL void | notifyDetach () |
Notify that this object will be deregistered or unmapped. | |
virtual EQFABRIC_INL void | setDirty (const uint64_t bits) |
virtual void | activateLayout (const uint32_t index) |
Friends | |
class | Segment |
class | Object |
A canvas represents a logical 2D projection surface.
Definition at line 35 of file fabric/canvas.h.
EQFABRIC_INL VisitorResult eq::fabric::Canvas< CFG, C, S, L >::accept | ( | Visitor & | visitor | ) |
Traverse this canvas and all children using a canvas visitor.
visitor | the visitor. |
EQFABRIC_INL VisitorResult eq::fabric::Canvas< CFG, C, S, L >::accept | ( | Visitor & | visitor | ) | const |
Const-version of accept().
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::deserialize | ( | co::DataIStream & | is, |
const uint64_t | dirtyBits | ||
) | [protected, virtual] |
Reimplemented from eq::fabric::Object.
EQFABRIC_INL const L* eq::fabric::Canvas< CFG, C, S, L >::getActiveLayout | ( | ) | const |
Referenced by eVolve::Config::handleEvent(), and eqPly::Config::handleEvent().
uint32_t eq::fabric::Canvas< CFG, C, S, L >::getActiveLayoutIndex | ( | ) | const [inline] |
CFG* eq::fabric::Canvas< CFG, C, S, L >::getConfig | ( | ) | [inline] |
const CFG* eq::fabric::Canvas< CFG, C, S, L >::getConfig | ( | ) | const [inline] |
const Layouts& eq::fabric::Canvas< CFG, C, S, L >::getLayouts | ( | ) | const [inline] |
const Segments& eq::fabric::Canvas< CFG, C, S, L >::getSegments | ( | ) | const [inline] |
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::notifyDetach | ( | ) | [protected, virtual] |
Notify that this object will be deregistered or unmapped.
The method is called from the thread initiating the deregistration or unmapping, before the operation is executed.
Reimplemented from eq::fabric::Object.
EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::serialize | ( | co::DataOStream & | os, |
const uint64_t | dirtyBits | ||
) | [protected, virtual] |
Reimplemented from eq::fabric::Object.
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::setDirty | ( | const uint64_t | bits | ) | [protected, virtual] |
Reimplemented from co::Serializable.
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::setProjection | ( | const Projection & | ) | [virtual] |
Reimplemented from eq::fabric::Frustum.
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::setWall | ( | const Wall & | wall | ) | [virtual] |
Reimplemented from eq::fabric::Frustum.
virtual EQFABRIC_INL void eq::fabric::Canvas< CFG, C, S, L >::unsetFrustum | ( | ) | [virtual] |
Reimplemented from eq::fabric::Frustum.
virtual EQFABRIC_INL bool eq::fabric::Canvas< CFG, C, S, L >::useLayout | ( | const uint32_t | index | ) | [virtual] |
Activate the given layout on this canvas.