IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Plot2d.NPlot_Demo Class Reference

The main demo window. This is developed in such a way that IGLib's derived classes are gradually used in place of original ones. More...

+ Inheritance diagram for IG.Plot2d.NPlot_Demo:
+ Collaboration diagram for IG.Plot2d.NPlot_Demo:

Public Member Functions

void PlotCircular ()
 
void PlotWavelet ()
 
void PlotLogAxis ()
 
void PlotLogLog ()
 
void PlotGaussian ()
 
void PlotABC ()
 
void PlotLabelAxis ()
 
void PlotParticles ()
 
void PlotQE ()
 
void PlotImage ()
 
void PlotMarkers ()
 
void PlotTest ()
 
void PlotWave ()
 
void PlotMultiHistogram ()
 
void PlotCandleSimple ()
 
void PlotMockup ()
 
void PlotProfitLoss ()
 
 NPlot_Demo ()
 

Static Public Member Functions

static void ExampleDemo ()
 Runs this demonstration. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Private Member Functions

delegate void PlotDemoDelegate ()
 delegate for plot demo functions. More...
 
float[] makeDaub (int len)
 
void PlotSincFunction ()
 
void TwissEllipse (float a, float b, float g, float e, ref float[] x, ref float[] y)
 
void Twiss (float[] x, float[] y, out float a, out float b, out float g, out float e)
 
void PlotDataSet ()
 
void PlotCandle ()
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 
void pd_PrintPage (object sender, PrintPageEventArgs ev)
 
void quitButton_Click (object sender, System.EventArgs e)
 callback for quit button click More...
 
void btnEmf_Click (object sender, EventArgs e)
 Creates an EMF from the plot and saves it into a file chosen by the user. More...
 
void ResizeHandler (object sender, System.EventArgs e)
 callback for resize event. More...
 
void nextPlotButton_Click (object sender, System.EventArgs e)
 callback for next button click More...
 
