#include <frame.h>
Definition at line 32 of file frame.h.
Operations | |
| class | eq::server::Frame |
| The distributed data shared between Frame and server::Frame. | |
| void | clear () |
| Clear the frame, recycles the images attached to the frame data. | |
| void | startReadback (Window::ObjectManager *glObjects) |
| Read back a set of images according to the current frame data. | |
| void | syncReadback () |
| Synchronize the image readback. | |
| int64_t | transmit (net::NodePtr toNode) |
| Transmit the frame data to the specified node. | |
| void | setReady () |
| Set the frame ready. | |
| bool | isReady () const |
| Test the readiness of the frame. | |
| void | waitReady () const |
| Wait for the frame to become available. | |
| void | addListener (base::Monitor< uint32_t > &listener) |
| Add a listener which will be incremented when the frame is ready. | |
| void | removeListener (base::Monitor< uint32_t > &listener) |
| Remove a frame listener. | |
| void | disableBuffer (const Buffer buffer) |
| Disable the usage of a frame buffer attachment for all images. | |
| virtual ChangeType | getChangeType () const |
| virtual void | getInstanceData (net::DataOStream &os) |
| Serialize the instance information about this managed object. | |
| virtual void | applyInstanceData (net::DataIStream &is) |
| Deserialize the instance data. | |
Public Types | |
| enum | Buffer { BUFFER_NONE = EQ_BIT_NONE, BUFFER_UNDEFINED = EQ_BIT1, BUFFER_COLOR = EQ_BIT5, BUFFER_DEPTH = EQ_BIT9, BUFFER_ALL = EQ_BIT_ALL } |
| The buffer format defines which components of the frame are to be used during recomposition. More... | |
Public Member Functions | |
| Frame () | |
| Constructs a new Frame. | |
Data Access | |
| const vmml::Vector2i & | getOffset () const |
| void | setOffset (const vmml::Vector2i &offset) |
| uint32_t | getBuffers () const |
| The enabled frame buffer attachments. | |
| const Range & | getRange () const |
| void | setRange (const Range &range) |
| const Pixel & | getPixel () const |
| const ImageVector & | getImages () const |
| The images of this frame. | |
| void | setData (FrameData *data) |
| Set the data for this frame. | |
| FrameData * | getData () |
| void | setPixelViewport (const PixelViewport &pvp) |
| Set the pixel viewport of the frame's data. | |
| const net::ObjectVersion & | getDataVersion (const Eye eye) const |
Classes | |
| struct | Data |
| enum eq::Frame::Buffer |
| uint32_t eq::Frame::getBuffers | ( | ) | const |
The enabled frame buffer attachments.
Definition at line 44 of file frame.cpp.
References eq::FrameData::getBuffers().
Referenced by eq::Compositor::assembleFrame().
| const Range & eq::Frame::getRange | ( | ) | const |
Definition at line 56 of file frame.cpp.
References eq::FrameData::getRange().
| const Pixel & eq::Frame::getPixel | ( | ) | const |
Definition at line 50 of file frame.cpp.
References eq::FrameData::getPixel().
Referenced by eq::Compositor::assembleFrame().
| void eq::Frame::setData | ( | FrameData * | data | ) | [inline] |
Set the data for this frame.
Definition at line 75 of file frame.h.
Referenced by eq::Pipe::getFrame().
| void eq::Frame::clear | ( | ) |
Clear the frame, recycles the images attached to the frame data.
Definition at line 80 of file frame.cpp.
References eq::FrameData::clear().
| void eq::Frame::startReadback | ( | Window::ObjectManager * | glObjects | ) |
Read back a set of images according to the current frame data.
The images are added to the frame, existing images are retained.
| glObjects | the GL object manager for the current GL context. |
Definition at line 86 of file frame.cpp.
References eq::FrameData::startReadback().
Referenced by eq::Channel::frameReadback().
| void eq::Frame::syncReadback | ( | ) |
Synchronize the image readback.
Definition at line 92 of file frame.cpp.
References eq::FrameData::syncReadback().
Referenced by eq::Channel::frameReadback().
| int64_t eq::Frame::transmit | ( | net::NodePtr | toNode | ) |
Transmit the frame data to the specified node.
Used internally after readback to push the image data to the input frame nodes. Do not use directly.
| toNode | the receiving node. |
Definition at line 98 of file frame.cpp.
References eq::FrameData::transmit().
| void eq::Frame::setReady | ( | ) |
Set the frame ready.
The frame is automatically set ready by syncReadback and upon receiving of the transmit commands.
Definition at line 104 of file frame.cpp.
References eq::FrameData::setReady().
| bool eq::Frame::isReady | ( | ) | const |
Test the readiness of the frame.
The readiness of the frame is automatically managed by the frame buffer readback and transmit implementation.
Definition at line 110 of file frame.cpp.
References eq::FrameData::isReady().
Referenced by eq::Compositor::assembleFramesUnsorted().
| void eq::Frame::waitReady | ( | ) | const |
Wait for the frame to become available.
Definition at line 116 of file frame.cpp.
References eq::FrameData::waitReady().
Referenced by eq::Compositor::assembleFramesSorted().
| void eq::Frame::addListener | ( | base::Monitor< uint32_t > & | listener | ) |
Add a listener which will be incremented when the frame is ready.
| listener | the listener. |
Definition at line 129 of file frame.cpp.
References eq::FrameData::addListener().
Referenced by eq::Compositor::assembleFramesUnsorted().
| void eq::Frame::removeListener | ( | base::Monitor< uint32_t > & | listener | ) |
Remove a frame listener.
| listener | the listener. |
Definition at line 135 of file frame.cpp.
References eq::FrameData::removeListener().
Referenced by eq::Compositor::assembleFramesUnsorted().
| void eq::Frame::disableBuffer | ( | const Buffer | buffer | ) |
Disable the usage of a frame buffer attachment for all images.
| buffer | the buffer to disable. |
Definition at line 122 of file frame.cpp.
References eq::FrameData::disableBuffer().
| virtual ChangeType eq::Frame::getChangeType | ( | ) | const [inline, protected, virtual] |
| void eq::Frame::getInstanceData | ( | net::DataOStream & | os | ) | [protected, virtual] |
Serialize the instance information about this managed object.
The default implementation uses the data provided by setInstanceData.
| os | The output stream. |
Implements eq::net::Object.
Definition at line 28 of file frame.cpp.
References eq::net::DataOStream::writeOnce().
| void eq::Frame::applyInstanceData | ( | net::DataIStream & | is | ) | [protected, virtual] |
Deserialize the instance data.
This method is called during object mapping to populate slave instances with the master object's data. The default implementation writes the data into the memory declared by setInstanceData.
| is | the input stream. |
Implements eq::net::Object.
Definition at line 33 of file frame.cpp.
References eq::net::DataIStream::advanceBuffer(), eq::net::DataIStream::getRemainingBuffer(), eq::net::DataIStream::getRemainingBufferSize(), and eq::net::DataIStream::nRemainingBuffers().
friend class eq::server::Frame [friend] |
0.6 by
1.5.5