DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


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.