AsyncRenderContext

References
public abstract class AsyncRenderContext : IDisposable
\ingroup rhino_render Inherit from AsyncRenderContext to be able to create asynchronous render engine implementations through RhinoCommon.

Constructors

AsyncRenderContext

#
protected AsyncRenderContext()

Finalizer

~AsyncRenderContext

#
~AsyncRenderContext()

Properties

Cancel

#
If set to true rendering should be stopped. Is set to true only by StopRendering().
protected bool Cancel { get; }

RenderThread

#Since v6.0
Holder for render thread, that gets set through StartRenderThread()
public Thread RenderThread { get; }

RenderWindow

#Since v6.0
Handle to the RenderWindow for the instance of this class. This is a convenience property for implementors to use.
public RenderWindow RenderWindow { get; set; }

Methods

DeleteThis

#
protected virtual void DeleteThis()

Dispose

#Since v6.0
public void Dispose()

Dispose

#
protected virtual void Dispose(
isDisposing
)

JoinRenderThread

#Since v6.0
Join the render thread, then set to null;
public void JoinRenderThread()

StartRenderThread

#Since v6.0
Start a new render thread with given function.
public bool StartRenderThread(
threadStart,
Function to start in render thread
threadName
Name for the thread
)

StopRendering

#Since v6.0
Override StopRendering if you need to do additional tasks besides having Cancel set to true. Note: you should always base.StopRendering() in your overriding implementation.
public virtual void StopRendering()