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


ILocationEx Interface

GetFrameType
SetFrameType
GetDepthPositionType
SetDepthPositionType

ILocationEx interface gives access to Frame Type and Depth Position Type properties of Localized Items in DG Kernel models. ILocationEx can be queried from the relevant IItem interface.

See also: LabelEx Sample


HRESULT GetFrameType( int* frame )

Parameters

frame - [out] The returned integer indicating the current Frame Type The value coincides with one of values from EModelViewFrame enumeration.

Remarks:

The method returns the current Frame Type of the item.  


HRESULT SetFrameType( int frame )

Parameters

frame  - [in] The new Frame Type. The value must coincide with one of values from EModelViewFrame enumeration.

Remarks:

The method modifies the current Frame Type of the item.

Note that when frame is eModelViewFrameEye and some of the current coordinates are outside of the [-1,1] range the item will appear outside the relevant box. For the case of top-level item it means that the item will disappear from the screen, because it falls out of the Viewing Volume


HRESULT GetDepthPositionType( int* type )

Parameters

type -[out] The returned integer indicating the current Depth Position Type The value coincides with one of values from EModelEntity enumeration.

Remarks:

The method returns the current Depth Position Type of the item.


HRESULT SetDepthPositionType( int type )

Parameters

type -[in] The value of the Depth Position Type The value must coincide with one of values from EModelEntity enumeration.

Remarks:

The method modifies the current Depth Position Type of the item.