All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

OptimizationInterfaces Class CATOptAlgorithmUIFactoryAdapter

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---OptimizationInterfaces.CATIOptAlgorithmUIFactory
        |
        +---CATOptAlgorithmUIFactoryAdapter
 

Usage: you can derive this class.


public class CATOptAlgorithmUIFactoryAdapter

CAA Adapter to CATIOptAlgorithmUIFactory Interface.
Role: This class should be derived to implement features extension to CATIOptAlgorithmUIFactory.
It allows the algorithm to be visible in the Optimizer UI. The default algorithm UI is NO frame and NO stop dialog. If you need to display your own algorithm settings and to allow the algorithm interruption, you will have to implement CATIOptAlgorithmUIFactory by inheriting from this adapter.

See also:
CATIOptAlgorithmUIFactory


Constructor and Destructor Index


o CATOptAlgorithmUIFactoryAdapter()
o ~CATOptAlgorithmUIFactoryAdapter()

Method Index


o CreateAlgoSettingsFrame(CATDialog*,unsigned long)
Creates the settings frame of a user algorithm.
o CreateStopAlgoDialog(CATDialog*,unsigned long,CATIOptOptimization_var&)
Creates the stop dialog of a user algorithm.

Constructor and Destructor


o CATOptAlgorithmUIFactoryAdapter
public CATOptAlgorithmUIFactoryAdapter()
o ~CATOptAlgorithmUIFactoryAdapter
public virtual ~CATOptAlgorithmUIFactoryAdapter()

Methods


o CreateAlgoSettingsFrame
public CATDlgFrame* CreateAlgoSettingsFrame(CATDialog* iFather,
unsigned long iStyle= 786433)
Creates the settings frame of a user algorithm. Default implementation of CATIOptAlgorithmUIFactory.CreateAlgoSettingsFrame. This method returns NULL. You must overload it. This method should build/instanciate a frame allowing interactiv changes of the algorithm settings (Radio buttons, checks, text editor...).
Parameters:
iFather
the father dialog object of the instanciated frame . This object is automatically given by the Optimizer UI as soon as you choose an algorithm in the algorithms list.
iStyle
the style of the instanciated frame . It is automatically given by the Optimizer UI as soon as you choose an algorithm in the algorithms list in order to be in accordance with the dialog configuration.
Returns:
the instanciated frame.
o CreateStopAlgoDialog
public CATDlgDialog* CreateStopAlgoDialog(CATDialog* iFather,
unsigned long iStyle,
const CATIOptOptimization_var& iOptim)
Creates the stop dialog of a user algorithm. Default implementation of CATIOptAlgorithmUIFactory.CreateStopAlgoDialog This method returns NULL. You must overload it. This method should build/instanciate a dialog allowing the algorithm run interruption.
Parameters:
iFather
the father dialog object of the instanciated dialog object . The father is automatically given by the Optimizer UI as soon as you launch an algorithm.
iStyle
the style of the instanciated dialog . It is automatically given by the Optimizer UI as soon as you launch an algorithm in order to be in accordance with the dialog configuration.
iOptim
The interface of the optimization concerned with this stop dialog.
Returns:
the instanciated stop dialog.

This object is included in the file: CATOptAlgorithmUIFactoryAdapter.h
If needed, your Imakefile.mk should include the module: OptimizationItf

Copyright © 2003, Dassault Systèmes. All rights reserved.