Equalizer
1.4.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 bool | configExit () |
Exit 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 the output frames. | |
virtual void | frameViewFinish (const eq::uint128_t &frameID) |
Finish updating a destination channel. | |
virtual void | frameClear (const eq::uint128_t &frameID) |
Clear the frame buffer. | |
virtual bool | useOrtho () const |
Select perspective or orthographic rendering. | |
void | clearViewport (const eq::PixelViewport &pvp) |
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::fabric::Frame::BUFFER_COLOR, eq::FrameData::setBuffers(), and eq::Frame::setFrameData().
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::configExit | ( | ) | [protected, virtual] |
Exit this channel.
Reimplemented from eq::Channel.
Definition at line 70 of file eVolve/channel.cpp.
References eq::Frame::getFrameData().
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 284 of file eVolve/channel.cpp.
References eq::Compositor::assembleFrame(), eq::Compositor::assembleFramesSorted(), eq::Statistic::CHANNEL_FRAME_WAIT_READY, eq::Channel::getDrawableConfig(), eq::Frame::getFrameData(), eq::Frame::getImages(), eq::Channel::getInputFrames(), eq::Channel::getObjectManager(), eq::fabric::Frame::getOffset(), eq::fabric::Channel< Window, Channel >::getPixelViewport(), eq::Frame::getRange(), eq::Channel::getRegions(), eq::fabric::Frame::getZoom(), eq::Frame::readback(), eq::Channel::resetAssemblyState(), eq::fabric::Frame::setOffset(), eq::fabric::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 95 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 146 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 the output frames.
Called 0 to n times during one frame.
frameID | the per-frame identifier. |
Reimplemented from eq::Channel.
Definition at line 385 of file eVolve/channel.cpp.
References eq::fabric::Frame::BUFFER_COLOR, eq::fabric::Frame::BUFFER_DEPTH, eq::Frame::disableBuffer(), eq::Frame::getFrameData(), eq::Channel::getOutputFrames(), and eq::Frame::setQuality().
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 78 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 401 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 199 of file eVolve/channel.cpp.