ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
ScottPlot.CoordinateRangeMutable Class Reference

Represents a range of values between two coordinates on a single axis. More...

Inheritance diagram for ScottPlot.CoordinateRangeMutable:
IEquatable

Public Member Functions

 CoordinateRangeMutable (double min, double max)
 
override string ToString ()
 
bool Contains (double position)
 Returns true if the given position is within the range (inclusive)
 
void Expand (double value)
 Expand the range if needed to include the given point.
 
void Expand (CoordinateRangeMutable range)
 Expand this range if needed to ensure the given range is included.
 
void Expand (CoordinateRange range)
 Expand this range if needed to ensure the given range is included.
 
void Reset ()
 Reset this range to inverted infinite values to indicate the range has not yet been set.
 
void Set (double min, double max)
 
void Set (CoordinateRange range)
 
void Set (CoordinateRangeMutable range)
 
void Set (IAxis otherAxis)
 
void Pan (double delta)
 
void PanMouse (float mouseDeltaPx, float dataSizePx)
 
void ZoomFrac (double frac)
 
void ZoomOut (double multiple)
 
void ZoomMouseDelta (float deltaPx, float dataSizePx)
 
void ZoomFrac (double frac, double zoomTo)
 
bool Equals (CoordinateRangeMutable? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (CoordinateRangeMutable a, CoordinateRangeMutable b)
 
static bool operator!= (CoordinateRangeMutable a, CoordinateRangeMutable b)
 

Properties

double Min [get, set]
 
double Max [get, set]
 
double Center [get]
 
double Span [get]
 
bool HasBeenSet [get]
 
CoordinateRange ToCoordinateRange [get]
 
CoordinateRange ToRectifiedCoordinateRange [get]
 
static CoordinateRangeMutable Infinity [get]
 
static CoordinateRangeMutable NotSet [get]
 This infinite inverted range is used to indicate a range that has not yet been set.
 

Detailed Description

Represents a range of values between two coordinates on a single axis.

Constructor & Destructor Documentation

◆ CoordinateRangeMutable()

ScottPlot.CoordinateRangeMutable.CoordinateRangeMutable ( double  min,
double  max 
)
inline

Member Function Documentation

◆ Contains()

bool ScottPlot.CoordinateRangeMutable.Contains ( double  position)
inline

Returns true if the given position is within the range (inclusive)

◆ Equals() [1/2]

bool ScottPlot.CoordinateRangeMutable.Equals ( CoordinateRangeMutable other)
inline

◆ Equals() [2/2]

override bool ScottPlot.CoordinateRangeMutable.Equals ( object?  obj)
inline

◆ Expand() [1/3]

void ScottPlot.CoordinateRangeMutable.Expand ( CoordinateRange  range)
inline

Expand this range if needed to ensure the given range is included.

◆ Expand() [2/3]

void ScottPlot.CoordinateRangeMutable.Expand ( CoordinateRangeMutable  range)
inline

Expand this range if needed to ensure the given range is included.

◆ Expand() [3/3]

void ScottPlot.CoordinateRangeMutable.Expand ( double  value)
inline

Expand the range if needed to include the given point.

◆ GetHashCode()

override int ScottPlot.CoordinateRangeMutable.GetHashCode ( )
inline

◆ operator!=()

static bool ScottPlot.CoordinateRangeMutable.operator!= ( CoordinateRangeMutable  a,
CoordinateRangeMutable  b 
)
inlinestatic

◆ operator==()

static bool ScottPlot.CoordinateRangeMutable.operator== ( CoordinateRangeMutable  a,
CoordinateRangeMutable  b 
)
inlinestatic

◆ Pan()

void ScottPlot.CoordinateRangeMutable.Pan ( double  delta)
inline

◆ PanMouse()

void ScottPlot.CoordinateRangeMutable.PanMouse ( float  mouseDeltaPx,
float  dataSizePx 
)
inline

◆ Reset()

void ScottPlot.CoordinateRangeMutable.Reset ( )
inline

Reset this range to inverted infinite values to indicate the range has not yet been set.

◆ Set() [1/4]

void ScottPlot.CoordinateRangeMutable.Set ( CoordinateRange  range)
inline

◆ Set() [2/4]

void ScottPlot.CoordinateRangeMutable.Set ( CoordinateRangeMutable  range)
inline

◆ Set() [3/4]

void ScottPlot.CoordinateRangeMutable.Set ( double  min,
double  max 
)
inline

◆ Set() [4/4]

void ScottPlot.CoordinateRangeMutable.Set ( IAxis  otherAxis)
inline

◆ ToString()

override string ScottPlot.CoordinateRangeMutable.ToString ( )
inline

◆ ZoomFrac() [1/2]

void ScottPlot.CoordinateRangeMutable.ZoomFrac ( double  frac)
inline

◆ ZoomFrac() [2/2]

void ScottPlot.CoordinateRangeMutable.ZoomFrac ( double  frac,
double  zoomTo 
)
inline

◆ ZoomMouseDelta()

void ScottPlot.CoordinateRangeMutable.ZoomMouseDelta ( float  deltaPx,
float  dataSizePx 
)
inline

◆ ZoomOut()

void ScottPlot.CoordinateRangeMutable.ZoomOut ( double  multiple)
inline

Property Documentation

◆ Center

double ScottPlot.CoordinateRangeMutable.Center
get

◆ HasBeenSet

bool ScottPlot.CoordinateRangeMutable.HasBeenSet
get

◆ Infinity

CoordinateRangeMutable ScottPlot.CoordinateRangeMutable.Infinity
staticget

◆ Max

double ScottPlot.CoordinateRangeMutable.Max
getset

◆ Min

double ScottPlot.CoordinateRangeMutable.Min
getset

◆ NotSet

CoordinateRangeMutable ScottPlot.CoordinateRangeMutable.NotSet
staticget

This infinite inverted range is used to indicate a range that has not yet been set.

◆ Span

double ScottPlot.CoordinateRangeMutable.Span
get

◆ ToCoordinateRange

CoordinateRange ScottPlot.CoordinateRangeMutable.ToCoordinateRange
get

◆ ToRectifiedCoordinateRange

CoordinateRange ScottPlot.CoordinateRangeMutable.ToRectifiedCoordinateRange
get

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