BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.Scripting Class Reference
Inheritance diagram for BioCore.Scripting:

Classes

class  Script
 
class  State
 

Public Types

enum  Event
 
enum  ScriptType
 

Public Member Functions

void RefreshItems ()
 It reads all the files in the Scripts and Tools folders and adds them to a listview. More...
 
void RefreshStatus ()
 It updates the status of the script and the log. More...
 
void RunScriptFile (string file)
 
void Run ()
 
void Stop ()
 

Static Public Member Functions

static void LogLine (string s)
 
static State GetState ()
 
static void UpdateState (State s)
 
static void RunScript (string file)
 
static void RunString (string st)
 
static void RunByName (string name)
 

Public Attributes

CodeView view = null
 

Static Public Attributes

static string log
 
static string ImageJPath = Properties.Settings.Default.ImageJPath
 
static Dictionary< string, ScriptScripts = new Dictionary<string, Script>()
 

Protected Member Functions

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

Detailed Description

Definition at line 6 of file Scripting.cs.

Member Enumeration Documentation

◆ Event

enum BioCore.Scripting.Event

Definition at line 256 of file Scripting.cs.

◆ ScriptType

enum BioCore.Scripting.ScriptType

Definition at line 263 of file Scripting.cs.

Constructor & Destructor Documentation

◆ Scripting()

BioCore.Scripting.Scripting ( )

Definition at line 375 of file Scripting.cs.

Member Function Documentation

◆ Dispose()

override void BioCore.Scripting.Dispose ( bool  disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

Definition at line 14 of file Scripting.Designer.cs.

◆ GetState()

static State BioCore.Scripting.GetState ( )
static

It returns the state of the game.

Returns
The state of the game.

Definition at line 273 of file Scripting.cs.

◆ LogLine()

static void BioCore.Scripting.LogLine ( string  s)
static

Definition at line 12 of file Scripting.cs.

◆ RefreshItems()

void BioCore.Scripting.RefreshItems ( )

It reads all the files in the Scripts and Tools folders and adds them to a listview.

Definition at line 299 of file Scripting.cs.

◆ RefreshStatus()

void BioCore.Scripting.RefreshStatus ( )

It updates the status of the script and the log.

Definition at line 335 of file Scripting.cs.

◆ Run()

void BioCore.Scripting.Run ( )

It runs the script that is selected in the listview

Returns
The output of the script.

Definition at line 421 of file Scripting.cs.

◆ RunByName()

static void BioCore.Scripting.RunByName ( string  name)
static

RunByName(string name)

Parameters
nameThe name of the script.

Definition at line 456 of file Scripting.cs.

◆ RunScript()

static void BioCore.Scripting.RunScript ( string  file)
static

It creates a new script object, adds it to the dictionary, and then runs it

Parameters
fileThe file path to the script.

Definition at line 405 of file Scripting.cs.

◆ RunScriptFile()

void BioCore.Scripting.RunScriptFile ( string  file)

It runs a script file

Parameters
fileThe file path of the script to run.

Definition at line 395 of file Scripting.cs.

◆ RunString()

static void BioCore.Scripting.RunString ( string  st)
static

It runs a string as a Lua script

Parameters
stThe string to run.

Definition at line 414 of file Scripting.cs.

◆ Stop()

void BioCore.Scripting.Stop ( )

We stop the script

Returns
The script is being returned.

Definition at line 442 of file Scripting.cs.

◆ UpdateState()

static void BioCore.Scripting.UpdateState ( State  s)
static

If the state is null, return. If the state is not null, set the state to the new state. If the state is not null and the new state is the same as the old state, set the processed flag to true

Parameters
StateThis is the state of the game. It contains the position of the player, the type of the player, and whether the state has been processed or not.
Returns
The state of the current object.

Definition at line 285 of file Scripting.cs.

Member Data Documentation

◆ ImageJPath

string BioCore.Scripting.ImageJPath = Properties.Settings.Default.ImageJPath
static

Definition at line 10 of file Scripting.cs.

◆ log

string BioCore.Scripting.log
static

Definition at line 8 of file Scripting.cs.

◆ Scripts

Dictionary<string, Script> BioCore.Scripting.Scripts = new Dictionary<string, Script>()
static

Definition at line 16 of file Scripting.cs.

◆ view

CodeView BioCore.Scripting.view = null

Definition at line 9 of file Scripting.cs.


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