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