Maxima Plugin
A SMath Plugin
Loading...
Searching...
No Matches
MaximaPlugin.MainClass Class Reference

Public Member Functions

ToolboxGroup[] GetToolboxGroups (SessionProfile sessionProfile)
 Define members of toolbox More...
 
bool PrepareDrawing (Term[] terms, DrawInfo[] finish, MathPainter math, PaintContext e)
 Prepare drawings for glyphs More...
 
bool ProceedDrawing (DrawMemory[] mem, MathPainter math, PaintContext e)
 Draw the glyphs More...
 

Static Public Attributes

static bool regularEnable = true
 

Properties

string[] SupportedClipboardFormats [get]
 
DragAndDropFileType[] IPluginCustomRegion. DragAndDropFileTypes [get]
 
string IPluginCustomRegion. TagName [get]
 
Type RegionType [get]
 

Private Member Functions

TermInfo[] IPluginHandleEvaluation. GetTermsHandled (SessionProfile sessionProfile)
 Define functions that will be evaluated by the plugin More...
 
bool IPluginLowLevelEvaluation. ExpressionEvaluation (Term root, Term[][] args, ref Store context, ref Term[] result)
 Redirect the plugin function to it's specific method More...
 
IBitmap GetPngImage (Bitmap image)
 Get the image of the toolbox member More...
 
string GetButtonAction (string name, int argsCount, SessionProfile sessionProfile)
 Button action when toolbox member is clicked More...
 
RegionBase IPluginCustomRegion. CreateNew (SessionProfile sessionProfile)
 
MenuButton[] IPluginCustomRegion. GetContextMenuItems (MenuContext context)
 Context menu entries More...
 
MenuButton[] IPluginCustomRegion. GetMenuItems (SessionProfile sessionProfile)
 Custom Insert menu entries More...
 
void IPlugin. Initialize ()
 
void IDisposable. Dispose ()
 
void MLog (MenuButtonArgs args)
 
void MDebug (MenuButtonArgs args)
 
void MSettings (MenuButtonArgs args)
 
void MHelp (MenuButtonArgs args)
 
void MRestart (MenuButtonArgs args)
 
void Prepare_InlineInfix_SVG (float w, float h, Term[] terms, DrawInfo[] finish, MathPainter math, PaintContext e)
 
void Proceed_InlineInfix_SVG (GraphicsFormatter gf, float width, float heigth, float svgScale, DrawMemory[] mem, MathPainter math, PaintContext e, bool isCOmmonFunction=false)
 
void Proceed_InlineInfix_SVG (GraphicsFormatter[] gfs, float width, float heigth, float svgScale, DrawMemory[] mem, MathPainter math, PaintContext e, bool isCOmmonFunction=false)
 

Private Attributes

DragAndDropFileType[] dragAndDropFileTypes
 

Member Function Documentation

◆ ExpressionEvaluation()

bool IPluginLowLevelEvaluation. MaximaPlugin.MainClass.ExpressionEvaluation ( Term  root,
Term  args[][],
ref Store  context,
ref Term[]  result 
)
private

Redirect the plugin function to it's specific method

Parameters
rootName of the function
argsList of arguments
contextStore
resultResult that will be shown on worksheet
Returns

◆ GetButtonAction()

string MaximaPlugin.MainClass.GetButtonAction ( string  name,
int  argsCount,
SessionProfile  sessionProfile 
)
private

Button action when toolbox member is clicked

Parameters
nameName of the function
argsCountNumber of arguments of the function
sessionProfileSessionProfile
Returns

◆ GetContextMenuItems()

MenuButton[] IPluginCustomRegion. MaximaPlugin.MainClass.GetContextMenuItems ( MenuContext  context)
private

Context menu entries

Parameters
context
Returns

◆ GetMenuItems()

MenuButton[] IPluginCustomRegion. MaximaPlugin.MainClass.GetMenuItems ( SessionProfile  sessionProfile)
private

Custom Insert menu entries

Parameters
sessionProfile
Returns

◆ GetPngImage()

IBitmap MaximaPlugin.MainClass.GetPngImage ( Bitmap  image)
private

Get the image of the toolbox member

Parameters
imageImage
Returns

◆ GetTermsHandled()

TermInfo[] IPluginHandleEvaluation. MaximaPlugin.MainClass.GetTermsHandled ( SessionProfile  sessionProfile)
private

Define functions that will be evaluated by the plugin

Parameters
sessionProfileSessionProfile
Returns

◆ GetToolboxGroups()

ToolboxGroup[] MaximaPlugin.MainClass.GetToolboxGroups ( SessionProfile  sessionProfile)

Define members of toolbox

Parameters
sessionProfileSessionProfile
Returns

◆ PrepareDrawing()

bool MaximaPlugin.MainClass.PrepareDrawing ( Term[]  terms,
DrawInfo[]  finish,
MathPainter  math,
PaintContext  e 
)

Prepare drawings for glyphs

Parameters
termsSMath expression
finishDrawInfo
mathMathPainter
ePaintContext
Returns

◆ ProceedDrawing()

bool MaximaPlugin.MainClass.ProceedDrawing ( DrawMemory[]  mem,
MathPainter  math,
PaintContext  e 
)

Draw the glyphs

Parameters
memDrawMemory
mathMathPainter
ePaintContext
Returns

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