C# Class Fractrace.ParameterInput

Mostra file Open project: trafassel/Gestaltlupe Class Usage Examples

Public Properties

Property Type Description
MainParameterInput ParameterInput

Protected Properties

Property Type Description
_previewMode bool
currentPic int
oldDirectory string

Public Methods

Method Description
AbortPreview ( ) : void

Stop the to the preview control assigned iter

AddToHistory ( ) : void

Die aktuellen Parameterdaten werden in die History gespeichert.

Assign ( ) : void

Fill mParameter from global ParameterDict.

ComputePreview ( ) : void
DrawSmallPreview ( ) : void

Start rendering in the small preview control.

EnableRepaint ( bool enable ) : void
EnableStartButton ( bool enable ) : void
ParameterInput ( ) : System
SaveHistory ( ) : void

Legt die aktuellen Parameter in die History ab.

SaveHistory ( string fileName ) : void

Legt die aktuellen Parameter in die History ab.

SetButtonsToStart ( ) : void

Buttons are activated/deactivated as if start where running.

SetButtonsToStop ( ) : void

Buttons are activated/deactivated as if start has just ended.

StartRendering ( ) : void

Start process of rendering.

UpdateFromData ( ) : void

A global variable has changed.

UpdatePictureArtInSmallPreview ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void

Dialogabfrage vor Beendigung der Anwendung.

RemoveEmptyDirectory ( ) : void

Wenn keine Bilddateien gespeichert wurden, wird das entsprechende Hauptverzeichnis gelöscht.

SavePicData ( ) : void

Save current image to _historyImages.

UpdateHistoryControl ( ) : void

Redraw history control.

Private Methods

Method Description
BtnSettings_Click ( object sender, System e ) : void
ComputationEnds ( ) : void
Exemplar_EventChanged ( object source, ParameterDictChangedEventArgs e ) : void

A global variable has changed.

ForceRedraw ( ) : void

Redraw result image.

InitDefaultScenesPictures ( ) : void

Gernerate buttons to load some default scenes.

InitLastSessionsPictures ( ) : void

Show images of last Sessions.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LoadConfiguration ( string fileName ) : void

Load project file.

LoadFromHistory ( ) : void

Activate time _history.CurrentTime.

LoadScene ( string dataFileName ) : void

Load Gestaltlupe project.

ParameterDictControl1_ElementChanged ( string name, string value ) : void
ParameterValuesChanged ( ) : void

Some parameter values has changed.

PictureBox_Click ( object sender, EventArgs e ) : void
Preview1_MouseWheel ( object sender, System.Drawing.MouseEventArgs e ) : void
Preview1_ProgressEvent ( double progress ) : void
PreviewButton_Click ( object sender, EventArgs e ) : void

Handles the Click event of the preview1 control.

PreviewButton_Click1 ( object sender, EventArgs e ) : void
PreviewButton_MouseDown ( object sender, System.Drawing.MouseEventArgs e ) : void
PreviewButton_MouseDown1 ( object sender, System.Drawing.MouseEventArgs e ) : void
PreviewButton_MouseLeave ( object sender, EventArgs e ) : void
PreviewButton_MouseLeave1 ( object sender, EventArgs e ) : void
PreviewButton_MouseMove ( object sender, System.Drawing.MouseEventArgs e ) : void
PreviewButton_MouseMove1 ( object sender, System.Drawing.MouseEventArgs e ) : void
PreviewButton_MouseUp ( object sender, System.Drawing.MouseEventArgs e ) : void
PreviewButton_MouseUp1 ( object sender, System.Drawing.MouseEventArgs e ) : void
SetSmallPreviewSize ( ) : void

ShowPicture ( string parameterdictFile ) : void

Sucht das passende Bild zur Parameterdict-Datei und zeigt es (wenn die Suche erfolgreich war) in Fenster1 an.

Stop ( ) : void
Timer1_Tick ( object sender, EventArgs e ) : void
UpdateCurrentTab ( ) : void

Update selected tab control.

UpdateFrontView ( ) : void
UpdateHistoryPic ( ) : bool

Load old image. Return true, if such image exists.

UpdateNavigateControl ( ) : void
btBulk_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btBulk control. The formula parameters and the formula itself are combined in a compact text, which can later be copied into the formula text window to get the current formula configuration.

btnAddToAnimation_Click ( object sender, EventArgs e ) : void
btnAnimation_Click ( object sender, EventArgs e ) : void
btnAppend_Click ( object sender, EventArgs e ) : void

Add file data to the current data.

btnBack_Click_1 ( object sender, EventArgs e ) : void

Load last history entry.

btnBatchExport_Click ( object sender, EventArgs e ) : void
btnCreateCompleteBulk_Click ( object sender, EventArgs e ) : void

The formula parameters, the formula itself and diplay settings are combined in a compact text, which can later be copied into the formula text window to get the current formula configuration.

btnDocumentation_Click ( object sender, EventArgs e ) : void
btnDocumentation_Click_1 ( object sender, EventArgs e ) : void
btnExport_Click ( object sender, EventArgs e ) : void
btnExtras_Click ( object sender, EventArgs e ) : void
btnFormat_Click ( object sender, EventArgs e ) : void
btnLastStep_Click ( object sender, EventArgs e ) : void

