diff options
| author | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-10-03 01:55:11 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-10-03 01:55:11 +0300 |
| commit | 2ce6afb909f34af7d78c20cfeb9f2d8311e91336 (patch) | |
| tree | 5a679973db7ee6446df1cde1690634b422ade35c /Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs | |
| parent | 9c858b7b51be2eb5b2f515912d436224d7e6483c (diff) | |
| download | Tango-2ce6afb909f34af7d78c20cfeb9f2d8311e91336.tar.gz Tango-2ce6afb909f34af7d78c20cfeb9f2d8311e91336.zip | |
Changed RealTimeGraphX to .NET 4.6.1
Diffstat (limited to 'Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs')
| -rw-r--r-- | Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs b/Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs new file mode 100644 index 000000000..a3aeb90d9 --- /dev/null +++ b/Software/Visual_Studio/SideChains/RealTimeGraphXNet/RealTimeGraphX/IGraphSurface.cs @@ -0,0 +1,74 @@ +using RealTimeGraphX.EventArguments; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Text; + +namespace RealTimeGraphX +{ + /// <summary> + /// Represents a graph drawing surface capable of drawing a series of points submitted by a graph renderer. + /// </summary> + public interface IGraphSurface : IGraphComponent + { + /// <summary> + /// Occurs when the surface size has changed. + /// </summary> + event EventHandler SurfaceSizeChanged; + + /// <summary> + /// Occurs when the surface zoom rectangle has changed. + /// </summary> + event EventHandler ZoomRectChanged; + + /// <summary> + /// Returns the actual size of the surface. + /// </summary> + /// <returns></returns> + SizeF GetSize(); + + /// <summary> + /// Returns the current bounds of the zooming rectangle. + /// </summary> + /// <returns></returns> + RectangleF GetZoomRect(); + } + + /// <summary> + /// Represents a graph drawing surface capable of drawing a series of points submitted by a graph renderer. + /// </summary> + /// <typeparam name="TDataSeries">The type of the data series.</typeparam> + /// <seealso cref="RealTimeGraphX.IGraphComponent" /> + public interface IGraphSurface<TDataSeries> : IGraphSurface where TDataSeries : IGraphDataSeries + { + /// <summary> + /// Called before drawing has started. + /// </summary> + void BeginDraw(); + + /// <summary> + /// Draws the stroke of the specified data series points. + /// </summary> + /// <param name="dataSeries">The data series.</param> + /// <param name="points">The points.</param> + void DrawSeries(TDataSeries dataSeries, IEnumerable<PointF> points); + + /// <summary> + /// Fills the specified data series points. + /// </summary> + /// <param name="dataSeries">The data series.</param> + /// <param name="points">The points.</param> + void FillSeries(TDataSeries dataSeries, IEnumerable<PointF> points); + + /// <summary> + /// Applies transformation on the current pass. + /// </summary> + /// <param name="transform">The transform.</param> + void SetTransform(GraphTransform transform); + + /// <summary> + /// Called when drawing has completed. + /// </summary> + void EndDraw(); + } +} |
