C# Class Fractrace.PictureArt.FastPreviewRenderer

Gestaltlupe default Renderer for fast previews.
Inheritance: Fractrace.PictureArt.ScienceRendererBase
Show file Open project: trafassel/Gestaltlupe Class Usage Examples

Public Methods

Method Description
FastPreviewRenderer ( Fractrace.DataTypes.PictureData pData ) : System

Initialisation.

Protected Methods

Method Description
CreateShadowInfo ( ) : void

Schatteninformationen, wenn das Licht von oben rechts kommen, werden erzeugt. Vorbereitet für weitere Lichtquellen.

CreateSmoothDeph ( ) : void

Lokale Tiefeninformationen werden erzeugt.

CreateSmoothNormales ( ) : void

Die Oberflächennormalen werden abgerundet.

CreateStatisticInfo ( ) : void

Creates boundingbox infos.

DarkenPlane ( ) : void

Die Gestalt wird nach hinten abgedunkelt.

DrawPlane ( ) : void

Erzeugt das Bild im rgb-Format

GetAmbientValue ( double ypos ) : double

Get the value, which is used in computing the field of view.

GetLight ( Fractrace.Geometry.Vec3 normal ) : Fractrace.Geometry.Vec3

Liefert die Farbe der Oberfläche entsprechend der Normalen.

GetRgb ( int x, int y ) : Fractrace.Geometry.Vec3

Get the color information of the bitmap at (x,y)

GetRgbAt ( int x, int y ) : Fractrace.Geometry.Vec3

Liefert die Farbe zum Punkt x,y

IsInSharpShadow ( Fractrace.Geometry.Vec3 point, Fractrace.Geometry.Vec3 ray, double rayLenght, bool inverse, int maxIntersections, int steps ) : int

Test, if the given point is inside the sharp shadow. Returns the number of intersection with the ray and the fractal, but not more than maxIntersections.

NormalizePlane ( ) : void

Weißabgleich und Helligkeitskorrektur.

PreCalculate ( ) : void

Allgemeine Informationen werden erzeugt

SetSmoothDeph ( double sdeph1, double sdeph2 ) : void

Tiefeninformationen werden weicher gemacht.

SmoothEmptyPixel ( ) : void

Bildpunkte, die auf Grund fehlender Informationen nicht geladen werden konnten, werden aus den Umgebungsinformationen gemittelt.

SmoothPlane ( ) : void

Compute field of view.

Method Details

CreateShadowInfo() protected method

Schatteninformationen, wenn das Licht von oben rechts kommen, werden erzeugt. Vorbereitet für weitere Lichtquellen.
protected CreateShadowInfo ( ) : void
return void

CreateSmoothDeph() protected method

Lokale Tiefeninformationen werden erzeugt.
protected CreateSmoothDeph ( ) : void
return void

CreateSmoothNormales() protected method

Die Oberflächennormalen werden abgerundet.
protected CreateSmoothNormales ( ) : void
return void

CreateStatisticInfo() protected method

Creates boundingbox infos.
protected CreateStatisticInfo ( ) : void
return void

DarkenPlane() protected method

Die Gestalt wird nach hinten abgedunkelt.
protected DarkenPlane ( ) : void
return void

DrawPlane() protected method

Erzeugt das Bild im rgb-Format
protected DrawPlane ( ) : void
return void

FastPreviewRenderer() public method

Initialisation.
public FastPreviewRenderer ( Fractrace.DataTypes.PictureData pData ) : System
pData Fractrace.DataTypes.PictureData
return System

GetAmbientValue() protected method

Get the value, which is used in computing the field of view.
protected GetAmbientValue ( double ypos ) : double
ypos double
return double

GetLight() protected method

Liefert die Farbe der Oberfläche entsprechend der Normalen.
protected GetLight ( Fractrace.Geometry.Vec3 normal ) : Fractrace.Geometry.Vec3
normal Fractrace.Geometry.Vec3
return Fractrace.Geometry.Vec3

GetRgb() protected method

Get the color information of the bitmap at (x,y)
protected GetRgb ( int x, int y ) : Fractrace.Geometry.Vec3
x int
y int
return Fractrace.Geometry.Vec3

GetRgbAt() protected method

Liefert die Farbe zum Punkt x,y
protected GetRgbAt ( int x, int y ) : Fractrace.Geometry.Vec3
x int
y int
return Fractrace.Geometry.Vec3

IsInSharpShadow() protected method

Test, if the given point is inside the sharp shadow. Returns the number of intersection with the ray and the fractal, but not more than maxIntersections.
protected IsInSharpShadow ( Fractrace.Geometry.Vec3 point, Fractrace.Geometry.Vec3 ray, double rayLenght, bool inverse, int maxIntersections, int steps ) : int
point Fractrace.Geometry.Vec3
ray Fractrace.Geometry.Vec3
rayLenght double
inverse bool
maxIntersections int
steps int
return int

NormalizePlane() protected method

Weißabgleich und Helligkeitskorrektur.
protected NormalizePlane ( ) : void
return void

PreCalculate() protected method

Allgemeine Informationen werden erzeugt
protected PreCalculate ( ) : void
return void

SetSmoothDeph() protected method

Tiefeninformationen werden weicher gemacht.
protected SetSmoothDeph ( double sdeph1, double sdeph2 ) : void
sdeph1 double
sdeph2 double
return void

SmoothEmptyPixel() protected method

Bildpunkte, die auf Grund fehlender Informationen nicht geladen werden konnten, werden aus den Umgebungsinformationen gemittelt.
protected SmoothEmptyPixel ( ) : void
return void

SmoothPlane() protected method

Compute field of view.
protected SmoothPlane ( ) : void
return void