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

Public Member Functions

 MaximaPluginCanvas (SessionProfile sessionProfile)
 
 MaximaPluginCanvas (MaximaPluginCanvas region)
 
void Init ()
 Called in constructor for initilization of the class
 
void ScalImg (System.Drawing.Image img)
 Scale image to the size of the draw region canvas More...
 
void Plot ()
 Calls Draw.RegionDraw() to request Maxima to generate plot
 
bool LoadImage ()
 Load image from the file and saves it into the imageEO variable More...
 
void SetLastRequest ()
 Set the SMath input
 
override void OnPaint (PaintEventOptions e)
 Draw image on draw region canvas More...
 
override RegionBase Clone ()
 
override void OnMouseDown (MouseEventOptions e)
 
override void OnEvaluation (SMath.Math.Store store)
 

Public Attributes

PlotStore plotStore
 
PlotStore oldPlotStore
 
string imageFilePath = ""
 
PlotStore.State tempState = PlotStore.State.Default
 
string lastPlotRequest = ""
 
string lastInput = ""
 
bool plotApproval = false
 
bool isError = false
 
string errorText = ""
 
System.Drawing.Image imageEs
 
System.Drawing.Image imageEo
 
SvgPictureBoxWindow svgWindow
 
GdiGraphicsRenderer svgRenderer
 
bool mouseD = false
 
bool borderOn = true
 
bool redrawCanvas = false
 
int newWidth = 0
 
int newHeight = 0
 
int oldHeight = 0
 
int oldWidth = 0
 

Static Public Attributes

static int counter = 0
 

Private Attributes

string lastGivenEquation = ""
 
bool firstTimeDraw = true
 

Member Function Documentation

◆ LoadImage()

bool MaximaPlugin.PlotImage.MaximaPluginCanvas.LoadImage ( )

Load image from the file and saves it into the imageEO variable

Returns

◆ OnPaint()

override void MaximaPlugin.PlotImage.MaximaPluginCanvas.OnPaint ( PaintEventOptions  e)

Draw image on draw region canvas

Parameters
ePaintEventOptions

◆ ScalImg()

void MaximaPlugin.PlotImage.MaximaPluginCanvas.ScalImg ( System.Drawing.Image  img)

Scale image to the size of the draw region canvas

Parameters
imgImage

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