C# Class RhinoCyclesCore.Database.EnvironmentDatabase

Inheritance: IDisposable
Exibir arquivo Open project: mcneel/RhinoCycles

Public Methods

Method Description
BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view ) : void
BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view, bool scaleToFit ) : void
Dispose ( ) : void
ResetBackgroundChangeQueue ( ) : void

Reset background changes.

SetBackground ( Rhino.Render.RenderEnvironment environment, Rhino.Render.RenderEnvironment usage ) : void

Set the RenderEnvironment for usage

SetBackgroundData ( BackgroundStyle backgroundStyle, System.Drawing color1, System.Drawing color2 ) : void

Set background style and gradient colors. Mark background as modified if any given parameter differs from original.

SetFloatTextureAsByteTexture ( bool floatAsByte ) : void

OpenCL doesn't properly support HDRi textures in the environment, so read them as byte textures instead.

SetGamma ( float gamma ) : void

Set gamma value to use in background shader creation.

SetSkylightEnabled ( bool enable ) : void

Set whether skylight is enabled or not. This will mark background as modified if it is different from old state.

Method Details

BackgroundWallpaper() public method

public BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view ) : void
view Rhino.DocObjects.ViewInfo
return void

BackgroundWallpaper() public method

public BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view, bool scaleToFit ) : void
view Rhino.DocObjects.ViewInfo
scaleToFit bool
return void

Dispose() public method

public Dispose ( ) : void
return void

ResetBackgroundChangeQueue() public method

Reset background changes.
public ResetBackgroundChangeQueue ( ) : void
return void

SetBackground() public method

Set the RenderEnvironment for usage
public SetBackground ( Rhino.Render.RenderEnvironment environment, Rhino.Render.RenderEnvironment usage ) : void
environment Rhino.Render.RenderEnvironment
usage Rhino.Render.RenderEnvironment
return void

SetBackgroundData() public method

Set background style and gradient colors. Mark background as modified if any given parameter differs from original.
public SetBackgroundData ( BackgroundStyle backgroundStyle, System.Drawing color1, System.Drawing color2 ) : void
backgroundStyle BackgroundStyle
color1 System.Drawing
color2 System.Drawing
return void

SetFloatTextureAsByteTexture() public method

OpenCL doesn't properly support HDRi textures in the environment, so read them as byte textures instead.
public SetFloatTextureAsByteTexture ( bool floatAsByte ) : void
floatAsByte bool
return void

SetGamma() public method

Set gamma value to use in background shader creation.
public SetGamma ( float gamma ) : void
gamma float
return void

SetSkylightEnabled() public method

Set whether skylight is enabled or not. This will mark background as modified if it is different from old state.
public SetSkylightEnabled ( bool enable ) : void
enable bool Set to true if enabled.
return void