DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links 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 IDIObjGenerator 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.