Vorgängerschritt wurde ausgewählt.

btnLoadExamples_Click ( object sender, EventArgs e ) : void
btnLoadLast_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnLoadLast control. Load last saved project.

btnLoad_Click ( object sender, EventArgs e ) : void

Load scene.

btnNextStep_Click ( object sender, EventArgs e ) : void

Load next history entry.

btnPause_Click ( object sender, EventArgs e ) : void

Berechnung anhalten

btnPred_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnPred control. Go to the last entry with generated bitmap.

btnPreview_Click ( object sender, EventArgs e ) : void

Compute preview.

btnSaveFormula_Click ( object sender, EventArgs e ) : void

Save only Gestalt parameters.

btnSaveImage_Click ( object sender, EventArgs e ) : void
btnSaveInHistory_Click ( object sender, EventArgs e ) : void

History wird um die aktuellen Daten erweitert.

btnSave_Click ( object sender, EventArgs e ) : void

Save ParameterDict.Current as *.gestalt file.

btnShowDocumentation_Click ( object sender, EventArgs e ) : void

Display the documentation.

btnStart_Click ( object sender, EventArgs e ) : void
btnStopAnimation_Click_1 ( object sender, EventArgs e ) : void
button10_Click ( object sender, EventArgs e ) : void

Show view parameters.

button1_Click ( object sender, EventArgs e ) : void

Load next history entry.

button1_Click_1 ( object sender, EventArgs e ) : void

Activate next history entry.

button27_Click ( object sender, EventArgs e ) : void

Berechnung stoppen

button2_Click ( object sender, EventArgs e ) : void
button4_Click ( object sender, EventArgs e ) : void
button5_Click ( object sender, EventArgs e ) : void

Set history to first history entry.

button6_Click ( object sender, EventArgs e ) : void

Set history to history entry with max time.

button7_Click ( object sender, EventArgs e ) : void

Show navigation tab.

button8_Click ( object sender, EventArgs e ) : void

Show material tab.

button9_Click ( object sender, EventArgs e ) : void

Formula button.

preview1_Clicked ( ) : void

User has click on Preview1 Control.

preview1_RenderingEnds ( ) : void

Erstellung des Images im Vorschaufenster wurde beendet.

splitContainer1_Panel1_ClientSizeChanged ( object sender, EventArgs e ) : void

Höhe wurde verschoben. Breite der Preview Controls setzen:

tabControl1_SelectedIndexChanged ( object sender, EventArgs e ) : void

Tab-Auswahl

tabControl2_SelectedIndexChanged ( object sender, EventArgs e ) : void
tbCurrentStep_TextChanged ( object sender, EventArgs e ) : void
timer1_Tick ( object sender, EventArgs e ) : void

Method Details

AbortPreview() public method

Stop the to the preview control assigned iter
public AbortPreview ( ) : void
return void

AddToHistory() public method

Die aktuellen Parameterdaten werden in die History gespeichert.
public AddToHistory ( ) : void
return void

Assign() public method

Fill mParameter from global ParameterDict.
public Assign ( ) : void
return void

ComputePreview() public method

public ComputePreview ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DrawSmallPreview() public method

Start rendering in the small preview control.
public DrawSmallPreview ( ) : void
return void

EnableRepaint() public method

public EnableRepaint ( bool enable ) : void
enable bool
return void

EnableStartButton() public method

public EnableStartButton ( bool enable ) : void
enable bool
return void

OnClosing() protected method

Dialogabfrage vor Beendigung der Anwendung.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

ParameterInput() public method

public ParameterInput ( ) : System
return System

RemoveEmptyDirectory() protected method

Wenn keine Bilddateien gespeichert wurden, wird das entsprechende Hauptverzeichnis gelöscht.
protected RemoveEmptyDirectory ( ) : void
return void

SaveHistory() public method

Legt die aktuellen Parameter in die History ab.
public SaveHistory ( ) : void
return void

SaveHistory() public method

Legt die aktuellen Parameter in die History ab.
public SaveHistory ( string fileName ) : void
fileName string
return void

SavePicData() protected method

Save current image to _historyImages.
protected SavePicData ( ) : void
return void

SetButtonsToStart() public method

Buttons are activated/deactivated as if start where running.
public SetButtonsToStart ( ) : void
return void

SetButtonsToStop() public method

Buttons are activated/deactivated as if start has just ended.
public SetButtonsToStop ( ) : void
return void

StartRendering() public method

Start process of rendering.
public StartRendering ( ) : void
return void

UpdateFromData() public method

A global variable has changed.
public UpdateFromData ( ) : void
return void

UpdateHistoryControl() protected method

Redraw history control.
protected UpdateHistoryControl ( ) : void
return void

UpdatePictureArtInSmallPreview() public method

public UpdatePictureArtInSmallPreview ( ) : void
return void

Property Details

MainParameterInput public_oe static_oe property

Global instance of this unique window.
public static ParameterInput,Fractrace MainParameterInput
return ParameterInput

_previewMode protected_oe property

protected bool _previewMode
return bool

currentPic protected_oe property

used in Redraw Picture
protected int currentPic
return int

oldDirectory protected_oe static_oe property

protected static string oldDirectory
return string