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

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

RenderThread

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

RenderWindow

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

Methods

DeleteThis

#
protected virtual void DeleteThis()

Dispose

#Since v6.0
public void Dispose()

Dispose

#
protected virtual void Dispose(bool isDisposing)
isDisposing (bool)

JoinRenderThread

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

StartRenderThread

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

StopRendering

#Since v6.0
public virtual void StopRendering()
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.