DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Collapse ViewView
Expand General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > View > I2DView2_KC Search Documentation


I2DView2_KC Interface

I2DView2_KC interface gives access to the aligning functionality of DG Kernel components

See also Interface List


HRESULT CreateTemplate(I2DView_KC **templ)

Parameters

templ - [out, retval] A view template, which stores the current settings of the 2D view.

Remarks:

Call this method to store the current configuration of the 2D view into a newly created template, to be used in a call to the Align method below. See alignment for details


HRESULT Align(I2DView_KC *templ, int type)

Parameters

templ - [in] A view template, obtained with a call to the CreateTemplate method, to be aligned to. If templ is NULL the current alignment will be removed.

type - [in] Type of alignment: 0 - horizontal, 1 - vertical

Remarks:

Causes the view to be aligned with the view, configuration of which is stored in the templ parameter. See alignment for details. Call this method with templ set to NULL (null in C#, Nothing in Visual Basic) to remove any alignment from the view. The second parameter is ignored in the case.


HRESULT SetupAlignment(I2DView_KC *target, int type)

Parameters

templ - [in] A view template, obtained with a call to the CreateTemplate method, to be aligned to. If templ is NULL the current alignment will be removed.

type - [in] Type of alignment: 0 - horizontal, 1 - vertical

Remarks:

Prepares the view to be aligned to by the view, configuration of which is stored in the target parameter. See alignment for details. Call this method with target set to NULL (null in C#, Nothing in Visual Basic) to remove related information from the view. The second parameter is ignored in the case.