#include <canvas.h>


Public Member Functions | |
| Canvas () | |
| Constructs a new Canvas. | |
| Canvas (const Canvas &from, Config *config) | |
| Creates a new, deep copy of a canvas. | |
| virtual | ~Canvas () |
| Destruct this canvas. | |
Data Access | |
| Config * | getConfig () |
| const Config * | getConfig () const |
| void | addSegment (Segment *segment) |
| Add a new segment to this canvas. | |
| const SegmentVector & | getSegments () const |
| Segment * | findSegment (const std::string &name) |
| Find the first segment of a given name. | |
| Segment * | getSegment (const SegmentPath &path) |
| void | addLayout (Layout *layout) |
| Add a new allowed layout to this canvas, can be 0. | |
| const LayoutVector & | getLayouts () const |
| Get the vector of allowed layouts for this canvas. | |
| CanvasPath | getPath () const |
Operations | |
| void | init () |
| void | exit () |
| VisitorResult | accept (CanvasVisitor &visitor) |
| Traverse this canvas and all children using a canvas visitor. | |
| VisitorResult | accept (ConstCanvasVisitor &visitor) const |
| void | unmap () |
| Unmap this canvas and all its children. | |
Protected Member Functions | |
| virtual void | serialize (net::DataOStream &os, const uint64_t dirtyBits) |
| virtual void | deserialize (net::DataIStream &is, const uint64_t dirtyBits) |
Friends | |
| class | Config |
Definition at line 41 of file server/canvas.h.
Creates a new, deep copy of a canvas.
Definition at line 48 of file server/canvas.cpp.
References _layouts, _segments, eq::server::Config::addCanvas(), addLayout(), addSegment(), eq::server::Config::getLayout(), and eq::server::Layout::getPath().

| eq::server::Canvas::~Canvas | ( | ) | [virtual] |
Destruct this canvas.
Definition at line 78 of file server/canvas.cpp.
References eq::server::Segment::_canvas, and eq::server::Config::removeCanvas().

| void eq::server::Canvas::addSegment | ( | Segment * | segment | ) |
Add a new segment to this canvas.
Definition at line 179 of file server/canvas.cpp.
References eq::server::Segment::_canvas, eq::Wall::apply(), EQLOG, eq::Frustum::getCurrentType(), eq::Object::getName(), eq::Frustum::getProjection(), eq::server::Segment::getViewport(), eq::Frustum::getWall(), eq::Frustum::setProjection(), eq::Frustum::setWall(), eq::Frustum::TYPE_NONE, eq::Frustum::TYPE_PROJECTION, and eq::Frustum::TYPE_WALL.
Referenced by Canvas().


| const SegmentVector& eq::server::Canvas::getSegments | ( | ) | const [inline] |
Definition at line 66 of file server/canvas.h.
Referenced by eq::server::Config::addCanvas(), and eq::server::Segment::getPath().

| Segment * eq::server::Canvas::findSegment | ( | const std::string & | name | ) |
Find the first segment of a given name.
| name | the name of the segment to find |
0 if no segment with the name exists. Definition at line 220 of file server/canvas.cpp.
References accept().

| Segment * eq::server::Canvas::getSegment | ( | const SegmentPath & | path | ) |
| void eq::server::Canvas::addLayout | ( | Layout * | layout | ) |
Add a new allowed layout to this canvas, can be 0.
Definition at line 227 of file server/canvas.cpp.
Referenced by Canvas().

| const LayoutVector& eq::server::Canvas::getLayouts | ( | ) | const [inline] |
Get the vector of allowed layouts for this canvas.
Definition at line 84 of file server/canvas.h.
Referenced by eq::server::Config::addCanvas().

| CanvasPath eq::server::Canvas::getPath | ( | ) | const |
Definition at line 165 of file server/canvas.cpp.
References eq::server::Config::getCanvases().
Referenced by eq::server::Segment::getPath().


| VisitorResult eq::server::Canvas::accept | ( | CanvasVisitor & | visitor | ) |
Traverse this canvas and all children using a canvas visitor.
| visitor | the visitor. |
Definition at line 431 of file server/canvas.cpp.
Referenced by findSegment().

| void eq::server::Canvas::unmap | ( | ) |
Unmap this canvas and all its children.
Definition at line 441 of file server/canvas.cpp.
References eq::net::Object::getID(), eq::net::Object::getSession(), and eq::net::Session::unmapObject().

| void eq::server::Canvas::serialize | ( | net::DataOStream & | os, | |
| const uint64_t | dirtyBits | |||
| ) | [protected, virtual] |
Reimplemented from eq::Frustum.
Definition at line 108 of file server/canvas.cpp.
References eq::net::Object::getID().

| void eq::server::Canvas::deserialize | ( | net::DataIStream & | is, | |
| const uint64_t | dirtyBits | |||
| ) | [protected, virtual] |
Reimplemented from eq::Frustum.
Definition at line 142 of file server/canvas.cpp.
0.9 by
1.5.8