C# Class RhinoCyclesCore.Database.LightDatabase

Class responsible for recording changes from the ChangeQueue. Also record relation between Rhino light - CyclesLight - ccl.Light.
Exibir arquivo Open project: mcneel/RhinoCycles

Private Properties

Property Type Description

Public Methods

Method Description
AddLight ( CyclesLight light ) : void

Record light changes

ExistingLight ( System.Guid id ) : ccl.Light

Get existing light for given Guid.

HasChanges ( ) : bool

Return true if any changes have been recorded by the ChangeQueue

RecordLightRelation ( System.Guid id, ccl.Light cLight ) : void

Record Cycles lights that correspond to specific Rhino light ID

ResetLightChangeQueue ( ) : void

Clear out list of light changes.

Method Details

AddLight() public method

Record light changes
public AddLight ( CyclesLight light ) : void
light CyclesLight
return void

ExistingLight() public method

Get existing light for given Guid.
public ExistingLight ( System.Guid id ) : ccl.Light
id System.Guid CyclesLight.Id
return ccl.Light

HasChanges() public method

Return true if any changes have been recorded by the ChangeQueue
public HasChanges ( ) : bool
return bool

RecordLightRelation() public method

Record Cycles lights that correspond to specific Rhino light ID
public RecordLightRelation ( System.Guid id, ccl.Light cLight ) : void
id System.Guid CyclesLight.Id ( equals Rhino light ID)
cLight ccl.Light ccl.Light to save
return void

ResetLightChangeQueue() public method

Clear out list of light changes.
public ResetLightChangeQueue ( ) : void
return void