MGD::DEVICE_RASTER_TRANS_MASK Class Reference

Device for rendering to 24-bit RVC raster with corresponding opacity mask object. More...

#include <mi32/mg2rastt.h>

Inheritance diagram for MGD::DEVICE_RASTER_TRANS_MASK:
Inheritance graph
[legend]

List of all members.

Classes

class  CONTEXT

Public Member Functions

 DEVICE_RASTER_TRANS_MASK ()
virtual ~DEVICE_RASTER_TRANS_MASK ()
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 GetObjItemMask (RVC::OBJITEM &ObjItem) const
ERRVALUE GetObjItemRaster (RVC::OBJITEM &ObjItem) const
ERRVALUE Open (const RVC::OBJITEM &ObjItem, const RVC::CREDENTIALS *Credentials=0)

Protected Member Functions

virtual UINT8v_GetImagePointer (INT32 x, INT32 y, INT32 len, UINT16 FrameBuffer)
virtual UINT8v_GetImagePointerNoRead (INT32 x, INT32 y, INT32 len, UINT16 FrameBuffer)
virtual ERRVALUE v_WriteImageBuffer (INT32 x, INT32 y, INT32 len, UINT8 *buf, UINT16 FrameBuffer)

Detailed Description

Device for rendering to 24-bit RVC raster with corresponding opacity mask object.

Raster must have CELLTYPE_RedGreenBlue_24 or BlueGreenRed_24. Device will have COLORSPACE_R8_G8_B8_A8 or B8_G8_R8_A8 respectively. If the size is <= 1024x1024, both will be held in memory for speed


Constructor & Destructor Documentation

MGD::DEVICE_RASTER_TRANS_MASK::DEVICE_RASTER_TRANS_MASK (  ) 

Default constructor.

After constructing, you must call Create() or Open().

virtual MGD::DEVICE_RASTER_TRANS_MASK::~DEVICE_RASTER_TRANS_MASK (  )  [virtual]

Destructor.


Member Function Documentation

ERRVALUE MGD::DEVICE_RASTER_TRANS_MASK::Create ( RVC::OBJITEM ObjItem,
RVC::RASTER::MAKEPARMS MakeParms,
const RVC::CREDENTIALS Credentials = 0 
)

Create raster and corresponding opacity mask to draw into.

ERRVALUE MGD::DEVICE_RASTER_TRANS_MASK::Create ( RVC::OBJECT ParentObject,
const RVC::DESCRIPTOR Descriptor,
RVC::RASTER::MAKEPARMS MakeParms,
const RVC::CREDENTIALS Credentials = 0 
)

Create raster and corresponding opacity mask to draw into.

ERRVALUE MGD::DEVICE_RASTER_TRANS_MASK::GetObjItemMask ( RVC::OBJITEM ObjItem  )  const [inline]

Get OBJITEM for mask.

ERRVALUE MGD::DEVICE_RASTER_TRANS_MASK::GetObjItemRaster ( RVC::OBJITEM ObjItem  )  const [inline]

Get OBJITEM for raster.

ERRVALUE MGD::DEVICE_RASTER_TRANS_MASK::Open ( const RVC::OBJITEM ObjItem,
const RVC::CREDENTIALS Credentials = 0 
)

Open existing raster to draw into.

Will create opacity mask subobject if none exists.

virtual UINT8* MGD::DEVICE_RASTER_TRANS_MASK::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_TRANS_MASK::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_TRANS_MASK::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.


The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:35:18 2012 for TNTsdk 2012 by  doxygen 1.6.1