DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs 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.