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


DIView Sample

Source code for DIView sample is available in Samples\NET\VB folder of the installation directory.

Description

Implementation

All the work is done inside DIViewForm class. The OnSizeChanged() method synchronizes size and position of the view and of the control.

Background manipulation is implemented in a set of methods called from DIViewForm.InitBackground(). It is using IRectangleColor_KC interface to access and modify arrays of colors assigned to four sides of the window rectangle.

Printing is handled by DIViewForm.OnFilePrint(), which uses IPrint_KC to print the scene.

See also: C# DIView Sample, C++ DIView sample, VB 6.0 DIView Sample, All samples