Skip to content

ChangeQueue

Public Class

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

Inheritance Hierarchy

System.Object
Rhino.Render.ChangeQueue.ChangeQueue

Namespace: Rhino.Render.ChangeQueue

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public abstract class ChangeQueue : IDisposable

The ChangeQueue type exposes the following members.

Constructors

Name

Description


Protected Method

Construct a new ChangeQueue using the given CreatePreviewEventArgs. The preview scene for these args will be used to populate the world.


Protected Method

Obsolete.

Construct a new ChangeQueue from the given document


Protected Method

Construct a new ChangeQueue from the given document, using given display pipeline attributes.


Properties

Name

Description


Public Property

Get the DisplayPipelineAttributes if available, null otherwise


Public Property

Return true if this ChangeQueue is created for preview rendering. No view was set for preview rendering.


Public Property

Return view ID for a RhinoDoc based ChangeQueue. Returns Guid.Empty if no view was associated with the changequeue, i.e. preview rendering.


Methods

Name

Description


Protected Method

Override this when you want to handle clippingplane changes


Protected Method

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 Method

Override this when you want to handle dynamicclippingplane changes


Protected Method

Handle dynamic light changes


Protected Method

Handle dynamic object transforms


Protected Method

Override this when you want to handle environment changes


Protected Method

Override this when you want to handle groundplane changes


Protected Method

Override this when you want to handle light changes


Protected Method

Override this when you want to handle linear workflow changes


Protected Method

Override when you want to handle material changes


Protected Method

Override this when you want to handle mesh changes.


Protected Method

Override this when you want to handle mesh instance changes (block instances and first-time added new meshes)


Protected Method

Override this when you want to handle render setting changes. These are for the viewport settings.


Protected Method

Override this when you need to handle background changes (through RenderSettings)


Protected Method

Override this when you want to handle skylight changes


Protected Method

Override this when you want to handle sun changes


Protected Method

Override ApplyViewChange when you want to receive changes to the view/camera


Public Method

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 Method

Override this if you need to control baking behavior for textures. By default bake everything.


Protected Method

Override this if you need to control the size of the baked bitmaps for textures. By default the value returned is 2048.


Protected Method

Override this if you need to modify the way render hashes are calcuated in the change queue. This will alter the way materials are grouped.


Public Method
Static Member

Convert given (camera-based) light to a world-based light (in-place)


Public Method
Static Member

Helper function to get a CRC from a Guid.


Public Method

Calls CreateWorld with true passed.


Public Method

Signal the queue to do the initialisation of the queue, seeding it with the content currently available.


Public Method

Dispose our ChangeQueue


Protected Method

Dispose our ChangeQueue. Disposes unmanaged memory.


Public Method

Get RenderEnvironment for given RenderHash. Can return null.


Public Method

Get the RenderEnvironment from the ChangeQueue content cache from the original instance id


Public Method

Get RenderEnvironment RenderHash for given usage.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

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 Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

Get groundplane known to the queue at the time of the Flush


Public Method

Get render settings known to the queue at the time of the Flush


Public Method

Get the scene bounding box


Public Method

Get skylight known to the queue at the time of the Flush


Public Method

Get sun known to the queue at the time of the Flush


Public Method

Get view known to the queue at the time of the Flush


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Get the RenderMaterial from the ChangeQueue material cache based on RenderHash


Public Method

Get the RenderMaterial from the ChangeQueue material cache from the original instance id


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Protected Method

Override this when you want to be notified of begin of changes


Protected Method

Override this when you want to be notified dynamic updates are available


Protected Method

Override this when you want to be notified when change notifications have ended.


Public Method

Call Flush() once, after that automatically dispose the queue.


Protected Method

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 Method

Get RenderTexture for given RenderHash. Can return null.


Public Method

Get the RenderTexture from the ChangeQueue content cache from the original instance id


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)