C# Class Fractrace.ResultImageView

Control which displays the rendered image.
Inheritance: System.Windows.Forms.Form, IAsyncComputationStarter
ファイルを表示 Open project: trafassel/Gestaltlupe Class Usage Examples

Public Properties

Property Type Description
PublicForm ResultImageView
_inPreview bool

Protected Properties

Property Type Description
_forceClosing bool
_oldParameterHashWithoutPictureArt string
_oldParameterHashWithoutPictureArtAndNavigation string
_progress double
_progressChanged bool

Private Properties

Property Type Description
DrawPicture void
ImageCreationEnds void
ImageCreationStarts void
IsFirstSubStepRendering bool
IsSubStepRendering bool
SetZoom void
StopRunningPictureArt void
drawImage void
pictureBox1_MouseDown void
pictureBox1_MouseMove void
pictureBox1_MouseUp void
timer1_Tick void

Public Methods

Method Description
ActivatePictureArt ( ) : void

The surface data is analysed. The generation of the corresponding bitmap starts here .

CallDrawImage ( ) : void

Call drawImage in Windows.Forms thread.

ComputationEnds ( ) : void

Raise the event "the asynchrone computation has ended".

ComputeOneStep ( ) : void

Create surface model.

ComputeOneStepEnds ( ) : void
ForceClosing ( ) : void

Ends this application.

GetImage ( ) : Image

Get internal image data.

Progress ( double progressInPercent ) : void

Set computation progress in percent.

ResultImageView ( ) : System

Initializes a new instance of the ResultImageView class.

SetPictureBoxSize ( ) : void

Sets the size of the picture box and the corresponding image from settings.

ShowPictureFromFile ( string fileName ) : void

Load bitmap from the given file and displays it.

Stop ( ) : void

Stops the surface generation.

Protected Methods

Method Description
GetParameterHashWithoutPictureArt ( ) : string

Computes the hash of all Parameter entries which are used in rendering, but not in picture art. The following categories are not used: Composite, Computation.NoOfThreads

OnClosing ( CancelEventArgs e ) : void

Dialog on closing this application.

OnProgress ( ) : void

The value of the progressbar is updated.

OneStepEnds ( ) : void

Asyncrone computation is ready (but not the generation of the bitmap).

Private Methods

Method Description
DrawPicture ( ) : void

Create PictureArt and use it to paint the current picture according to iter.

ImageCreationEnds ( ) : void
ImageCreationStarts ( ) : void
IsFirstSubStepRendering ( ) : bool

Return true, if bitmap creation is for first substep.

IsSubStepRendering ( ) : bool

Return true, if bitmap creation is for substeps only.

SetZoom ( ) : void

Activate zooming.

StopRunningPictureArt ( ) : void

Kill running PictureArt process.

drawImage ( ) : void

Refresh view. This is necessary to display pictureBox1.Image.

pictureBox1_MouseDown ( object sender, MouseEventArgs e ) : void

Save mouse position for later use in zoom.

pictureBox1_MouseMove ( object sender, MouseEventArgs e ) : void

Save mouse position for later use in zoom.

pictureBox1_MouseUp ( object sender, MouseEventArgs e ) : void

Transfer of zooming parameters ends.

timer1_Tick ( object sender, EventArgs e ) : void

Try to update in background (still with some sync problems).

Method Details

ActivatePictureArt() public method

The surface data is analysed. The generation of the corresponding bitmap starts here .
public ActivatePictureArt ( ) : void
return void

CallDrawImage() public method

Call drawImage in Windows.Forms thread.
public CallDrawImage ( ) : void
return void

ComputationEnds() public method

Raise the event "the asynchrone computation has ended".
public ComputationEnds ( ) : void
return void

ComputeOneStep() public method

Create surface model.
public ComputeOneStep ( ) : void
return void

ComputeOneStepEnds() public method

public ComputeOneStepEnds ( ) : void
return void

ForceClosing() public method

Ends this application.
public ForceClosing ( ) : void
return void

GetImage() public method

Get internal image data.
public GetImage ( ) : Image
return Image

GetParameterHashWithoutPictureArt() protected method

Computes the hash of all Parameter entries which are used in rendering, but not in picture art. The following categories are not used: Composite, Computation.NoOfThreads
protected GetParameterHashWithoutPictureArt ( ) : string
return string

OnClosing() protected method

Dialog on closing this application.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnProgress() protected method

The value of the progressbar is updated.
protected OnProgress ( ) : void
return void

OneStepEnds() protected method

Asyncrone computation is ready (but not the generation of the bitmap).
protected OneStepEnds ( ) : void
return void

Progress() public method

Set computation progress in percent.
public Progress ( double progressInPercent ) : void
progressInPercent double
return void

ResultImageView() public method

Initializes a new instance of the ResultImageView class.
public ResultImageView ( ) : System
return System

SetPictureBoxSize() public method

Sets the size of the picture box and the corresponding image from settings.
public SetPictureBoxSize ( ) : void
return void

ShowPictureFromFile() public method

Load bitmap from the given file and displays it.
public ShowPictureFromFile ( string fileName ) : void
fileName string
return void

Stop() public method

Stops the surface generation.
public Stop ( ) : void
return void

Property Details

PublicForm public_oe static_oe property

Unique Instance of this Window.
public static ResultImageView,Fractrace PublicForm
return ResultImageView

_forceClosing protected_oe property

If false, a warning message is shown before closing the application.
protected bool _forceClosing
return bool

_inPreview public_oe property

Different handling of Progress Bar while in preview.
public bool _inPreview
return bool

_oldParameterHashWithoutPictureArt protected_oe property

The Hash of the Parameters of the last rendering (but without picture art settings).
protected string _oldParameterHashWithoutPictureArt
return string

_oldParameterHashWithoutPictureArtAndNavigation protected_oe property

The Hash of the Parameters of the last rendering (but without picture art settings and navigation).
protected string _oldParameterHashWithoutPictureArtAndNavigation
return string

_progress protected_oe property

Progress of surface computation in percent.
protected double _progress
return double

_progressChanged protected_oe property

If true, _progress has changed but progress is not updated.
protected bool _progressChanged
return bool