C# Класс Fractrace.ParameterInput

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
MainParameterInput ParameterInput

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

Свойство Тип Описание
_previewMode bool
currentPic int
oldDirectory string

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

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

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

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

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

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

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

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

Stop the to the preview control assigned iter
public AbortPreview ( ) : void
Результат void

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

Die aktuellen Parameterdaten werden in die History gespeichert.
public AddToHistory ( ) : void
Результат void

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

Fill mParameter from global ParameterDict.
public Assign ( ) : void
Результат void

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

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

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

Start rendering in the small preview control.
public DrawSmallPreview ( ) : void
Результат void

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

public EnableRepaint ( bool enable ) : void
enable bool
Результат void

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

public EnableStartButton ( bool enable ) : void
enable bool
Результат void

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

Dialogabfrage vor Beendigung der Anwendung.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Результат void

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

public ParameterInput ( ) : System
Результат System

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

Wenn keine Bilddateien gespeichert wurden, wird das entsprechende Hauptverzeichnis gelöscht.
protected RemoveEmptyDirectory ( ) : void
Результат void

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

Legt die aktuellen Parameter in die History ab.
public SaveHistory ( ) : void
Результат void

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

Legt die aktuellen Parameter in die History ab.
public SaveHistory ( string fileName ) : void
fileName string
Результат void

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

Save current image to _historyImages.
protected SavePicData ( ) : void
Результат void

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

Buttons are activated/deactivated as if start where running.
public SetButtonsToStart ( ) : void
Результат void

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

Buttons are activated/deactivated as if start has just ended.
public SetButtonsToStop ( ) : void
Результат void

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

Start process of rendering.
public StartRendering ( ) : void
Результат void

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

A global variable has changed.
public UpdateFromData ( ) : void
Результат void

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

Redraw history control.
protected UpdateHistoryControl ( ) : void
Результат void

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

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

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

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

Global instance of this unique window.
public static ParameterInput,Fractrace MainParameterInput
Результат ParameterInput

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

protected bool _previewMode
Результат bool

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

used in Redraw Picture
protected int currentPic
Результат int

oldDirectory защищенное статическое свойство

protected static string oldDirectory
Результат string