Base for target device. More...
#include <spatmod/imagetargetmgd.h>

Public Member Functions | |
| TARGET_MGD (STAGE *pInputStage) | |
| virtual | ~TARGET_MGD () |
| MGD::DEVICE * | DetachDevice () |
| MGD::DEVICE * | GetDevice () 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 |
Base for target device.
| SPATMOD::IMAGE::TARGET_MGD::TARGET_MGD | ( | STAGE * | pInputStage | ) |
Construct with specified input stage.
Target does not take ownership of input stage.
| pInputStage | Stage in pipeline to obtain image data from |
| virtual SPATMOD::IMAGE::TARGET_MGD::~TARGET_MGD | ( | ) | [virtual] |
Destructor.
| 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.
| 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.
| iterator | Iterator |
Reimplemented from SPATMOD::IMAGE::BASE.
1.6.1