Table of Contents

Delegate PaintView

Namespace
CADability
Assembly
CADability.dll

Handler for the paint events of a view (e.g. PaintBackgroundEvent or PaintSelectEvent), registered via SetPaintHandler(DrawingAspect, PaintView). The view calls it during its paint cycle after the model has been drawn, so that actions can draw additional objects (selection, feedback, active objects) with the paint engine of the view.

public delegate void PaintView(Rectangle Extent, IView View, IPaintTo3D PaintTo3D)

Parameters

Extent Rectangle

The clip rectangle of the paint event in client coordinates of the canvas

View IView

The view that is being painted

PaintTo3D IPaintTo3D

The paint engine of the view, already set up with the projection of the view

Constructors

PaintView(object, nint)

public PaintView(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(Rectangle, IView, IPaintTo3D, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Rectangle Extent, IView View, IPaintTo3D PaintTo3D, AsyncCallback callback, object @object)

Parameters

Extent Rectangle
View IView
PaintTo3D IPaintTo3D
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(Rectangle, IView, IPaintTo3D)

public virtual void Invoke(Rectangle Extent, IView View, IPaintTo3D PaintTo3D)

Parameters

Extent Rectangle
View IView
PaintTo3D IPaintTo3D