void nplotLinkLabel_LinkClicked (object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
 Callback for NPlot link label click More...
 
void printButton_Click (object sender, System.EventArgs e)
 callback for print button click More...
 
void prevPlotButton_Click (object sender, System.EventArgs e)
 Callback for prev button click. More...
 
void qeExampleTimer_Tick (object sender, System.EventArgs e)
 Callback for QE example timer tick. More...
 

Private Attributes

int currentPlot = 0
 used to keep track of the current demo plot being displayed. More...
 
PlotDemoDelegate[] PlotRoutines
 list of the plot demos, initialized in the form constructor. More...
 
System.Windows.Forms.Button quitButton
 
System.Windows.Forms.Button nextPlotButton
 
System.Windows.Forms.Button printButton
 
System.ComponentModel.IContainer components
 
PrintDocument printDocument
 
System.Windows.Forms.Button prevPlotButton
 
NPlot.Windows.PlotSurface2D plotSurface
 
System.Windows.Forms.Timer qeExampleTimer
 
System.Windows.Forms.Label exampleNumberLabel
 
double[] PlotQEExampleValues
 
TextBox infoBox
 
Button btnEmf
 
string[] PlotQEExampleTextValues
 
string _fileName = Path.GetFullPath("../../graph.emf")
 Current file name where the EMF is stored. More...
 

Detailed Description

The main demo window. This is developed in such a way that IGLib's derived classes are gradually used in place of original ones.

$A Igor Jan10;

Constructor & Destructor Documentation

IG.Plot2d.NPlot_Demo.NPlot_Demo ( )
inline

Member Function Documentation

static void IG.Plot2d.NPlot_Demo.ExampleDemo ( )
inlinestatic

Runs this demonstration.

delegate void IG.Plot2d.NPlot_Demo.PlotDemoDelegate ( )
private

delegate for plot demo functions.

void IG.Plot2d.NPlot_Demo.PlotCircular ( )
inline
void IG.Plot2d.NPlot_Demo.PlotWavelet ( )
inline
float [] IG.Plot2d.NPlot_Demo.makeDaub ( int  len)
inlineprivate
void IG.Plot2d.NPlot_Demo.PlotLogAxis ( )
inline
void IG.Plot2d.NPlot_Demo.PlotLogLog ( )
inline
void IG.Plot2d.NPlot_Demo.PlotSincFunction ( )
inlineprivate
void IG.Plot2d.NPlot_Demo.PlotGaussian ( )
inline
void IG.Plot2d.NPlot_Demo.PlotABC ( )
inline
void IG.Plot2d.NPlot_Demo.PlotLabelAxis ( )
inline
void IG.Plot2d.NPlot_Demo.PlotParticles ( )
inline
void IG.Plot2d.NPlot_Demo.TwissEllipse ( float  a,
float  b,
float  g,
float  e,
ref float[]  x,
ref float[]  y 
)
inlineprivate
void IG.Plot2d.NPlot_Demo.Twiss ( float[]  x,
float[]  y,
out float  a,
out float  b,
out float  g,
out float  e 
)
inlineprivate
void IG.Plot2d.NPlot_Demo.PlotQE ( )
inline
void IG.Plot2d.NPlot_Demo.PlotDataSet ( )
inlineprivate
void IG.Plot2d.NPlot_Demo.PlotImage ( )
inline
void IG.Plot2d.NPlot_Demo.PlotMarkers ( )
inline
void IG.Plot2d.NPlot_Demo.PlotCandle ( )
inlineprivate
void IG.Plot2d.NPlot_Demo.PlotTest ( )
inline
void IG.Plot2d.NPlot_Demo.PlotWave ( )
inline
void IG.Plot2d.NPlot_Demo.PlotMultiHistogram ( )
inline
void IG.Plot2d.NPlot_Demo.PlotCandleSimple ( )
inline
void IG.Plot2d.NPlot_Demo.PlotMockup ( )
inline
void IG.Plot2d.NPlot_Demo.PlotProfitLoss ( )
inline
override void IG.Plot2d.NPlot_Demo.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

void IG.Plot2d.NPlot_Demo.InitializeComponent ( )
inlineprivate

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

void IG.Plot2d.NPlot_Demo.pd_PrintPage ( object  sender,
PrintPageEventArgs  ev 
)
inlineprivate
void IG.Plot2d.NPlot_Demo.quitButton_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate

callback for quit button click

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.btnEmf_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Creates an EMF from the plot and saves it into a file chosen by the user.

void IG.Plot2d.NPlot_Demo.ResizeHandler ( object  sender,
System.EventArgs  e 
)
inlineprivate

callback for resize event.

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.nextPlotButton_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate

callback for next button click

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.nplotLinkLabel_LinkClicked ( object  sender,
System.Windows.Forms.LinkLabelLinkClickedEventArgs  e 
)
inlineprivate

Callback for NPlot link label click

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.printButton_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate

callback for print button click

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.prevPlotButton_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate

Callback for prev button click.

Parameters
senderunused
eunused
void IG.Plot2d.NPlot_Demo.qeExampleTimer_Tick ( object  sender,
System.EventArgs  e 
)
inlineprivate

Callback for QE example timer tick.

Parameters
senderunused
eunused

Member Data Documentation

int IG.Plot2d.NPlot_Demo.currentPlot = 0
private

used to keep track of the current demo plot being displayed.

PlotDemoDelegate [] IG.Plot2d.NPlot_Demo.PlotRoutines
private

list of the plot demos, initialized in the form constructor.

System.Windows.Forms.Button IG.Plot2d.NPlot_Demo.quitButton
private
System.Windows.Forms.Button IG.Plot2d.NPlot_Demo.nextPlotButton
private
System.Windows.Forms.Button IG.Plot2d.NPlot_Demo.printButton
private
System.ComponentModel.IContainer IG.Plot2d.NPlot_Demo.components
private
PrintDocument IG.Plot2d.NPlot_Demo.printDocument
private
System.Windows.Forms.Button IG.Plot2d.NPlot_Demo.prevPlotButton
private
NPlot.Windows.PlotSurface2D IG.Plot2d.NPlot_Demo.plotSurface
private
System.Windows.Forms.Timer IG.Plot2d.NPlot_Demo.qeExampleTimer
private
System.Windows.Forms.Label IG.Plot2d.NPlot_Demo.exampleNumberLabel
private
double [] IG.Plot2d.NPlot_Demo.PlotQEExampleValues
private
TextBox IG.Plot2d.NPlot_Demo.infoBox
private
Button IG.Plot2d.NPlot_Demo.btnEmf
private
string [] IG.Plot2d.NPlot_Demo.PlotQEExampleTextValues
private
string IG.Plot2d.NPlot_Demo._fileName = Path.GetFullPath("../../graph.emf")
private

Current file name where the EMF is stored.


The documentation for this class was generated from the following file: