Represents image information passed from Client to Server. More...
#include <Data.h>
Public Member Functions | |
| Data (int x=0, int y=0, int width=0, int height=0, int spp=0, const float *data=0) | |
| Constructor. | |
| ~Data () | |
| Destructor. | |
| const int | type () const |
| The 'type' of message this Data represents. | |
| int | x () const |
| X position. | |
| int | y () const |
| y position | |
| int | width () const |
| Width. | |
| int | height () const |
| Height. | |
| int | spp () const |
| Samples-per-pixel, aka channel depth. | |
| const float * | data () const |
| Pointer to pixel data owned by the display driver (client-side). | |
| const float * | pixels () const |
| Pointer to pixel data owned by this object (server-side). | |
Friends | |
| class | Client |
| class | Server |
Represents image information passed from Client to Server.
This class wraps up the data sent from Client to Server. When calling Client::openImage() a Data object should first be constructed that specifies the full image dimensions. E.g. Data( 0, 0, 320, 240, 3 );
When sending actually pixel information it should be constructed using values that represent the chunk of pixels being sent. E.g. Data( 15, 15, 16, 16, 3, myPixelPointer );
| const int rmanconnect::Data::type | ( | ) | const [inline] |
The 'type' of message this Data represents.
0: image open 1: pixels 2: image close
1.6.1