SPATMOD::IMAGE::TARGET_MGD Class Reference

Base for target device. More...

#include <spatmod/imagetargetmgd.h>

Inheritance diagram for SPATMOD::IMAGE::TARGET_MGD:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TARGET_MGD (STAGE *pInputStage)
virtual ~TARGET_MGD ()
MGD::DEVICEDetachDevice ()
MGD::DEVICEGetDevice () const
ERRVALUE SetDevice (MGD::DEVICE *pDevice)
void SetForceAlphaBlend (bool bForceAlphaBlend)

Protected Member Functions

ERRVALUE AttachDevice (MGD::DEVICE *&pDevice)
virtual ERRVALUE v_Initialize ()
virtual float v_QueryIterator (const SECTION_ITERATOR &iterator) const

Detailed Description

Base for target device.


Constructor & Destructor Documentation

SPATMOD::IMAGE::TARGET_MGD::TARGET_MGD ( STAGE pInputStage  ) 

Construct with specified input stage.

Target does not take ownership of input stage.

Parameters:
pInputStage Stage in pipeline to obtain image data from
virtual SPATMOD::IMAGE::TARGET_MGD::~TARGET_MGD (  )  [virtual]

Destructor.


Member Function Documentation

ERRVALUE SPATMOD::IMAGE::TARGET_MGD::AttachDevice ( MGD::DEVICE *&  pDevice  )  [protected]

Attach device.

Ownership of device is transferred, and device will be destroyed in TARGET_MGD instance destructor unless DetachDevice is used.

Parameters:
pDevice Device to attach, will be set to NULL on successful return
MGD::DEVICE* SPATMOD::IMAGE::TARGET_MGD::DetachDevice (  )  [inline]

Detach device, caller is responsible for destroying device returned.

Will return NULL if not device set or attached. If device is detached Initialize may be called again to create a new device.

MGD::DEVICE* SPATMOD::IMAGE::TARGET_MGD::GetDevice (  )  const [inline]

Get attached device, caller must not destroy.

Will return NULL if not device set or attached.

ERRVALUE SPATMOD::IMAGE::TARGET_MGD::SetDevice ( MGD::DEVICE pDevice  ) 

Set device.

If used, must be done before Initialize(). Device dimensions must match image dimensions. ColorSpace of device must match PixelType and DataType of image. Ownership of device is not transferred and caller must ensure that device remains valid until TARGET_MGD instance is destroyed.

void SPATMOD::IMAGE::TARGET_MGD::SetForceAlphaBlend ( bool  bForceAlphaBlend  )  [inline]

Force context to perform alpha blending in PutImage functions.

virtual ERRVALUE SPATMOD::IMAGE::TARGET_MGD::v_Initialize (  )  [protected, virtual]

Initialize target.

Must do the following (in order), checking for error after each call. Validate all class-specific settings. Open any files if required.

Implements SPATMOD::IMAGE::TARGET.

virtual float SPATMOD::IMAGE::TARGET_MGD::v_QueryIterator ( const SECTION_ITERATOR iterator  )  const [protected, virtual]

Query support/efficiency for specified stepping order.

Returns 1 for all orders supported by MGD device, otherwise returns 0.

Parameters:
iterator Iterator

Reimplemented from SPATMOD::IMAGE::BASE.


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

Generated on Sun Oct 7 21:40:17 2012 for TNTsdk 2012 by  doxygen 1.6.1