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 Links
Global Axes

Rendering of Global Axes

Global axes can be viewved as a 3D icon at the left botton corner of KernelCAD window. This icon is independent of the normal global axes

Appearence of global axes or the icon can be modified via the relevant IKCContext interface. See below for details

Global Axes

To obtain acces to properties of the global axes query KernelCAD>GetView()>IView>IPropertyArray>GetProperty("GlobalAxes")>IKCContext

Global Axes Icon

IKCContext interface for the icon cab be acquired via: KernelCAD>GetView()>IView>IPropertyArray>GetProperty("GlobalAxesIcon")>IKCContext

To show/hide the icon call: IKCContext>SetBoolParam(0), or use the boolen property id=19 of the KernelCAD context:

KernelCAD>GetView()>IView>IKCContext>SetBoolParam(19)

Properties

The color properties below are accessible via IKCContext2 (queried from IKCContext)

The double properties below are adjustment factors applied to the automatically calculated dimension, not the actual dimensions.

Property Description Type Parameter ID Default
Visible Determines whether the axes are rendered Boolean 0 False
Solid If true axes are presented by cylinders of diameter adjustable via the WidthPointer property Boolean 1 False
Iconic Read-only. True for the axes icon Boolean 2 False
ShowNames If true axes names, as set by NameX etc properties (X,Y,Z default), are displayed Boolean 3 False
NameX Text displayed next to the X axis pointer when ShowNames is true String "X"
NameY Text displayed next to the Y axis pointer when ShowNames is true String 1 "Y"
NameZ Text displayed next to the Z axis pointer when ShowNames is true String 2 "Z"
PointerStyle 0 - Triangles, 1 - Cone Integer 0 0
IconSize Size of the icon in poxels when the axes are iconic. Ignored otherwise Integer 1 40
PresentationType 0 - Axes, 1 - Compass showing -z direction independently of view point Integer 2 0
LengthAxis Total axis length factor. See the comment above Double 0 1.0
LengthPointer Pointer length factor. See the comment above Double 1 1.0
WidthPointer Pointer diameter factor. See the comment above Double 2 1.0
RadiusOrigin Radius of the sphere at the origin factor. Ignored if is Solid property is false. See the comment above. Double 3 1.0
ColorAxisX Color of the X axis Color 0 Red rgb(1,0,0)
ColorAxisY Color of the Y axis Color 1 Green rgb(0,1,0)
ColorAxisZ Color of the Z axis Color 2 Blue rgb(0,0,1)
ColorOrigin Color of the sphere at the origin. Ignored if is Solid property is false. Color 2 White rgb(1,1,1)
ColorTextX Color of the X axis name text Color 3 Red rgb(1,0,0)
ColorTextY Color of the Y axis name text Color 4 Green rgb(0,0.8,0)
ColorTextZ Color of the Z axis name text Color 5 Blue rgb(0,0,1)

See also: Left Handed Axes