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.Script.ScriptExtGraphics3d Class Reference

Script class with graphics examples. More...

+ Inheritance diagram for IG.Script.ScriptExtGraphics3d:
+ Collaboration diagram for IG.Script.ScriptExtGraphics3d:

Public Member Functions

 ScriptExtGraphics3d ()
 
override void Script_AddCommands (ICommandLineApplicationInterpreter interpreter, SortedList< string, string > helpStrings)
 Adds commands to the internal interpreter. More...
 
virtual string TestCustom3d (string[] arguments)
 Custom test. More...
 
- Public Member Functions inherited from IG.Script.ScriptGraphics3DBase
 ScriptGraphics3DBase ()
 
string TestMyTest (string[] arguments)
 Test action. More...
 
virtual string TestCustom (string[] arguments)
 Custom test. More...
 
virtual string TestVtkTest (string[] arguments)
 Runs various VTK tests. More...
 
virtual string TestPlot3d (string[] arguments)
 Demonstration of various 3D plots. More...
 
virtual string TestSurface3d (string[] arguments)
 Demonstration of surface 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 ConstCustom3d = "Custom3d"
 Name of the command for custom test. More...
 
const string ConstHelpCustom3d = "Custom test of 3D graphics."
 
- Public Attributes inherited from IG.Script.ScriptGraphics3DBase
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 ConstVtkTest = "VtkTest"
 Name of the command for VTK tests. More...
 
const string ConstHelpVtkTest = "Various 3D tests using VTK. Run with ? argument to see which tests are available."
 
const string ConstPlot3d = "Plot3d"
 Name of the command for 3D plots tests. More...
 
const string ConstHelpPlot3d = "Various higher level 3D plots. Run with ? argument to see which tests are available."
 
const string ConstSurface3d = "Surface3D"
 Name of the command for 3D surface examples. More...
 
const string ConstHelpSurface3d = "Examples of 3D surfaces. Run with ? argument to see which surfaces are available."
 
const string VtkStructuredGrid = "StructuredGrid"
 
const string VtkQuadCells = "QuadCells"
 
const string VtkCellGridContours = "CellGridContours"
 
const string VtkStructuredGridVolumeContours = "StructuredGridVolumeContours"
 
const string Plot3dVtkControl = "VtkControl"
 
const string Plot3dCurvePlotLissajous = "CurvePlotLissajous"
 
const string Plot3dSurfacePlot = "SurfacePlot"
 
const string Plot3dSurfacePlotScaled = "SurfacePlotScaled"
 
const string Plot3dSurfacePlotManualScaled = "SurfacePlotManualScaled"
 
const string Plot3dContourPlot = "ContourPlot"
 
const string Plot3dSurfaceComparison = "SurfaceComparison"
 
const string Plot3dDecoration = "Decoration"
 
const string surfaceKleinBottle = "KleinBottle"
 
const string surfaceTwoToruses = "TwoToruses"
 
const string surfaceSnailShell = "SnailShell"
 
- 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...
 

Additional Inherited Members

- Protected Member Functions inherited from IG.Script.ScriptGraphics3DBase
override void InitializeThis (string[] arguments)
 Initializes the current object. More...
 
override string RunThis (string[] arguments)
 Runs action of the current object. More...
 
void AddTestVtkCommand (string testName, CommandMethod surfaceMethod, string surfaceHelp)
 Adds a new command testing VTK. More...
 
virtual void InitTestVtk ()
 Initializes VTK test commands. More...
 
virtual string RunTestVtk (string[] args)
 Runs demonstration of surface plots according to arguments. More...
 
void AddPlot3dCommand (string testName, CommandMethod surfaceMethod, string surfaceHelp)
 Adds a new command for a 3D graphics test. More...
 
virtual void InitTestPlot3d ()
 Initializes commands for 3d graphic tests. More...
 
virtual string RunTestPlot3d (string[] args)
 Runs demonstration of surface plots according to arguments. More...
 
void AddSurfaceCommand (string surfaceName, CommandMethod surfaceMethod, string surfaceHelp)
 Adds a new command for plotting the specified surface. More...
 
virtual void SetDefaultPlotProperties (VtkSurfacePlot plot)
 Sets default properties of the specified plot. More...
 
virtual void SetPlotBounds (VtkSurfacePlot plot, string[] args)
 Sets plotting resolution and parameter bounds on the specified plot according to arguments. More...
 
virtual void InitSurfaceCommands ()
 Initializes surface plotting commands. More...
 
virtual string Run3DSurfaceTest (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 inherited from IG.Script.ScriptGraphics3DBase
List< string > TestVtkNames = new List<string>()
 List of VTK test names. More...
 
List< string > TestVtkHelpStrings = new List<string>()
 List of VTK tests' help strings. More...
 
List< CommandMethodTestVtkMethods = new List<CommandMethod>()
 List of methods used to perform VTK tests. More...
 
List< string > TestPlot3dNames = new List<string>()
 List of installed 3D plotting test names. More...
 
List< string > TestPlot3dHelpStrings = new List<string>()
 List of help strings corresponding to installed 3D plotting tests. More...
 
List< CommandMethodTestPlot3dMethods = new List<CommandMethod>()
 List of methods used to perform 3D plotting tests. More...
 
List< string > SurfaceNames = new List<string>()
 List of surface names. More...
 
List< string > SurfaceHelpStrings = new List<string>()
 List of surface methods' help strings. More...
 
List< CommandMethodSurfaceMethods = new List<CommandMethod>()
 List of methods used to plot surfaces. More...
 
- Protected Attributes inherited from IG.Lib.LoadableScriptBase
string _embeddedCommandName = null
 
int _outputLevel = DefaultOutputLevel
 
ICommandLineApplicationInterpreter _script_interpreter
 
- 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]
 

Detailed Description

Script class with graphics examples.

$A Igor Jul12;

Constructor & Destructor Documentation

IG.Script.ScriptExtGraphics3d.ScriptExtGraphics3d ( )
inline

Member Function Documentation

override void IG.Script.ScriptExtGraphics3d.Script_AddCommands ( ICommandLineApplicationInterpreter  interpreter,
SortedList< string, string >  helpStrings 
)
inlinevirtual

Adds commands to the internal interpreter.

Parameters
interpreterInterpreter where commands are executed.
helpStringsList containg help strings.

Reimplemented from IG.Script.ScriptGraphics3DBase.

virtual string IG.Script.ScriptExtGraphics3d.TestCustom3d ( string[]  arguments)
inlinevirtual

Custom test.

Member Data Documentation

const string IG.Script.ScriptExtGraphics3d.ConstCustom3d = "Custom3d"

Name of the command for custom test.

const string IG.Script.ScriptExtGraphics3d.ConstHelpCustom3d = "Custom test of 3D graphics."

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