IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Base class for plots that are shown in a ZedGraphControl object. More...
Public Member Functions | |
PlotZedGraphBase (PlotterZedGraph plotter) | |
Constructor. More... | |
abstract void | CalculateBoundsCoordinates () |
Recalculates bounds for coordinates on the graphic objects currently contained in the graph. More... | |
abstract void | CreateData () |
Creates data for the plot. Basically, this creates and updates the internal data structures used by the plot, while Update will also update the plot in the window where it is shown. More... | |
virtual void | Update () |
Updates the plot. More... | |
abstract void | RemoveFromGraphPane () |
Removes all items of the current plot from the graph pane. More... | |
void | Dispose () |
Implementation of IDisposable interface. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
Does the job of freeing resources. More... | |
Protected Attributes | |
bool | _autoUpdateBoundsCoordinates = true |
string | _legendString |
Properties | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
int | OutputLevel [get, set] |
Level of output to the console for the current object. The defalult output level for newly created object is specified by VtkPlotter.DefaultOutputLevel. More... | |
StopWatch1 | Timer [get] |
Stopwatch that can be used to measure the time efficiency of actions. More... | |
color | BackGround [get, set] |
Sets background color of the plotter that is used by the current plot object. More... | |
PlotterZedGraph | Plotter [get, set] |
Zedgraph plotter that is used for plotting graphs produeced by the current plotting class, on a ZedGraph control. More... | |
GraphPane | GraphPane [get] |
Gets the GraphPane of the plotter on which the current line plot is plotted. More... | |
bool | AutoUpdateBoundsCoordinates [get, set] |
Determines whether bounds on plotted geometry are automatically updated when new primitives are added. More... | |
BoundingBox2d | BoundsCoordinates [get] |
Bounds of the current plot. More... | |
string | LegendString [get, set] |
String that is used for the current plot item in the legend. More... | |
Properties inherited from IG.Lib.ILockable | |
object | Lock [get] |
Private Member Functions | |
PlotZedGraphBase () | |
Prevent calling argument-less constructor in derived classes. More... | |
~PlotZedGraphBase () | |
Private Attributes | |
object | _mainLock = new object() |
int | _outputLevel = PlotterZedGraph.DefaultOutputLevel |
StopWatch1 | _timer |
PlotterZedGraph | _plotter |
BoundingBox2d | _boundsCoordinates |
bool | disposed = false |
Base class for plots that are shown in a ZedGraphControl object.
$A Igor Jun09;
|
inlineprivate |
Prevent calling argument-less constructor in derived classes.
|
inline |
Constructor.
plotter | ZedGraph plotter that is used for plotting graphs produeced by the current plotting class. |
References IG.Gr.PlotterZedGraph.AddPlotObject().
|
inlineprivate |
|
pure virtual |
Recalculates bounds for coordinates on the graphic objects currently contained in the graph.
Implemented in IG.Gr.PlotZedgraphCurve.
Referenced by IG.Gr.PlotterZedGraph.CalculateBoundsCoordinates().
|
pure virtual |
Creates data for the plot. Basically, this creates and updates the internal data structures used by the plot, while Update will also update the plot in the window where it is shown.
Implemented in IG.Gr.PlotZedgraphCurve.
|
inlinevirtual |
Updates the plot.
Reimplemented in IG.Gr.PlotZedgraphCurve.
Referenced by IG.Gr.PlotterZedGraph.Update().
|
pure virtual |
Removes all items of the current plot from the graph pane.
Must be overridden in derived classes.
Implemented in IG.Gr.PlotZedgraphCurve.
Referenced by IG.Gr.PlotterZedGraph.RemovePlotObject().
|
inline |
Implementation of IDisposable interface.
Referenced by IG.Gr.PlotterZedGraph.RemovePlotObject().
|
inlineprotectedvirtual |
Does the job of freeing resources.
This method can be eventually overridden in derived classes (if they use other resources that must be freed - in addition to such resources of the current class). In the case of overriding this method, you should usually call the base.Dispose(disposing ). in the overriding method.
disposing | Tells whether the method has been called form Dispose() method. |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
get |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
|
getset |
Level of output to the console for the current object. The defalult output level for newly created object is specified by VtkPlotter.DefaultOutputLevel.
|
get |
Stopwatch that can be used to measure the time efficiency of actions.
|
getset |
Sets background color of the plotter that is used by the current plot object.
Task is delegated to the plotter.
|
getset |
Zedgraph plotter that is used for plotting graphs produeced by the current plotting class, on a ZedGraph control.
Getter is not thread safe (for better efficiency).
|
getprotected |
Gets the GraphPane of the plotter on which the current line plot is plotted.
|
getset |
Determines whether bounds on plotted geometry are automatically updated when new primitives are added.
Referenced by IG.Gr.PlotterZedGraph.CalculateBoundsCoordinates().
|
get |
Bounds of the current plot.
If AutoUpdateBoundsCoordinates == true then the bounds are updated automatically when new points are added.
These bounds are usually used just for information, but they can also be used to adjust the bounds on scales.
Referenced by IG.Gr.PlotterZedGraph.CalculateBoundsCoordinates().
|
getset |
String that is used for the current plot item in the legend.
Referenced by IG.Gr.PlotterZedGraph.ExampleCurveStylesWithSave(), IG.Gr.PlotterZedGraph.ExampleDecorations(), and IG.Gr.PlotterZedGraph.ExempleSinePlots().