Data Flow Sample
C++ Implementation
Open and Save As operations from the File menu are performed mostly
automatically by the component, which determines the file type by its
extension.   
The File>"Import Objects" operation is performed with the help of  
    OnFileImportobjects() method.  The method demonstrates how DG Kernel 
    component can be used as a background service, which can provide export/import 
    functionality and perform different geometric calculations without being a part 
    of User Interface . The OnFileImportobjects() method uses 
    IObjectGenerator_DG for creation of a standalone Model class, which loads model from an external file.
The objects are added to the main model of the component using 
    IArray interface.  
Functionality of the STL Directory menu is implemented in OnStldirectoryLoad() and 
    OnStldirectorySave()
handlers, which use ISTLDataContext
interface to set options and 
IModelEx
interface to perform the save/load operations. 
                 |