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 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


IDraw2 Interface

IDraw2 interface provides higher level functionality for drawing inside ClientDraw event handler

IDraw2 can be queried from the IView interface. 

Query path: DG Kernel > GetView > IView > IDraw2

See also Interface List


HRESULT SetCurrentFrame(IFrame* frame)

Parameters

frame- [in] IFrame New position and orientation for the drawing operations.

Returns

S_OK in case of success.

Remarks:

The method is supposed to be called only from inside a ClientDraw event handler. It makes position and orientation of the the current Drawing Frame identical to those of frame. frame can be queried from appropriate elements on the current model. For example if frame was queried from an ISection the consequent drawing operations will be performed in local axes of the object which implements ISection.

frame can also be created independently with a call to Create or Create2 methods of IDIObjectGenerator interface with eType parameter set to eObjTypeFrame. In this case its location and orientation can be modified with methods of IFrame or IFrame2 queried from it.