Click or drag to resize

RealtimeDisplayMode Methods

The RealtimeDisplayMode type exposes the following members.

Public methodCaptureProgress
Override to communicate the progress of a capture.
Public methodComputeViewportCrc
Compute viewport CRC for the given ViewInfo
Public methodCreateWorld
Implement if you need to handle the initial CreateWorld call initiated by the display pipeline system. Note that this is not the same as the CreateWorld call in Rhino.Render.ChangeQueue.ChangeQueue, although related.
Public methodDrawOpenGl
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetRealtimeViewport(IntPtr)
Retrieve RealtimeDisplayMode instance that the IntPtr refers to.
Public methodStatic memberGetRealtimeViewport(IntPtr, Boolean)
Retrieve RealtimeDisplayMode instance. If create is set to true then a new instance is created if not found, null is returned for false.
Public methodGetRenderSize
Get the current render resolution for the running render session.
Public methodGetType (Inherited from Object.)
Public methodGetView
Get ViewInfo that has been registered with this RealtimeDisplayMode instance.
Public methodHudAllowEditMaxPasses
Override to allow maximum pass editing. By default disabled.
Public methodHudCustomStatusText
Override to display status of the render engine.
Public methodHudLastRenderedPass
Override to communicate the last completed pass. Can be shown in the HUD
Public methodHudMaximumPasses
Override to communicate the maximum passes count currently in use for the render session. Can be shown in the HUD
Public methodHudProductName
Override to return the name of your product. This will be printed in the HUD.
Public methodHudRendererLocked
Implement to support locking in the viewport
Public methodHudRendererPaused
Implement to support pausing and resuming in the viewport
Public methodHudShow
Override if you want to hide the HUD. Shown by default
Public methodHudShowControls
Show control buttons on the realtime display HUD. By default these are shown, override this function and return false if HUD controls aren't needed.
Public methodHudShowCustomStatusText
Override to show status text in HUD. By default disabled.
Public methodHudShowMaxPasses
Override to show maximum passes in HUD. By default disabled.
Public methodHudShowPasses
Override to show current pass in HUD. By default disabled.
Public methodHudStartTime
Public methodIsCompleted
Implement to tell if your render engine has completed a frame for drawing into the viewport
Public methodIsFrameBufferAvailable
Implement to tell the render pipeline that a framebuffer is ready
Public methodIsRendererStarted
Override to tell the started state of your render engine.
Public methodLastRenderedPass
Implement to communicate last completed pass to the underlying system.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOnRenderSizeChanged
Override to restart your render engine
Public methodOpenGlVersion
Public methodPostConstruct
Override PostConstruct if you need to initialize where the underlying RealtimeDisplayMode is available. The connection is made right after RealtimeDisplayMode has been instantiated, but just before PostConstruct is called. For instance finding out OpenGL information can be done in PostConstruct.
Public methodStatic memberRegisterDisplayModes(PlugIn)
Find and register classes that derive from RealtimeDisplayMode from the given plug-in.
Public methodStatic memberRegisterDisplayModes(Assembly, Guid)
Find and register classes that derive from RealtimeDisplayMode from the given plug-in. The plug-in is found in the given assembly
Public methodStatic memberRemoveRealtimeViewport
Remove RealtimeDisplayMode instance from internal dictionary.
Public methodSetUseDrawOpenGl
During run-time change whether to use OpenGL drawing of results or not. For instance offline rendering (viewcapture* with different resolution than viewport) could use RenderWindow instead of direct OpenGL drawing.
Public methodSetView
Set ViewInfo for this RealtimeDisplayMode instance.
Public methodShowCaptureProgress
Override if you want to i.e. hide the progress dialog for capture progress.
Public methodShutdownRenderer
Override to shutdown your render engine
Public methodSignalRedraw
Use to signal the underlying pipeline a redraw is wanted. This can be used for instance when a renderer has completed a pass which should be updated in the associated viewport.
Public methodStartRenderer
Override to start your render engine. Note that before using the RenderWindow you *must* call SetSize to properly initialize the underlying DIB.
Public methodToString (Inherited from Object.)
Public methodStatic memberUnregisterDisplayModes(PlugIn)
Public methodStatic memberUnregisterDisplayModes(Assembly, Guid)
Public methodUseFastDraw
Implement and return true if you want the display pipeline to not wait for IsFramebufferAvailable during the MiddleGround draw phase. This will also tell the pipeline to draw a complete middleground pass in OpenGL.
See Also