#include <mi32/mg2rast8.h>

Public Member Functions | |
| DEVICE_RASTER_GRAY8 () | |
| virtual | ~DEVICE_RASTER_GRAY8 () |
| ERRVALUE | Create (RVC::OBJITEM &ObjItem, RVC::RASTER::MAKEPARMS &MakeParms, const char *Source=0) |
| ERRVALUE | Open (const RVC::OBJITEM &ObjItem) |
| ERRVALUE | WritePixArray () |
Protected Member Functions | |
| const RVC::RASTER & | GetRaster () const |
| ERRVALUE | ReadPixArray () |
Private Member Functions | |
| ERRVALUE | Setup () |
| virtual CONTEXT * | v_CreateContext () |
| virtual ERRVALUE | v_Flush () |
| 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) |
| MGD::DEVICE_RASTER_GRAY8::DEVICE_RASTER_GRAY8 | ( | ) |
Construct a 24-bit RGB raster device.
After constructing, you should call Create()
| virtual MGD::DEVICE_RASTER_GRAY8::~DEVICE_RASTER_GRAY8 | ( | ) | [virtual] |
Destructor.
| ERRVALUE MGD::DEVICE_RASTER_GRAY8::Create | ( | RVC::OBJITEM & | ObjItem, | |
| RVC::RASTER::MAKEPARMS & | MakeParms, | |||
| const char * | Source = 0 | |||
| ) |
Create a raster to draw into.
To draw into an existing raster, call Open
| ObjItem | Information to create raster, location of created raster RETURNED |
| const RVC::RASTER& MGD::DEVICE_RASTER_GRAY8::GetRaster | ( | ) | const [inline, protected] |
| ERRVALUE MGD::DEVICE_RASTER_GRAY8::Open | ( | const RVC::OBJITEM & | ObjItem | ) |
Open a raster to draw into.
To draw into an existing raster, call Open
Reimplemented in MGD::DEVICE_RASTER_COLORMAPPED.
| ERRVALUE MGD::DEVICE_RASTER_GRAY8::ReadPixArray | ( | ) | [protected] |
Write the pixel array from raster to buffer.
If the raster is small (less than 1024x1024), we just allocate a buffer big enough for the whole raster.
| ERRVALUE MGD::DEVICE_RASTER_GRAY8::Setup | ( | ) | [private] |
| virtual CONTEXT* MGD::DEVICE_RASTER_GRAY8::v_CreateContext | ( | ) | [private, virtual] |
Create a GC for drawing.
Derived classes may override this and make it return anything derived from MGD_GC. MGD_GC's constructor is private, so this is the only way for calling code to create a GC.
Reimplemented from MGD::DEVICE_MEM8G.
Reimplemented in MGD::DEVICE_RASTER_COLORMAPPED.
| virtual ERRVALUE MGD::DEVICE_RASTER_GRAY8::v_Flush | ( | ) | [inline, private, virtual] |
Called by WritePixArray just before it starts writing Colormapped derived class can use this to update colormap.
Reimplemented in MGD::DEVICE_RASTER_COLORMAPPED.
| virtual UINT8* MGD::DEVICE_RASTER_GRAY8::v_GetImagePointer | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT16 | FrameBuffer | |||
| ) | [private, virtual] |
In the Raster case, this will actually read the raster.
Reimplemented from MGD::DEVICE_MEM8G.
| virtual UINT8* MGD::DEVICE_RASTER_GRAY8::v_GetImagePointerNoRead | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT16 | FrameBuffer | |||
| ) | [private, 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_GRAY8::v_WriteImageBuffer | ( | INT32 | x, | |
| INT32 | y, | |||
| INT32 | len, | |||
| UINT8 * | buf, | |||
| UINT16 | FrameBuffer | |||
| ) | [private, 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_GRAY8::WritePixArray | ( | ) |
Write the pixel array back to the raster.
If the raster is small (less than 1024x1024), 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