C# Class RhinoCyclesCore.CyclesBackground

Helper class to hold background/world shader related data and state
Inheritance: IDisposable
Afficher le fichier Open project: mcneel/RhinoCycles Class Usage Examples

Méthodes publiques

Свойство Type Description
PlanarProjection bool
Xml string
background_environment Rhino.Render.RenderEnvironment
background_fill BackgroundStyle
bg CyclesTextureImage
bg_color Color
color1 Color
color2 Color
m_float_as_byte bool
modified bool
refl CyclesTextureImage
refl_color Color
reflection_environment Rhino.Render.RenderEnvironment
sky CyclesTextureImage
sky_color Color
skylight_enabled bool
skylight_environment Rhino.Render.RenderEnvironment
wallpaper CyclesTextureImage
wallpaper_solid Color

Méthodes publiques

Méthode Description
Dispose ( ) : void
HandleEnvironments ( ) : void

Read texture data and bg color from environments

HandleWallpaper ( Rhino.DocObjects.ViewInfo view ) : void

Same as HandleWallpaper(ViewInfo, bool), but re-use old scaletofit setting

HandleWallpaper ( Rhino.DocObjects.ViewInfo view, bool scaleToFit ) : void
Reset ( ) : void

Reset modified flag.

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

HandleEnvironments() public méthode

Read texture data and bg color from environments
public HandleEnvironments ( ) : void
Résultat void

HandleWallpaper() public méthode

Same as HandleWallpaper(ViewInfo, bool), but re-use old scaletofit setting
public HandleWallpaper ( Rhino.DocObjects.ViewInfo view ) : void
view Rhino.DocObjects.ViewInfo
Résultat void

HandleWallpaper() public méthode

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

Reset() public méthode

Reset modified flag.
public Reset ( ) : void
Résultat void

Property Details

PlanarProjection public_oe property

public bool PlanarProjection
Résultat bool

Xml public_oe property

public string Xml
Résultat string

background_environment public_oe property

Environment used for background (360deg environment)
public RenderEnvironment,Rhino.Render background_environment
Résultat Rhino.Render.RenderEnvironment

background_fill public_oe property

Get background style.
public BackgroundStyle background_fill
Résultat BackgroundStyle

bg public_oe property

Hold texture data for background (360deg)
public CyclesTextureImage,RhinoCyclesCore bg
Résultat CyclesTextureImage

bg_color public_oe property

Background color, used if bg is no image
public Color bg_color
Résultat Color

color1 public_oe property

Solid color or top color for gradient
public Color color1
Résultat Color

color2 public_oe property

Bottom color for gradient
public Color color2
Résultat Color

m_float_as_byte public_oe property

OpenCL doesn't properly support HDRi textures in the environment, so read them as byte textures instead.
public bool m_float_as_byte
Résultat bool

modified public_oe property

True if ChangeQueue modified the background
public bool modified
Résultat bool

refl public_oe property

Hold texture data for reflection
public CyclesTextureImage,RhinoCyclesCore refl
Résultat CyclesTextureImage

refl_color public_oe property

Reflection color, used if refl has no image
public Color refl_color
Résultat Color

reflection_environment public_oe property

Custom environment to use for reflections. If not set, use background_environment, solid color or gradient, whichever is used as background
public RenderEnvironment,Rhino.Render reflection_environment
Résultat Rhino.Render.RenderEnvironment

sky public_oe property

Hold texture data for skylight
public CyclesTextureImage,RhinoCyclesCore sky
Résultat CyclesTextureImage

sky_color public_oe property

Sky color, used if sky has no image
public Color sky_color
Résultat Color

skylight_enabled public_oe property

True if skylight is enabled
public bool skylight_enabled
Résultat bool

skylight_environment public_oe property

Custom environment used for skylight. If not set, background_environment will be used.
public RenderEnvironment,Rhino.Render skylight_environment
Résultat Rhino.Render.RenderEnvironment

wallpaper public_oe property

Hold texture data for wallpaper
public CyclesTextureImage,RhinoCyclesCore wallpaper
Résultat CyclesTextureImage

wallpaper_solid public_oe property

Solid bg color to show outside of wallpaper when not set to Stretch to Fit
public Color wallpaper_solid
Résultat Color