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