#include <OSGClusterViewBuffer.h>
Collaboration diagram for osg::ClusterViewBuffer:

Public Types | |
| typedef std::vector< Int8 > | BufferT |
| stl vector used as char buffer | |
| enum | { RED = 1, GREEN = 2, BLUE = 4, ALPHA = 8, STENCIL = 16, DEPTH = 32, RGB = RED|GREEN|BLUE, RGBA = RED|GREEN|BLUE|ALPHA } |
| Buffer component. More... | |
Public Methods | |
Constructors | |
| ClusterViewBuffer (void) | |
Destructor | |
| virtual | ~ClusterViewBuffer (void) |
functions | |
| void | recv (Connection &connection) |
| Receive image data from a network connection. | |
| void | send (Connection &connection, UInt32 component, UInt32 x1, UInt32 y1, UInt32 x2, UInt32 y2, UInt32 toX, UInt32 toY) |
| Send parts of a view buffer to a Connection. | |
| void | send (Connection &connection, UInt32 component, UInt32 toX, UInt32 toY) |
| Send parts of a view buffer to a Connection. | |
| void | setImgTransType (const char *mime=NULL) |
| Set compression type. | |
| void | setSubtileSize (UInt32 size) |
| Set subtile size. | |
| UInt32 | getBufferWidth () |
| Get buffer width. | |
| UInt32 | getBufferHeight () |
| Get buffer width. | |
Public Attributes | |
| enum osg::ClusterViewBuffer:: { ... } | Component |
| Buffer component. | |
Protected Attributes | |
Fields | |
| ImageFileType * | _imgTransType |
| UInt32 | _subTileSize |
Private Methods | |
| ClusterViewBuffer (const ClusterViewBuffer &source) | |
| void | operator= (const ClusterViewBuffer &source) |
This class provides an interface to an OpenGL view buffer. The Buffer contents can be transfered over a Connection. All Image types can be used for image compression. The ClusterViewBuffer can access RGBA, Stencil and Z-Buffer values.
The whole imagebuffer is divided into subtiles. Each subtile is read from the buffer, compressed and send over the nertwork. In most cases, the buffer read and the network send of the previous tile is done in parallel.
|
|
stl vector used as char buffer
|
|
|
Buffer component.
|
|
|
Constructor documentation Initialize a ClusterViewBuffer. By default, no image compression is set and the subtile size is set to 32 |
|
|
Destructor documentation |
|
|
|
|
|
Receive image data from a network connection. Receive image data from all channels of a conneciton. The receive is finished, when the last channel signals a transmission end.
|
|
||||||||||||||||||||||||||||||||||||
|
Send parts of a view buffer to a Connection.
|
|
||||||||||||||||||||
|
Send parts of a view buffer to a Connection.
|
|
|
Set compression type. By default, no compression is used for image transmission. The given mime type identifies an ImageType e.g. "JPEG". This image type is used for compression.
|
|
|
Set subtile size. The whole buffer is transfered as small subtiles. Increasing or decreasing the subtile size will result in changes to the performance. The best size depends on network package size and the ration between network performance and buffer read/write performance.
|
|
|
Get buffer width.
|
|
|
Get buffer width.
|
|
|
|
|
|
Buffer component.
|
|
|
|
|
|
|
1.2.16