All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

SPAdmicon Class DM_draw_engine_mgr

SPAbase.ACIS_OBJECT
  |
  +---DM_draw_engine_mgr
 

Usage: you must use this class as is. You should never derive it.


public class DM_draw_engine_mgr

This class manages the singleton DM_draw_engine, providing global access to the unique instance.

Role: The DM_draw_engine_mgr is used by the dmicon library as its access to the singleton DM_draw_engine. If the admgi_draweng library is initialized, it creates a concrete DM_draw_engine and loads it into the DM_draw_engine_mgr using the Replace_draw_engine method. Users replacing the dmicon library should do the same.

If no concrete DM_draw_engine is loaded into the DM_draw_engine_mgr, DM_default_icons will not draw.

Related classes: Access to a concrete DM_draw_engine is provided by the DM_draw_engine_mgr::Instance method.

See also:
DM_draw_engine


Constructor and Destructor Index


o DM_draw_engine_mgr()
Public constructor.
o ~DM_draw_engine_mgr()
Destructor; use the Lose method instead.

Method Index


o Instance()
Requests a concrete DM_draw_engine object.
o Replace_draw_engine(Spatial_abs_hurler&,DM_draw_engine*&)
Road a draw engine.

Constructor and Destructor


o DM_draw_engine_mgr
public DM_draw_engine_mgr()
Public constructor.

Role: Users should not call this; the icon library creates a single static instance.
o ~DM_draw_engine_mgr
public ~DM_draw_engine_mgr()
Destructor; use the Lose method instead.

Methods


o Instance
public static _ICON DM_draw_engine* Instance()
Requests a concrete DM_draw_engine object.
o Replace_draw_engine
public static _ICON void Replace_draw_engine(Spatial_abs_hurler& err_handler,
DM_draw_engine*& owner)
Road a draw engine.

Role: The owner argument takes ownership of a concrete DM_draw_engine. This is the prototype for future requests.

Parameters:
err_handler
error handler.
owner
owner.

This object is included in the file: dm_draw_engine_mgr.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.