MGD::DEVICE_MEM1_SPARSE Class Reference

A RAM-based implementation of MGD::DEVICE for sparse 1-bit visuals. More...

#include <mi32/mg2mem1s.h>

Inheritance diagram for MGD::DEVICE_MEM1_SPARSE:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ERRVALUE Create (INT32 height, INT32 width, bool StartValue=false)
 DEVICE_MEM1_SPARSE ()
virtual ~DEVICE_MEM1_SPARSE ()

Private Member Functions

virtual CONTEXTv_CreateContext ()
virtual ERRVALUE v_FillSpan (MGD::CONTEXT *vgc, INT32 x1, INT32 x2, INT32 y)
bool v_GetRange (INT32 x, INT32 y, INT32 x2, INT32 &endx) const
bool v_GetValue (INT32 x, INT32 y) const
void v_SetAll (bool value=true)

Detailed Description

A RAM-based implementation of MGD::DEVICE for sparse 1-bit visuals.

This version is implemented in such a way as to be more memory efficient as it will not allocate memory for lines which are solid. Not as fast as MGD::DEVICE_MEM1

Definition at line 101 of file mg2mem1s.h.


Constructor & Destructor Documentation

MGD::DEVICE_MEM1_SPARSE::DEVICE_MEM1_SPARSE  ) 
 

constructor

virtual MGD::DEVICE_MEM1_SPARSE::~DEVICE_MEM1_SPARSE  )  [virtual]
 

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_MEM1_SPARSE::Create INT32  height,
INT32  width,
bool  StartValue = false
 

virtual CONTEXT* MGD::DEVICE_MEM1_SPARSE::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.

virtual ERRVALUE MGD::DEVICE_MEM1_SPARSE::v_FillSpan MGD::CONTEXT vgc,
INT32  x1,
INT32  x2,
INT32  y
[private, virtual]
 

Fill a horizontal span.

Overrides base class method.

Reimplemented from MGD::DEVICE.

bool MGD::DEVICE_MEM1_SPARSE::v_GetRange INT32  x,
INT32  y,
INT32  x2,
INT32 endx
const [private]
 

Parameters:
x2  Maximum ending position
endx  Ending position (inclusive) RETURNED

bool MGD::DEVICE_MEM1_SPARSE::v_GetValue INT32  x,
INT32  y
const [private]
 

void MGD::DEVICE_MEM1_SPARSE::v_SetAll bool  value = true  )  [private]
 

Set the whole image to 1 or 0.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:39 2004 for TNTsdk by  doxygen 1.3.8-20040913