IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Base class for script classes with 2D graphics examples. More...
Public Member Functions | |
ScriptGraphics2dBase () | |
override void | Script_AddCommands (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings) |
Adds commands to the internal interpreter. More... | |
string | TestMyTest (string[] arguments) |
Test action. More... | |
virtual string | TestCustom (string[] arguments) |
Custom test. More... | |
virtual string | TestGraph (string[] arguments) |
Demonstration of various 3D plots. More... | |
Public Member Functions inherited from IG.Lib.LoadableScriptBase | |
LoadableScriptBase () | |
Argument-less constructor. If argument-less constructor is called then initialization is not performed and will be performed later. More... | |
string | Run (string[] arguments) |
Performs the action of this object. Override this in derived classes! More... | |
void | Initialize (string[] arguments) |
Initializes the object. If not called explicitly, this method is automatically called at the first call to the Run method. More... | |
virtual string | Script_DefaultInitialize (string[] arguments) |
Default initialization method for scripts. More... | |
virtual string | Script_DefaultRun (string[] arguments) |
Default run method for the script. Can be used when only installed commands are run by hte script. More... | |
virtual ICommandLineApplicationInterpreter | Script_CreateInterpreterWithoutCommands () |
Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More... | |
delegate string | Script_CommandDelegate (string[] args) |
Delegate for commands that are installed on script's internal interpreter (property Script_Interpreter). More... | |
void | Script_AddCommand (string commandName, Script_CommandDelegate command, string helpString) |
Adds a new internal script command under specified name to the internal interpreter of the current script object. More... | |
virtual void | Script_AddCommand (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings, string commandName, Script_CommandDelegate command, string helpString) |
Adds a new internal script command under specified name to the internal interpreter of the current script object. More... | |
string | Script_GetHelpString (string scriptCommandName) |
Returns help string for internal script command with specified name, or null if help string is not installed for such a command. More... | |
void | Script_PrintCommandsHelp () |
Prits help for the installed internal commands of the script. More... | |
virtual bool | Script_ContainsCommand (string commandName) |
Returns true if the internal script's interpreter contains a command with specified name, false otherwise. More... | |
virtual bool | Script_ContainsScriptCommand (string commandName) |
Returns true if the specified command is script command (i.e. its first argument is command-name and it is run through the Script_CommandAdapter object). More... | |
virtual void | Script_RemoveCommand (string commandName) |
Removes the specified internal script command from the internal interpreter of the current scripting object. More... | |
virtual void | Script_RemoveAllCommands () |
Removes ALL internal script commands from the internal interpreter of the current scripting object. More... | |
string | Script_Run (string[] arguments) |
Runs internal script command. More... | |
string | Script_Run (string commandName, params string[] otherArguments) |
Runs internal script command. More... | |
virtual void | Script_PrintArguments (string messageString, string[] arguments) |
Prints the specified array of string arguments (usually passed as command-line arguments). More... | |
Public Attributes | |
const string | ConstMyTest = "MyTest" |
Name of the command that performs my custom test. More... | |
const string | ConstHelpMyTest = "Custom test function." |
const string | ConstCustom = "Custom" |
Name of the command for custom test. More... | |
const string | ConstHelpCustom = "Custom test." |
const string | ConstGraph = "Graph" |
Name of the 2d graphs tests. More... | |
const string | ConstHelpGraph = "Various 2D graphs. Run with ? argument to see which tests are available." |
Public Attributes inherited from IG.Lib.LoadableScriptBase | |
const string | ConstDefaultHelp = "Help" |
Default command name for help. More... | |
const string | ConstHelpDefaultUniversal = "?" |
Universal name of the help command. More... | |
const string | ConstDefaultTestScrip = "TestScript" |
Default command name for test method. More... | |
Protected Member Functions | |
override void | InitializeThis (string[] arguments) |
Initializes the current object. More... | |
override string | RunThis (string[] arguments) |
Runs action of the current object. More... | |
void | AddGraphCommand (string testName, CommandMethod surfaceMethod, string surfaceHelp) |
Adds a new command for a 2D graph test. More... | |
virtual void | InitTestGraph () |
Initializes commands for 3d graphic tests. More... | |
virtual string | RunTestGraph (string[] args) |
Runs demonstration of surface plots according to arguments. More... | |
Protected Member Functions inherited from IG.Lib.LoadableScriptBase | |
delegate string | CommandMethod (string commandName, string[] args) |
Delegate for internal command methods. More... | |
ICommandLineApplicationInterpreter | Script_CreateInterpreter () |
Creates and returns an interpreter that can be used as script's internal interpreter for running script's commands. More... | |
virtual string | Script_CommandHelp (string[] arguments) |
Prints help. More... | |
virtual string | Script_CommandTestScript (string[] arguments) |
Prints help. More... | |
Protected Attributes | |
List< string > | TestGraphNames = new List<string>() |
List of installed 2D graph test names. More... | |
List< string > | TestGraphHelpStrings = new List<string>() |
List of help strings corresponding to installed 2D graph tests. More... | |
List< CommandMethod > | TestGraphMethods = new List<CommandMethod>() |
List of methods used to perform 2D graph tests. More... | |
Protected Attributes inherited from IG.Lib.LoadableScriptBase | |
string | _embeddedCommandName = null |
int | _outputLevel = DefaultOutputLevel |
ICommandLineApplicationInterpreter | _script_interpreter |
Private Member Functions | |
string | GraphFunctionSinePlots (string surfaceName, string[] args) |
Demonstration of plotting sine curves with different phases. More... | |
string | GraphFunctionCurvePlotLissajous (string surfaceName, string[] args) |
Demonstration of plotting 2d parametric curves (Lissajous curves). More... | |
string | GraphFunctionDecorations (string surfaceName, string[] args) |
Demonstration of different decoration styles for 2D graphs. More... | |
string | GraphFunctionCurveStylesWithSave (string surfaceName, string[] args) |
Demonstration of different curve styles and saving of 2D graphs. More... | |
Private Attributes | |
const string | GraphSinePlots = "SinePlots" |
const string | GraphHelpSinePlots = GraphSinePlots + " <nCurves> <nPoints> : Plot of sine curves with different phases." |
const string | GraphCurvePlotLissajous = "CurvePlotLissajous" |
const string | GraphHelpCurvePlotLissajous = GraphCurvePlotLissajous + " <nX> <nY> : Plot of Lissajous curves in 2D." |
const string | GraphDecorations = "Decorations" |
const string | GraphHelpDecorations = GraphDecorations + " : Decoration styles on 2D graphs." |
const string | GraphCurveStylesWithSave = "CurveStylesWithSave" |
const string | GraphHelpCurveStylesWithSave = GraphCurveStylesWithSave + " <filePath.bmp> : Curve styles and saving of 2D graphs." |
bool | _graphCommandsInitialized = false |
Additional Inherited Members | |
Properties inherited from IG.Lib.LoadableScriptBase | |
string | EmbeddedCommandName [get, set] |
Command that was used to launch the current embedded application script. More... | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
string[] | InitializationArguments [get, set] |
Arguments used by the initialization method. WARNING: arguments can only be set before initialization is performed. Initialization is performed either implicitly at the first call to the Run method or explicitly by calling the Initialize method. More... | |
virtual bool | IsInitialized [get, protected set] |
Whether the object has been initialized or not. More... | |
static int | DefaultOutputLevel [get, set] |
int | OutputLevel [get, set] |
Level of output to console produced by some operations of the current object. More... | |
virtual ICommandLineApplicationInterpreter | Script_Interpreter [get, protected set] |
Script's internal interpreter that takes care for execution of installed internal commands. More... | |
SortedList< string, string > | Script_CommandHelpStrings [get] |
Contains help strings associated with script commands installed on interpreter. More... | |
Properties inherited from IG.Lib.ILoadableScript | |
string | EmbeddedCommandName [get, set] |
Command that was used to launch the current embedded application script. More... | |
string[] | InitializationArguments [get, set] |
Arguments used by the initialization method. More... | |
bool | IsInitialized [get] |
Whether the object has been initialized or not. More... | |
Properties inherited from IG.Lib.ILockable | |
object | Lock [get] |
Base class for script classes with 2D graphics examples.
$A Igor xx Jul12;
|
inline |
|
inlineprotectedvirtual |
Initializes the current object.
Implements IG.Lib.LoadableScriptBase.
|
inlineprotectedvirtual |
Runs action of the current object.
arguments | Command-line arguments of the action. |
Implements IG.Lib.LoadableScriptBase.
|
inlinevirtual |
Adds commands to the internal interpreter.
interpreter | Interpreter where commands are executed. |
helpStrings | List containg help strings. |
Reimplemented from IG.Lib.LoadableScriptBase.
|
inline |
Test action.
arguments | Array of command-line arguments. |
|
inlinevirtual |
Custom test.
|
inlineprotected |
Adds a new command for a 2D graph test.
testName | Test name. |
surfaceMethod | Method used to perform the test. |
surfaceHelp | Eventual help string for the test. |
|
inlineprivate |
Demonstration of plotting sine curves with different phases.
References IG.Gr.PlotterZedGraph.ExempleSinePlots().
|
inlineprivate |
Demonstration of plotting 2d parametric curves (Lissajous curves).
References IG.Gr.PlotterZedGraph.ExampleLissajous().
|
inlineprivate |
Demonstration of different decoration styles for 2D graphs.
References IG.Gr.PlotterZedGraph.ExampleDecorations().
|
inlineprivate |
Demonstration of different curve styles and saving of 2D graphs.
References IG.Gr.PlotterZedGraph.ExampleCurveStylesWithSave().
|
inlineprotectedvirtual |
Initializes commands for 3d graphic tests.
|
inlineprotectedvirtual |
Runs demonstration of surface plots according to arguments.
|
inlinevirtual |
Demonstration of various 3D plots.
const string IG.Script.ScriptGraphics2dBase.ConstMyTest = "MyTest" |
Name of the command that performs my custom test.
const string IG.Script.ScriptGraphics2dBase.ConstHelpMyTest = "Custom test function." |
const string IG.Script.ScriptGraphics2dBase.ConstCustom = "Custom" |
Name of the command for custom test.
const string IG.Script.ScriptGraphics2dBase.ConstHelpCustom = "Custom test." |
const string IG.Script.ScriptGraphics2dBase.ConstGraph = "Graph" |
Name of the 2d graphs tests.
const string IG.Script.ScriptGraphics2dBase.ConstHelpGraph = "Various 2D graphs. Run with ? argument to see which tests are available." |
|
protected |
List of installed 2D graph test names.
|
protected |
List of help strings corresponding to installed 2D graph tests.
|
protected |
List of methods used to perform 2D graph tests.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |