C# Класс Fractrace.ResultImageView

Control which displays the rendered image.
Наследование: System.Windows.Forms.Form, IAsyncComputationStarter
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
PublicForm ResultImageView
_inPreview bool

Защищенные свойства (Protected)

Свойство Тип Описание
_forceClosing bool
_oldParameterHashWithoutPictureArt string
_oldParameterHashWithoutPictureArtAndNavigation string
_progress double
_progressChanged bool

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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).

Приватные методы

Метод Описание
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).

Описание методов

ActivatePictureArt() публичный Метод

The surface data is analysed. The generation of the corresponding bitmap starts here .
public ActivatePictureArt ( ) : void
Результат void

CallDrawImage() публичный Метод

Call drawImage in Windows.Forms thread.
public CallDrawImage ( ) : void
Результат void

ComputationEnds() публичный Метод

Raise the event "the asynchrone computation has ended".
public ComputationEnds ( ) : void
Результат void

ComputeOneStep() публичный Метод

Create surface model.
public ComputeOneStep ( ) : void
Результат void

ComputeOneStepEnds() публичный Метод

public ComputeOneStepEnds ( ) : void
Результат void

ForceClosing() публичный Метод

Ends this application.
public ForceClosing ( ) : void
Результат void

GetImage() публичный Метод

Get internal image data.
public GetImage ( ) : Image
Результат Image

GetParameterHashWithoutPictureArt() защищенный Метод

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
Результат string

OnClosing() защищенный Метод

Dialog on closing this application.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Результат void

OnProgress() защищенный Метод

The value of the progressbar is updated.
protected OnProgress ( ) : void
Результат void

OneStepEnds() защищенный Метод

Asyncrone computation is ready (but not the generation of the bitmap).
protected OneStepEnds ( ) : void
Результат void

Progress() публичный Метод

Set computation progress in percent.
public Progress ( double progressInPercent ) : void
progressInPercent double
Результат void

ResultImageView() публичный Метод

Initializes a new instance of the ResultImageView class.
public ResultImageView ( ) : System
Результат System

SetPictureBoxSize() публичный Метод

Sets the size of the picture box and the corresponding image from settings.
public SetPictureBoxSize ( ) : void
Результат void

ShowPictureFromFile() публичный Метод

Load bitmap from the given file and displays it.
public ShowPictureFromFile ( string fileName ) : void
fileName string
Результат void

Stop() публичный Метод

Stops the surface generation.
public Stop ( ) : void
Результат void

Описание свойств

PublicForm публичное статическое свойство

Unique Instance of this Window.
public static ResultImageView,Fractrace PublicForm
Результат ResultImageView

_forceClosing защищенное свойство

If false, a warning message is shown before closing the application.
protected bool _forceClosing
Результат bool

_inPreview публичное свойство

Different handling of Progress Bar while in preview.
public bool _inPreview
Результат bool

_oldParameterHashWithoutPictureArt защищенное свойство

The Hash of the Parameters of the last rendering (but without picture art settings).
protected string _oldParameterHashWithoutPictureArt
Результат string

_oldParameterHashWithoutPictureArtAndNavigation защищенное свойство

The Hash of the Parameters of the last rendering (but without picture art settings and navigation).
protected string _oldParameterHashWithoutPictureArtAndNavigation
Результат string

_progress защищенное свойство

Progress of surface computation in percent.
protected double _progress
Результат double

_progressChanged защищенное свойство

If true, _progress has changed but progress is not updated.
protected bool _progressChanged
Результат bool