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


LabelEx C++ Sample

Source code for Label sample is available in Samples\VC\Labels\LabelEx folder of the installation directory. LabelEx demonstrates usage of ILocation and ILocationEx interfaces fpr programmatic manipulation of advanced positioning of 3D Labels.

Overview

Implementation

All DG Kernel related functionality is implemented by the LabelExDlg class. On the start LabelExDlg::OnInitDialog() function acquires required IItem/a>, A href="../ILocation.aspx">ILocation and ILocationEx interfaces for each label as described in Programming 3D Labels and stores them into the class variables.

LabelExDlg::GetObjectData() function uses ILocation and ILocationEx to query necessary information from the label objects.

LabelExDlg::ModifyStandaloneLabel() is the function which transfers all relevant options into properties of the top-level label and updates the display. It uses ILocation and ILocationEx to do the job. LabelExDlg::ModifyChildLabel() does the same for the child label.

.Notice the LabelExDlg::ReleaseAll() function, which is called from the OnDestroy() Windows message handler.

See also IText, ILocation, IItem, IDIFont , All samples.