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

Public Member Functions

 MaximaPluginRegion (SessionProfile sessionProfile)
 
 MaximaPluginRegion (SessionProfile sessionProfile, PlotImage.PlotStore.PlotType pt)
 Constructor of the Maxima plot region More...
 
 MaximaPluginRegion (MaximaPluginRegion region)
 
override void OnMouseDown (MouseEventOptions e)
 Doubleclick: open/activate settings dialog Click: update canvas variables More...
 
override void OnMouseMove (MouseEventOptions e)
 Actions on mouse drag (pan, orbit) More...
 
override void OnMouseUp (MouseEventOptions e)
 Used to resize the draw region and to determine if mouse is released More...
 
void OnFocusChanged (RegionBase sender)
 Handles focus changed event. Closes the plot setting form when draw region lost focus. More...
 
override void OnKeyDown (KeyEventOptions e)
 Set variables to true when Shift or Ctrl/Strg key is pressed More...
 
override void OnKeyUp (KeyEventOptions e)
 Set variables to false when Shift or Ctrl/Strg key is released More...
 
override RegionBase Clone ()
 Cloning action. Close plot settings form. Clone MaximaPluginRegion and PlotStore. More...
 
void OptionInterpreter (string optionString)
 Interpretation of optionstring from xml file, taken from ImageEditRegion Plugin More...
 
string OptionWriter ()
 Generation of optionstring for xml file, taken from ImageEditRegion Plugin More...
 
override void ToXml (StorageWriter storage, FileParsingContext parsingContext)
 Serialize image and the contents of plotStore. More...
 
override void FromXml (StorageReader storage, FileParsingContext parsingContext)
 Deserialize image and plotStore content. More...
 
override void OnEvaluation (SMath.Math.Store store)
 When evaluation is triggered, redraw the draw region canvas if the expression is changed More...
 
void AddDefs (SMath.Math.Store store)
 Add definition to SMath context More...
 

Public Attributes

List< Definition > AvailableItems
 
float mouseX = 0
 
float mouseY = 0
 
double dMouseX = 0.5
 
double dMouseY = 0.5
 
double dMouseW = 0
 
double changeValue
 
bool formOpen = false
 

Protected Member Functions

override void OnMouseWheelAction (MouseEventOptions e, int delta)
 Use to perform normal zoom, plotscale and z-scale zoom on the draw region More...
 
override void OnSizeChanged (MouseEventOptions e)
 Rescale the image when the size of the draw region canvas is changed More...
 

Private Member Functions

void CloseSettingForm ()
 Called by OnFocusChange to close the plot settings form
 
void callRedraw ()
 Redraw the draw region canvas
 

Private Attributes

System.Diagnostics.Stopwatch dblclicktimer = new System.Diagnostics.Stopwatch()
 
bool sizeChange = false
 
bool controlKeyDownAxis = false
 
bool mouseDown = false
 
PlotSettings psf = null
 
bool mouseDoubleClick = false
 
bool firstEval = false
 
bool setFocusEvent = false
 
bool isShiftKeyDown = false
 
bool isCtrlKeyDown = false
 

Static Private Attributes

const double zoomFactor = 30
 

Constructor & Destructor Documentation

◆ MaximaPluginRegion()

MaximaPlugin.PlotImage.MaximaPluginRegion.MaximaPluginRegion ( SessionProfile  sessionProfile,
PlotImage.PlotStore.PlotType  pt 
)

Constructor of the Maxima plot region

Parameters
sessionProfile
pt2D or 3D

Member Function Documentation

◆ AddDefs()

void MaximaPlugin.PlotImage.MaximaPluginRegion.AddDefs ( SMath.Math.Store  store)

Add definition to SMath context

Parameters
store

◆ Clone()

override RegionBase MaximaPlugin.PlotImage.MaximaPluginRegion.Clone ( )

Cloning action. Close plot settings form. Clone MaximaPluginRegion and PlotStore.

Returns

◆ FromXml()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.FromXml ( StorageReader  storage,
FileParsingContext  parsingContext 
)

Deserialize image and plotStore content.

Parameters
storage
parsingContext

◆ OnEvaluation()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnEvaluation ( SMath.Math.Store  store)

When evaluation is triggered, redraw the draw region canvas if the expression is changed

Parameters
store

◆ OnFocusChanged()

void MaximaPlugin.PlotImage.MaximaPluginRegion.OnFocusChanged ( RegionBase  sender)

Handles focus changed event. Closes the plot setting form when draw region lost focus.

Parameters
sender

◆ OnKeyDown()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnKeyDown ( KeyEventOptions  e)

Set variables to true when Shift or Ctrl/Strg key is pressed

Parameters
e

◆ OnKeyUp()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnKeyUp ( KeyEventOptions  e)

Set variables to false when Shift or Ctrl/Strg key is released

Parameters
e

◆ OnMouseDown()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnMouseDown ( MouseEventOptions  e)

Doubleclick: open/activate settings dialog Click: update canvas variables

Set focus event handler for copying event

Parameters
eMouseEventOptions

◆ OnMouseMove()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnMouseMove ( MouseEventOptions  e)

Actions on mouse drag (pan, orbit)

Parameters
eMouseEventOptions

◆ OnMouseUp()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnMouseUp ( MouseEventOptions  e)

Used to resize the draw region and to determine if mouse is released

Parameters
e

◆ OnMouseWheelAction()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnMouseWheelAction ( MouseEventOptions  e,
int  delta 
)
protected

Use to perform normal zoom, plotscale and z-scale zoom on the draw region

Parameters
e
delta

◆ OnSizeChanged()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.OnSizeChanged ( MouseEventOptions  e)
protected

Rescale the image when the size of the draw region canvas is changed

Parameters
e

◆ OptionInterpreter()

void MaximaPlugin.PlotImage.MaximaPluginRegion.OptionInterpreter ( string  optionString)

Interpretation of optionstring from xml file, taken from ImageEditRegion Plugin

Parameters
optionString

◆ OptionWriter()

string MaximaPlugin.PlotImage.MaximaPluginRegion.OptionWriter ( )

Generation of optionstring for xml file, taken from ImageEditRegion Plugin

Returns

◆ ToXml()

override void MaximaPlugin.PlotImage.MaximaPluginRegion.ToXml ( StorageWriter  storage,
FileParsingContext  parsingContext 
)

Serialize image and the contents of plotStore.

Parameters
storage
parsingContext

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