RenderPipeline
Provides facilities to a render plug-in for integrating with the standard Rhino render window. Also adds helper functions for processing a render scene. This is the suggested class to use when integrating a renderer with Rhino and maintaining a “standard” user interface that users will expect.
Inheritance Hierarchy
System.Object
Rhino.Render.RenderPipeline
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public abstract class RenderPipeline : IDisposable
The RenderPipeline type exposes the following members.
Constructors
Name
Description
Protected Method
RenderPipeline(RhinoDoc, RunMode, PlugIn, Size, String, RenderWindow.StandardChannels, Boolean, Boolean)
Constructs a subclass of this object on the stack in your Rhino plug-in’s Render() or RenderWindow() implementation.
Protected Method
RenderPipeline(RhinoDoc, RunMode, PlugIn, Size, String, RenderWindow.StandardChannels, Boolean, Boolean, AsyncRenderContext.)
Constructs a subclass of this object on the stack in your Rhino plug-in’s Render() or RenderWindow() implementation. This constructor should be used when a non-blocking RenderWindow is required. Note that the asynchronous render context will not be used when mode is Scripted.
Properties
Name
Description
Public Property
ConfirmationSeconds
Sets the number of seconds that need to elapse during rendering before the user is asked if the rendered image should be saved.
Public Property
PlugIn
Public Property
RenderSessionId
Get the Id associated with this render session, this is useful when looking up Rhino.Render.RenderPanels.
Methods
Name
Description
Protected Method
AddLightToScene
Protected Method
AddRenderMeshToScene
Public Method
CloseWindow
Closes the render window associated with this render instance.
Public Method
CommandResult
Protected Method
ContinueModal
Frequently called during a rendering by the frame work in order to determine if the rendering should continue.
Public Method
Dispose.
Releases all resources used by the RenderPipeline
Protected Method
Dispose(Boolean)
Releases the unmanaged resources used by the RenderPipeline and optionally releases the managed resources
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
(Overrides Object.Finalize..)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetRenderWindow.
Get the RenderWindow associated with this RenderPipeline instance. This is virtual rather than abstract for V5 compat
Public Method
GetRenderWindow(Boolean)
As GetRenderWindow(), but if withWireframeChannel is true the returned RenderWindow will have the channel added.
Public Method
GetRenderWindow(Boolean, Boolean)
As GetRenderWindow(). The parameter withWireframeChannel controls whether the returned RenderWindow will have the channel added. The parameter fromRenderViewSource controls from where the RenderSize is queried.
Public Method
GetRenderWindow(ViewportInfo, Boolean)
As GetRenderWindow(). The parameter withWireframeChannel controls whether the returned RenderWindow will have the channel added. The parameter fromRenderViewSource controls from where the RenderSize is queried. The viewportInfo instance will be used to set up wireframe channel. This is necessary for rendering different view than is currently active in the viewport
Public Method
GetRenderWindow(ViewportInfo, Boolean, Rectangle)
As GetRenderWindow(). The parameter withWireframeChannel controls whether the returned RenderWindow will have the channel added. The parameter fromRenderViewSource controls from where the RenderSize is queried. The viewportInfo instance will be used to set up wireframe channel. This is necessary for rendering different view than is currently active in the viewport
Public Method
GetRenderWindowFromRenderViewSource
Like GetRenderWindow(), but with the size for RenderWindow set from RenderViewSources if fromRenderViewSource is set to true
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
IgnoreRhinoObject
Public Method
Static Member
LocalizeRenderReturnCode
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected Method
NeedToProcessGeometryTable
Protected Method
NeedToProcessLightTable
Protected Method
OnRenderBegin
Called by the framework when it is time to start rendering, the render window will be created at this point and it is safe to start
Protected Method
OnRenderBeginQuiet
Called by the framework when it is time to start rendering quietly, there is no user interface when rendering in this mode and the default post process effects will get applied to the scene when the rendering is complete.
Protected Method
OnRenderEnd
Called by the framework when the user closes the render window or clicks on the stop button in the render window.
Protected Method
OnRenderWindowBegin
Public Method
PauseRendering
Implement to pause the current render session
Public Method
Render
Call this function to render the scene normally. The function returns when rendering is complete (or cancelled).
Protected Method
RenderEnterModalLoop
Protected Method
RenderExitModalLoop
Protected Method
RenderPreCreateWindow
Protected Method
RenderSceneWithNoMeshes
Public Method
Static Member
RenderSize.
Obsolete.
Public Method
Static Member
RenderSize(RhinoDoc)
Get the render size as specified in the ON_3dmRenderSettings. Will automatically return the correct size based on the ActiveView or custom settings.
Public Method
Static Member
RenderSize(RhinoDoc, Boolean)
Get the render size as specified in the ON_3dmRenderSettings, and from RenderSources when fromRenderSources is true.
Public Method
RenderWindow
Call this function to render the scene in a view window. The function returns when rendering is complete (or cancelled).
Public Method
ResumeRendering
Implement to resume current render session
Public Method
SaveImage
Saves the rendered image to a file. Does not prompt the user in any way.
Public Method
SetAsyncRenderContext
Public Method
SupportsPause
Override and return true if the renderer supports pausing
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)