#include <HxRgbBufferServant.h>
Inheritance diagram for HxRgbBufferServant::
Public Methods | |
HxRgbBufferServant () | |
HxRgbBufferServant (int size) | |
virtual | ~HxRgbBufferServant () |
virtual CORBA::Long | size () throw (CORBA::SystemException) |
virtual HxCorba::RgbSeq * | getRgb () throw (CORBA::SystemException) |
virtual void | setRgb (const HxCorba::RgbSeq &pixels) throw (CORBA::SystemException) |
int * | getBuffer () throw (CORBA::SystemException) |
void | setBuffer (int *buffer) throw (CORBA::SystemException) |
|
00017 { 00018 _buffer = 0; 00019 _size = 0; 00020 } |
|
|
|
00029 { 00030 if(_size > 0) delete [] _buffer; 00031 } |
|
Reimplemented from POA_HxCorba::RgbBuffer.
00035 { 00036 return _size; 00037 } |
|
Reimplemented from POA_HxCorba::RgbBuffer.
00041 { 00042 CORBA::Long* data = (CORBA::Long*)_buffer; 00043 HxCorba::RgbSeq* seq = new HxCorba::RgbSeq(_size, _size, data, false); 00044 return seq; 00045 } |
|
00049 { 00050 if(_buffer == 0) return; 00051 00052 const CORBA::Long* src = pixels.get_buffer(); 00053 int n = pixels.length() * sizeof(CORBA::Long); 00054 memcpy(_buffer, src, n); 00055 } |
|
00059 { 00060 return _buffer; 00061 } |
|
00065 { 00066 _buffer = buffer; 00067 } |