C# Class RhinoCyclesCore.Database.EnvironmentDatabase

Inheritance: IDisposable
Afficher le fichier Open project: mcneel/RhinoCycles

Méthodes publiques

Méthode 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 méthode

public BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view ) : void
view Rhino.DocObjects.ViewInfo
Résultat void

BackgroundWallpaper() public méthode

public BackgroundWallpaper ( Rhino.DocObjects.ViewInfo view, bool scaleToFit ) : void
view Rhino.DocObjects.ViewInfo
scaleToFit bool
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ResetBackgroundChangeQueue() public méthode

Reset background changes.
public ResetBackgroundChangeQueue ( ) : void
Résultat void

SetBackground() public méthode

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

SetBackgroundData() public méthode

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
Résultat void

SetFloatTextureAsByteTexture() public méthode

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

SetGamma() public méthode

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

SetSkylightEnabled() public méthode

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.
Résultat void