DIView Sample
DIView is a simple application, which displays a DInsight model in a
resizable view. It demonstrates how DG Kernel control can be integrated into a
resizable window. It also demonstrates implementation of Save and Open model
file functionality, changing between surface and wireframe rendering and
programming various styles of gradient background.
Running the application
Observe behaviour of the component on resizing and maximizing the window.
The File menu offers Save As and Open commands.
Tools > Options menu command opens dialog, which allows changing between
surface and wireframe rendering. The background group of controls offers options
of flat or gradient background. In gradient mode colors can be modified with the
provided edit boxes. Style radio buttons offer selection between horizontal,
vertical, corner and curtain layouts. These layouts can be customized in
implementation to an unlimited set styles.
Tools > Grid dialog allows enabling and modify in properties of the
Mesurement Grid. This dialog is identical to
one displayed form the View submenu of the context menu
See also: All samples
|