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
Expand API ReferenceAPI Reference
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > Deprecated > Deprecated API Reference > Model > Section > IDraw2 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.