C# Class RhinoCyclesCore.Database.ChangeDatabase

Inheritance: ChangeQueue
Datei anzeigen Open project: mcneel/RhinoCycles Class Usage Examples

Public Methods

Method Description
HandleMeshData ( System.Guid meshguid, int meshIndex, Rhino meshdata ) : void
HasChanges ( ) : bool

Tell if any changes have been recorded by the ChangeQueue mechanism since the last flush.

ResetChangeQueue ( ) : void

Reset changequeue lists and dictionaries. Generally this is done once all changes have been handled, and thus no longer needed.

UploadCameraChanges ( ) : void

Upload camera (viewport) changes to Cycles.

UploadDynamicObjectTransforms ( ) : void

Handle dynamic object transforms

UploadEnvironmentChanges ( ) : void
UploadGammaChanges ( ) : void
UploadLightChanges ( ) : void

Upload all light changes to the Cycles render engine

UploadLinearWorkflowChanges ( ) : void
UploadMeshChanges ( ) : void

Upload mesh changes

UploadObjectChanges ( ) : void

Upload object changes

UploadObjectShaderChanges ( ) : void

Change shaders on objects and their meshes

UploadRenderSettingsChanges ( ) : void

Notify interested clients of i.e. sample count changes.

UploadShaderChanges ( ) : void

Upload changes to shaders

Protected Methods

Method Description
ApplyDynamicLightChanges ( List dynamicLightChanges ) : void
ApplyDynamicObjectTransforms ( List dynamicObjectTransforms ) : void

Handle dynamic object transforms

ApplyEnvironmentChanges ( Rhino.Render.RenderEnvironment usage ) : void

Handle environment changes

ApplyGroundPlaneChanges ( Rhino.Render.ChangeQueue.GroundPlane gp ) : void

Handle ground plane changes.

ApplyLightChanges ( List lightChanges ) : void

Handle light changes

ApplyLinearWorkflowChanges ( Rhino lw ) : void
ApplyMaterialChanges ( List mats ) : void

Handle changes in materials to create (or re-use) shaders.

ApplyMeshChanges ( System.Guid deleted, List added ) : void

Handle mesh changes

ApplyMeshInstanceChanges ( List deleted, List addedOrChanged ) : void
ApplyRenderSettingsChanges ( Rhino.Render.RenderSettings rs ) : void

Private Methods

Method Description
ChangeDatabase ( System.Guid pluginId, RenderEngine engine, Rhino.Render.CreatePreviewEventArgs createPreviewEventArgs ) : System

Constructor for our changequeue implementation

ChangeDatabase ( System.Guid pluginId, RenderEngine engine, uint doc, Rhino.DocObjects.ViewInfo view, bool modal ) : System

Constructor for our changequeue implementation

SetFloatTextureAsByteTexture ( bool floatAsByte ) : void

This should be called with true to read texture as byte image instead of float images. This is necessary currently for OpenCL environment textures, as HDRi isn't properly supported there.

TriggerFilmUpdateTagged ( ) : void
TriggerLightShaderChanged ( CyclesLight rcLightShader, ccl.Shader cclShader ) : void
TriggerLinearWorkflowUploaded ( ) : void
TriggerMaterialShaderChanged ( CyclesShader rcShader, ccl.Shader cclShader ) : void

Method Details

ApplyDynamicLightChanges() protected method

protected ApplyDynamicLightChanges ( List dynamicLightChanges ) : void
dynamicLightChanges List
return void

ApplyDynamicObjectTransforms() protected method

Handle dynamic object transforms
protected ApplyDynamicObjectTransforms ( List dynamicObjectTransforms ) : void
dynamicObjectTransforms List List of DynamicObject transforms
return void

ApplyEnvironmentChanges() protected method

Handle environment changes
protected ApplyEnvironmentChanges ( Rhino.Render.RenderEnvironment usage ) : void
usage Rhino.Render.RenderEnvironment
return void

ApplyGroundPlaneChanges() protected method

Handle ground plane changes.
protected ApplyGroundPlaneChanges ( Rhino.Render.ChangeQueue.GroundPlane gp ) : void
gp Rhino.Render.ChangeQueue.GroundPlane
return void

ApplyLightChanges() protected method

Handle light changes
protected ApplyLightChanges ( List lightChanges ) : void
lightChanges List
return void

ApplyLinearWorkflowChanges() protected method

protected ApplyLinearWorkflowChanges ( Rhino lw ) : void
lw Rhino
return void

ApplyMaterialChanges() protected method

Handle changes in materials to create (or re-use) shaders.
protected ApplyMaterialChanges ( List mats ) : void
mats List List of CQMaterial
return void

ApplyMeshChanges() protected method

Handle mesh changes
protected ApplyMeshChanges ( System.Guid deleted, List added ) : void
deleted System.Guid
added List
return void

ApplyMeshInstanceChanges() protected method

protected ApplyMeshInstanceChanges ( List deleted, List addedOrChanged ) : void
deleted List
addedOrChanged List
return void

ApplyRenderSettingsChanges() protected method

protected ApplyRenderSettingsChanges ( Rhino.Render.RenderSettings rs ) : void
rs Rhino.Render.RenderSettings
return void

HandleMeshData() public method

public HandleMeshData ( System.Guid meshguid, int meshIndex, Rhino meshdata ) : void
meshguid System.Guid
meshIndex int
meshdata Rhino
return void

HasChanges() public method

Tell if any changes have been recorded by the ChangeQueue mechanism since the last flush.
public HasChanges ( ) : bool
return bool

ResetChangeQueue() public method

Reset changequeue lists and dictionaries. Generally this is done once all changes have been handled, and thus no longer needed.
public ResetChangeQueue ( ) : void
return void

UploadCameraChanges() public method

Upload camera (viewport) changes to Cycles.
public UploadCameraChanges ( ) : void
return void

UploadDynamicObjectTransforms() public method

Handle dynamic object transforms
public UploadDynamicObjectTransforms ( ) : void
return void

UploadEnvironmentChanges() public method

public UploadEnvironmentChanges ( ) : void
return void

UploadGammaChanges() public method

public UploadGammaChanges ( ) : void
return void

UploadLightChanges() public method

Upload all light changes to the Cycles render engine
public UploadLightChanges ( ) : void
return void

UploadLinearWorkflowChanges() public method

public UploadLinearWorkflowChanges ( ) : void
return void

UploadMeshChanges() public method

Upload mesh changes
public UploadMeshChanges ( ) : void
return void

UploadObjectChanges() public method

Upload object changes
public UploadObjectChanges ( ) : void
return void

UploadObjectShaderChanges() public method

Change shaders on objects and their meshes
public UploadObjectShaderChanges ( ) : void
return void

UploadRenderSettingsChanges() public method

Notify interested clients of i.e. sample count changes.
public UploadRenderSettingsChanges ( ) : void
return void

UploadShaderChanges() public method

Upload changes to shaders
public UploadShaderChanges ( ) : void
return void