Click or drag to resize

ChangeQueue Class

Base class for ChangeQueue. Generally used by render plugins to build interactive updating of scenes that are being rendered.
Inheritance Hierarchy

Namespace:  Rhino.Render.ChangeQueue
Assembly:  RhinoCommon (in RhinoCommon.dll)
public abstract class ChangeQueue : IDisposable

The ChangeQueue type exposes the following members.

Protected methodChangeQueue(Guid, CreatePreviewEventArgs)
Construct a new ChangeQueue using the given CreatePreviewEventArgs. The preview scene for these args will be used to populate the world.
Protected methodChangeQueue(Guid, UInt32, ViewInfo, Boolean) Obsolete.
Construct a new ChangeQueue from the given document
Protected methodChangeQueue(Guid, UInt32, ViewInfo, DisplayPipelineAttributes, Boolean, Boolean)
Construct a new ChangeQueue from the given document, using given display pipeline attributes.
Public propertyDisplayPipelineAttributes
Get the DisplayPipelineAttributes if available, null otherwise
Public propertyIsPreview
Return true if this ChangeQueue is created for preview rendering. No view was set for preview rendering.
Public propertyViewId
Return view ID for a RhinoDoc based ChangeQueue. Returns Guid.Empty if no view was associated with the changequeue, i.e. preview rendering.
Protected methodApplyClippingPlaneChanges
Override this when you want to handle clippingplane changes
Protected methodApplyDisplayPipelineAttributesChanges
Override if you need to react to display attribute changes. This function is needed to be able to react to different sample settings for i.e. capture preview rendering.
Protected methodApplyDynamicClippingPlaneChanges
Override this when you want to handle dynamicclippingplane changes
Protected methodApplyDynamicLightChanges
Handle dynamic light changes
Protected methodApplyDynamicObjectTransforms
Handle dynamic object transforms
Protected methodApplyEnvironmentChanges
Override this when you want to handle environment changes
Protected methodApplyGroundPlaneChanges
Override this when you want to handle groundplane changes
Protected methodApplyLightChanges
Override this when you want to handle light changes
Protected methodApplyLinearWorkflowChanges
Override this when you want to handle linear workflow changes
Protected methodApplyMaterialChanges
Override when you want to handle material changes
Protected methodApplyMeshChanges
Override this when you want to handle mesh changes.
Protected methodApplyMeshInstanceChanges
Override this when you want to handle mesh instance changes (block instances and first-time added new meshes)
Protected methodApplyRenderSettingsChanges(DisplayRenderSettings)
Override this when you want to handle render setting changes. These are for the viewport settings.
Protected methodApplyRenderSettingsChanges(RenderSettings)
Override this when you need to handle background changes (through RenderSettings)
Protected methodApplySkylightChanges
Override this when you want to handle skylight changes
Protected methodApplySunChanges
Override this when you want to handle sun changes
Protected methodApplyViewChange
Override ApplyViewChange when you want to receive changes to the view/camera
Public methodAreViewsEqual
Compare to ViewInfo instances and decide whether they are equal or not. If you need to change the way the comparison is done you can override this function and implement your custom comparison.
Protected methodBakeFor
Override this if you need to control baking behavior for textures. By default bake everything.
Protected methodBakingSize
Override this if you need to control the size of the baked bitmaps for textures. By default the value returned is 2048.
Public methodStatic memberConvertCameraBasedLightToWorld
Convert given (camera-based) light to a world-based light (in-place)
Public methodStatic memberCrcFromGuid
Helper function to get a CRC from a Guid.
Public methodCreateWorld
Calls CreateWorld with true passed.
Public methodCreateWorld(Boolean)
Signal the queue to do the initialisation of the queue, seeding it with the content currently available.
Public methodDispose
Dispose our ChangeQueue
Protected methodDispose(Boolean)
Dispose our ChangeQueue. Disposes unmanaged memory.
Public methodEnvironmentForid
Get RenderEnvironment for given RenderHash
Public methodEnvironmentIdForUsage
Get RenderEnvironment RenderHash for given usage.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Tell the ChangeQueue to flush all collected events. This can trigger a host of Apply* calls. The following is the order in which those calls get made if there are changes for that specific data type: ApplyViewChange ApplyLinearWorkflowChanges ApplyDynamicObjectTransforms ApplyDynamicLightChanges ApplyRenderSettingsChanges ApplyEnvironmentChanges (background) ApplyEnvironmentChanges (refl) ApplyEnvironmentChanges (sky) ApplySkylightChanges ApplySunChanges ApplyLightChanges ApplyMaterialChanges ApplyMeshChanges ApplyMeshInstanceChanges ApplyGroundPlaneChanges ApplyClippingPlaneChanges
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetQueueGroundPlane
Get groundplane known to the queue at the time of the Flush
Public methodGetQueueRenderSettings
Get render settings known to the queue at the time of the Flush
Public methodGetQueueSceneBoundingBox
Get the scene bounding box
Public methodGetQueueSkylight
Get skylight known to the queue at the time of the Flush
Public methodGetQueueSun
Get sun known to the queue at the time of the Flush
Public methodGetQueueView
Get view known to the queue at the time of the Flush
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMaterialFromId
Get the RenderMaterial from the ChangeQueue material cache based on RenderHash
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyBeginUpdates
Override this when you want to be notified of begin of changes
Protected methodNotifyDynamicUpdatesAreAvailable
Override this when you want to be notified dynamic updates are available
Protected methodNotifyEndUpdates
Override this when you want to be notified when change notifications have ended.
Public methodOneShot
Call Flush() once, after that automatically dispose the queue.
Protected methodProvideOriginalObject
Override ProvideOriginalObject and return true if you want original objects supplied with ChangeQueue.Mesh. This will then also allow access to the Attributes.UserData of the original object from which the Mesh was generated.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Version Information

Rhino for Windows

Supported in: 6.10
See Also