Struct RenderDetails
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
Details about a completed render
public readonly struct RenderDetails
- Inherited Members
- Extension Methods
Constructors
RenderDetails(RenderPack, (string, TimeSpan)[], RenderDetails)
public RenderDetails(RenderPack rp, (string, TimeSpan)[] actionTimes, RenderDetails lastRender)
Parameters
rp
RenderPackactionTimes
(string, TimeSpan)[]lastRender
RenderDetails
Fields
AxisLimits
Axis limits of the primary axes for this render
public readonly AxisLimits AxisLimits
Field Value
AxisLimitsByAxis
Axis limits for every axis
public readonly Dictionary<IAxis, CoordinateRange> AxisLimitsByAxis
Field Value
Count
The number of total renders including this one
public readonly int Count
Field Value
DataRect
Size of the data area of the plot in pixel units
public readonly PixelRect DataRect
Field Value
Elapsed
Total time required to render this image
public readonly TimeSpan Elapsed
Field Value
FigureRect
Size of the plot image in pixel units
public readonly PixelRect FigureRect
Field Value
Layout
Arrangement of all panels
public readonly Layout Layout
Field Value
Padding
Distance between the data area and the edge of the figure
public readonly PixelPadding Padding
Field Value
PreviousAxisLimits
Axis limits of the primary axes for the previous render
public readonly AxisLimits PreviousAxisLimits
Field Value
PreviousAxisLimitsByAxis
Axis limits of all axes from the previous render
public readonly Dictionary<IAxis, CoordinateRange> PreviousAxisLimitsByAxis
Field Value
TimedActions
Each step of the render and how long it took to execute
public readonly (string, TimeSpan)[] TimedActions
Field Value
Timestamp
Time the render was completed
public readonly DateTime Timestamp
Field Value
Properties
AxisLimitsChanged
Indicates whether the axis view (coordinate units) of this render differs from the previous
public bool AxisLimitsChanged { get; }
Property Value
PxPerUnitX
public double PxPerUnitX { get; }
Property Value
PxPerUnitY
public double PxPerUnitY { get; }
Property Value
SizeChanged
Indicates whether the size (pixels) of this render differs from the previous
public bool SizeChanged { get; }
Property Value
UnitsPerPxX
public double UnitsPerPxX { get; }
Property Value
UnitsPerPxY
public double UnitsPerPxY { get; }
Property Value
Methods
TryGetPixelPerUnitX(IXAxis?, out double)
Search the AxisLimitsByAxis for the specified axis
and calculate the pixels per unit
public bool TryGetPixelPerUnitX(IXAxis? axis, out double value)
Parameters
Returns
- bool
true if the axis was in the collection and a result was calculated. Otherwise false
When false, thevalue
will be set to PxPerUnitX
TryGetPixelPerUnitY(IYAxis?, out double)
Search the AxisLimitsByAxis for the specified axis
and calculate the pixels per unit
public bool TryGetPixelPerUnitY(IYAxis? axis, out double value)
Parameters
Returns
- bool
true if the axis was in the collection and a result was calculated. Otherwise false
When false, thevalue
will be set to PxPerUnitY
TryGetUnitPerPixelX(IXAxis?, out double)
Search the AxisLimitsByAxis for the specified axis
and calculate the pixels per unit
public bool TryGetUnitPerPixelX(IXAxis? axis, out double value)
Parameters
Returns
- bool
true if the axis was in the collection and a result was calculated. Otherwise false
When false, thevalue
will be set to PxPerUnitX
TryGetUnitPerPixelY(IYAxis?, out double)
Search the AxisLimitsByAxis for the specified axis
and calculate the pixels per unit
public bool TryGetUnitPerPixelY(IYAxis? axis, out double value)
Parameters
Returns
- bool
true if the axis was in the collection and a result was calculated. Otherwise false
When false, thevalue
will be set to PxPerUnitY