C# 클래스 Fractrace.ResultImageView

Control which displays the rendered image.
상속: System.Windows.Forms.Form, IAsyncComputationStarter
파일 보기 프로젝트 열기: trafassel/Gestaltlupe 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PublicForm ResultImageView
_inPreview bool

보호된 프로퍼티들

프로퍼티 타입 설명
_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