Equalizer
1.2.1
|
Public Member Functions | |
Channel (eq::Window *parent) | |
Construct a new channel. | |
Protected Member Functions | |
virtual | ~Channel () |
Destruct the channel. | |
virtual bool | configInit (const eq::uint128_t &initID) |
Initialize this channel. | |
virtual void | frameStart (const eq::uint128_t &frameID, const uint32_t frameNumber) |
Start rendering a frame. | |
virtual void | frameDraw (const eq::uint128_t &frameID) |
Draw the scene. | |
virtual void | frameAssemble (const eq::uint128_t &frameID) |
Assemble all input frames. | |
virtual void | frameReadback (const eq::uint128_t &frameID) |
Read back the rendered frame buffer into all output frames. | |
virtual void | frameViewFinish (const eq::uint128_t &frameID) |
Finish updating a destination channel. | |
virtual bool | useOrtho () const |
Select perspective or orthographic rendering. | |
void | clearViewport (const eq::PixelViewport &pvp) |
void | frameClear (const eq::uint128_t &frameID) |
Clear the frame buffer. |
Definition at line 42 of file share/Equalizer/examples/eVolve/channel.h.
eVolve::Channel::Channel | ( | eq::Window * | parent | ) |
Construct a new channel.
Reimplemented from eq::Channel.
Definition at line 42 of file eVolve/channel.cpp.
References eq::Frame::BUFFER_COLOR, eq::FrameData::setBuffers(), and eq::Frame::setData().
virtual eVolve::Channel::~Channel | ( | ) | [inline, protected, virtual] |
Destruct the channel.
Reimplemented from eq::Channel.
Definition at line 48 of file share/Equalizer/examples/eVolve/channel.h.
bool eVolve::Channel::configInit | ( | const eq::uint128_t & | initID | ) | [protected, virtual] |
Initialize this channel.
initID | the init identifier. |
Reimplemented from eq::Channel.
Definition at line 61 of file eVolve/channel.cpp.
References eq::Channel::configInit(), and eq::fabric::Channel< Window, Channel >::setNearFar().
void eVolve::Channel::frameAssemble | ( | const eq::uint128_t & | frameID | ) | [protected, virtual] |
Assemble all input frames.
Called 0 to n times during one frame.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 276 of file eVolve/channel.cpp.
References eq::Compositor::assembleFrame(), eq::Compositor::assembleFramesSorted(), eq::Statistic::CHANNEL_FRAME_WAIT_READY, EQWARN, eq::Frame::getData(), eq::Channel::getDrawableConfig(), eq::Frame::getImages(), eq::Channel::getInputFrames(), eq::Channel::getObjectManager(), eq::Frame::getOffset(), eq::fabric::Channel< Window, Channel >::getPixelViewport(), eq::Frame::getRange(), eq::Frame::getZoom(), eq::Frame::readback(), eq::Channel::resetAssemblyState(), eq::Frame::setOffset(), eq::FrameData::setPixelViewport(), eq::FrameData::setRange(), eq::Frame::setZoom(), and eq::Frame::waitReady().
void eVolve::Channel::frameClear | ( | const eq::uint128_t & | frameID | ) | [protected, virtual] |
Clear the frame buffer.
Called 0 to n times during one frame.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 87 of file eVolve/channel.cpp.
References eq::Channel::applyBuffer(), eq::Channel::applyViewport(), and eq::fabric::Channel< Window, Channel >::getRange().
void eVolve::Channel::frameDraw | ( | const eq::uint128_t & | frameID | ) | [protected, virtual] |
Draw the scene.
Called 0 to n times during one frame.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 138 of file eVolve/channel.cpp.
References eq::Channel::applyBuffer(), eq::Channel::applyFrustum(), eq::Channel::applyHeadTransform(), eq::Channel::applyViewport(), eq::Channel::getPipe(), eq::fabric::Channel< Window, Channel >::getRange(), eq::Channel::getUniqueColor(), and eq::Channel::outlineViewport().
void eVolve::Channel::frameReadback | ( | const eq::uint128_t & | frameID | ) | [protected, virtual] |
Read back the rendered frame buffer into all output frames.
Called 0 to n times during one frame.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 377 of file eVolve/channel.cpp.
References eq::Frame::BUFFER_COLOR, eq::Frame::BUFFER_DEPTH, eq::Frame::disableBuffer(), eq::Frame::getData(), eq::Channel::getOutputFrames(), eq::Frame::setQuality(), and eq::FrameData::setRange().
void eVolve::Channel::frameStart | ( | const eq::uint128_t & | frameID, |
const uint32_t | frameNumber | ||
) | [protected, virtual] |
Start rendering a frame.
Called once at the beginning of each frame, to do per-frame updates of channel-specific data. This method has to call startFrame().
frameID | the per-frame identifier. |
frameNumber | the frame to start. |
Reimplemented from eq::Channel.
Definition at line 70 of file eVolve/channel.cpp.
References eVolve::BG_COLOR, eVolve::BG_WHITE, and eq::Channel::getUniqueColor().
void eVolve::Channel::frameViewFinish | ( | const eq::uint128_t & | frameID | ) | [protected, virtual] |
Finish updating a destination channel.
Called once on each destination channel, e.g., channels which are defined by a view/segment intersection, before frameFinish to update a part of a view.
This is typically used to do operations on the output channel after it has been fully updated, e.g., to draw a 2D overlay.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 394 of file eVolve/channel.cpp.
bool eVolve::Channel::useOrtho | ( | ) | const [protected, virtual] |
Select perspective or orthographic rendering.
Influences the behaviour of getFrustum, getHeadTransform and the corresponding apply methods in eq::Channel. Intended to be overwritten by the implementation to select orthographic rendering.
Reimplemented from eq::fabric::Channel< Window, Channel >.
Definition at line 191 of file eVolve/channel.cpp.