KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Models > Scene Items > Smart Labels
Smart Labels

Smart Labels

Smart Labels are a special (managed) type of facing labels. They are intended to be associated with a point in 3D space. Normally the point is a center of a 3D parent section.

Smart Labels are arranged automatically on the screen so they do not overlap and positioned close to the point they are associated with.

See its behaiviour on the Labels>Smart labels example in the Sample Explorer

Smart labels are items. They can be a top-level item or, most often, a child item of a section.

By default a smart label is positioned on the top of its parent object or its associated point. When the label does not fit silhouette of its parent object it is positioned on margins of the 3D window. In any case labels are arranged automatically to avoid overlapping.

Array of all smart labels and related properties are maintaned by Smart Label Manager, which can be accessed via ISmartLabelManager_KC interface queried from IView.

Individual smart label can be accessed via ILabel3D_KC queried from the relevant IItem or via ISmartLabelManager_KC.GetLabel(). Smart labels also implement IText, IDIFont, IItem, ILocation and ITypeBasic_KC.

The Smart Label Manager also implements IDynamicScreenItemManager_KC interface to control smart labels as a generic set of items.

Smart Label Manager keeps a special label, which acts as a template for new labels created with AddNewLabel, CreateLabelsAutomatic or CreateObjectLabelAutomatic. Properties of the template can be accessed via ISmartLabelManager_KC.GetLabelCreationTemplate > ILabel3D_KC

Extended Properties

Smart labels are computationaly intensive during rendering stage. The properties below are related for performance. These options mostly make difference for intersive rendering of large models like during animations. It is recommeded to test both options of the settings and in case of acceptable performance setting the options to false.

Use ISmartLabelManager_KC.GetExtendedProperties() to access the properties.

Property Description Type Parameter ID Default
FavorSpeed When true speed is favored over accuracy Boolean 0 True
CacheHLR When true some extra memory and some initialisation on start is used to accelerate Hidden Label Removal during runtime Boolean 1 True
ReuseSizes When this option is true sizes of text boxes are calculated only when software detects that they are out date, which sometimes can be lagging Boolean 2 True
CacheFlatSectionArray Cache flat section array for performance. Toggle this option twice to update the array if new sections are addded or removed Boolean 3 True
BoundingObjectScale Copies of bounding obejcts of all sections are scaled (down when <1.0) by this value by hidden label removal algorithm. Clamped to valid range of [0.1, 2.0]. Reduce to show more labels. Can be tuned in by experimenting Double 0 0.8

See also:  Smart Labels Sample,