Device for rendering to 32-bit RVC raster. More...
#include <mi32/mg2rast.h>

Classes | |
| class | CONTEXT |
Public Member Functions | |
| DEVICE_RASTER_RGB32 () | |
| virtual | ~DEVICE_RASTER_RGB32 () |
| ERRVALUE | Create (RVC::OBJITEM &ObjItem, RVC::RASTER::MAKEPARMS &MakeParms, const RVC::CREDENTIALS *Credentials=0) |
| ERRVALUE | Create (RVC::OBJECT &ParentObject, const RVC::DESCRIPTOR &Descriptor, RVC::RASTER::MAKEPARMS &MakeParms, const RVC::CREDENTIALS *Credentials=0) |
| ERRVALUE | GetObjItem (RVC::OBJITEM &ObjItem) const |
| ERRVALUE | Open (const RVC::OBJITEM &ObjItem, const RVC::CREDENTIALS *Credentials=0) |
| ERRVALUE | WritePixArray () |
Protected Member Functions | |
| ERRVALUE | ReadPixArray () |
| virtual UINT8 * | v_GetImagePointer (INT32 x, INT32 y, INT32 len, UINT16 FrameBuffer) |
| virtual UINT8 * | v_GetImagePointerNoRead (INT32 x, INT32 y, INT32 len, UINT16 FrameBuffer) |
| virtual ERRVALUE | v_WriteImageBuffer (INT32 x, INT32 y, INT32 len, UINT8 *buf, UINT16 FrameBuffer) |
Device for rendering to 32-bit RVC raster.
Raster must have CELLTYPE_RedGreenBlueAlpha_32 or AlphaRedGreenBlue_32.
| MGD::DEVICE_RASTER_RGB32::DEVICE_RASTER_RGB32 | ( | ) |
Construct a 32-bit RGB raster device.
After constructing, you should call Create()
| virtual MGD::DEVICE_RASTER_RGB32::~DEVICE_RASTER_RGB32 | ( | ) | [virtual] |
Destructor.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::Create | ( | RVC::OBJITEM & | ObjItem, | |
| RVC::RASTER::MAKEPARMS & | MakeParms, | |||
| const RVC::CREDENTIALS * | Credentials = 0 | |||
| ) |
Create a raster to draw into.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::Create | ( | RVC::OBJECT & | ParentObject, | |
| const RVC::DESCRIPTOR & | Descriptor, | |||
| RVC::RASTER::MAKEPARMS & | MakeParms, | |||
| const RVC::CREDENTIALS * | Credentials = 0 | |||
| ) |
Create a raster to draw into.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::GetObjItem | ( | RVC::OBJITEM & | ObjItem | ) | const [inline] |
Get OBJITEM for raster.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::Open | ( | const RVC::OBJITEM & | ObjItem, | |
| const RVC::CREDENTIALS * | Credentials = 0 | |||
| ) |
Open existing raster to draw into.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::ReadPixArray | ( | ) | [protected] |
Write the pixel array from raster to buffer.
If the raster is small (less than 4096x4096), we just allocate a buffer big enough for the whole raster.
| virtual UINT8* MGD::DEVICE_RASTER_RGB32::v_GetImagePointer | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT16 | FrameBuffer | |||
| ) | [protected, virtual] |
In the Raster case, this will actually read the raster.
Reimplemented from MGD::DEVICE.
| virtual UINT8* MGD::DEVICE_RASTER_RGB32::v_GetImagePointerNoRead | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT16 | FrameBuffer | |||
| ) | [protected, virtual] |
If GetImagePointer returns a pointer directly into the frame buffer, this function does not need to be overridden.
If GetImagePointer has to actually read something (say via an X call to the display or reading out of a raster, then this version should just return a temporary buffer big enough to hold a single line.
Reimplemented from MGD::DEVICE.
| virtual ERRVALUE MGD::DEVICE_RASTER_RGB32::v_WriteImageBuffer | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT8 * | buf, | |||
| UINT16 | FrameBuffer | |||
| ) | [protected, virtual] |
Write an image buffer to the display If GetImagePointer reutrns a pointer directly into the frame buffer, this method can just return 0.
If GetImagePointer has to actually read something, this method is used to write the result back out. Typically used when drawing to a raster
Reimplemented from MGD::DEVICE.
| ERRVALUE MGD::DEVICE_RASTER_RGB32::WritePixArray | ( | ) |
Write the pixel array back to the raster.
If the raster is small (less than 4096x4096), we just allocate a buffer big enough for the whole raster. In this case, nothing gets flushed until we call WritePixArray() (which the destructor will do if necessary)
1.6.1