The segment. More...
#include <segment.h>


Public Member Functions | |
| Segment () | |
| Constructs a new Segment. | |
| Segment (const Segment &from, Config *config) | |
| Creates a new, deep copy of a segment. | |
| virtual | ~Segment () |
| Destruct this segment. | |
Data Access | |
| Config * | getConfig () |
| const Config * | getConfig () const |
| SegmentPath | getPath () const |
| void | setChannel (Channel *channel) |
| Set the channel of this segment. | |
| Channel * | getChannel () |
| Return the output channel of this segment. | |
| const Channel * | getChannel () const |
| Canvas * | getCanvas () |
| Return the parent canvas of this segment. | |
| const Canvas * | getCanvas () const |
| void | setViewport (const eq::Viewport &vp) |
| Set the segment's viewport wrt its canvas. | |
| const eq::Viewport & | getViewport () const |
| void | addDestinationChannel (Channel *channel) |
| Add a destination (View) channel. | |
| bool | removeDestinationChannel (Channel *channel) |
| Remove a destination (View) channel. | |
| const ChannelVector & | getDestinationChannels () const |
| VisitorResult | accept (SegmentVisitor &visitor) |
| Operations. | |
| VisitorResult | accept (SegmentVisitor &visitor) const |
Friends | |
| class | Canvas |
The segment.
Definition at line 37 of file server/segment.h.
Creates a new, deep copy of a segment.
Definition at line 42 of file server/segment.cpp.
References EQINFO, eq::server::View::getPath(), eq::server::Channel::getPath(), and eq::server::Channel::getView().

| eq::server::Segment::~Segment | ( | ) | [virtual] |
Destruct this segment.
Reimplemented from eq::Segment.
Definition at line 78 of file server/segment.cpp.
References EQINFO, and eq::server::Channel::unsetOutput().

| Config * eq::server::Segment::getConfig | ( | ) |
Reimplemented from eq::Segment.
Definition at line 108 of file server/segment.cpp.
| const Config * eq::server::Segment::getConfig | ( | ) | const |
Reimplemented from eq::Segment.
Definition at line 115 of file server/segment.cpp.
| SegmentPath eq::server::Segment::getPath | ( | ) | const |
Definition at line 153 of file server/segment.cpp.
References eq::server::Canvas::getPath(), and eq::server::Canvas::getSegments().

| void eq::server::Segment::setChannel | ( | Channel * | channel | ) | [inline] |
Set the channel of this segment.
The channel defines the output area for this segment, typically a rendering area covering a graphics card output.
| channel | the channel. |
Definition at line 72 of file server/segment.h.
| Channel* eq::server::Segment::getChannel | ( | ) | [inline] |
Return the output channel of this segment.
Definition at line 75 of file server/segment.h.
Referenced by eq::server::Config::addCanvas(), and eq::server::Compound::updateFrustum().

| Canvas* eq::server::Segment::getCanvas | ( | ) | [inline] |
Return the parent canvas of this segment.
Definition at line 79 of file server/segment.h.
| void eq::server::Segment::setViewport | ( | const eq::Viewport & | vp | ) |
Set the segment's viewport wrt its canvas.
The viewport defines which 2D area of the canvas is covered by this segment. Destination channels are created on the intersection of segment viewports and the views of the layout used by the canvas.
| vp | the fractional viewport. |
Definition at line 121 of file server/segment.cpp.
References eq::Object::setDirty().

| const eq::Viewport& eq::server::Segment::getViewport | ( | ) | const [inline] |
Reimplemented from eq::Segment.
Definition at line 94 of file server/segment.h.
Referenced by eq::server::Config::addCanvas(), eq::server::Canvas::addSegment(), and eq::server::Compound::updateFrustum().

| void eq::server::Segment::addDestinationChannel | ( | Channel * | channel | ) |
Add a destination (View) channel.
Definition at line 127 of file server/segment.cpp.
Referenced by eq::server::Channel::setOutput().

| bool eq::server::Segment::removeDestinationChannel | ( | Channel * | channel | ) |
Remove a destination (View) channel.
Definition at line 136 of file server/segment.cpp.
Referenced by eq::server::Channel::unsetOutput().

| const ChannelVector& eq::server::Segment::getDestinationChannels | ( | ) | const [inline] |
Definition at line 104 of file server/segment.h.
| VisitorResult eq::server::Segment::accept | ( | SegmentVisitor & | visitor | ) | [inline] |
Operations.
Traverse this segment using a segment visitor.
| visitor | the visitor. |
Definition at line 116 of file server/segment.h.
References eq::server::SegmentVisitor::visit().

0.9.1 by
1.6.1