Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Shared::InteractiveCurveViewRange Class Reference

#include <interactive_curve_view_range.h>

Inheritance diagram for Shared::InteractiveCurveViewRange:
Shared::MemoizedCurveViewRange Shared::CurveViewRange Regression::Store Sequence::CurveViewRange

Public Member Functions

 InteractiveCurveViewRange (CurveViewCursor *cursor, InteractiveCurveViewRangeDelegate *delegate=nullptr)
 
void setDelegate (InteractiveCurveViewRangeDelegate *delegate)
 
void setCursor (CurveViewCursor *cursor)
 
uint32_t rangeChecksum () override
 
bool yAuto ()
 
void setXMin (float f) override
 
void setXMax (float f) override
 
void setYMin (float f) override
 
void setYMax (float f) override
 
void setYAuto (bool yAuto)
 
void zoom (float ratio, float x, float y)
 
void panWithVector (float x, float y)
 
virtual void roundAbscissa ()
 
virtual void normalize ()
 
virtual void setTrigonometric ()
 
virtual void setDefault ()
 
void centerAxisAround (Axis axis, float position)
 
void panToMakePointVisible (float x, float y, float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
 
bool isCursorVisible (float topMarginRatio, float rightMarginRatio, float bottomMarginRation, float leftMarginRation)
 
- Public Member Functions inherited from Shared::MemoizedCurveViewRange
 MemoizedCurveViewRange ()
 
float xMin () override
 
float xMax () override
 
float yMin () override
 
float yMax () override
 
float xGridUnit () override
 
float yGridUnit () override
 
- Public Member Functions inherited from Shared::CurveViewRange
float computeGridUnit (Axis axis, float min, float max)
 

Static Protected Member Functions

static float clipped (float f, bool isMax)
 

Protected Attributes

bool m_yAuto
 
InteractiveCurveViewRangeDelegatem_delegate
 
- Protected Attributes inherited from Shared::MemoizedCurveViewRange
float m_xMin
 
float m_xMax
 
float m_yMin
 
float m_yMax
 
float m_xGridUnit
 
float m_yGridUnit
 

Additional Inherited Members

- Public Types inherited from Shared::CurveViewRange
enum  Axis { Axis::X, Axis::Y }
 
- Static Public Attributes inherited from Shared::CurveViewRange
static constexpr float k_maxNumberOfXGridUnits = 18.0f
 
static constexpr float k_maxNumberOfYGridUnits = 13.0f
 

Detailed Description

Definition at line 11 of file interactive_curve_view_range.h.

Constructor & Destructor Documentation

◆ InteractiveCurveViewRange()

Shared::InteractiveCurveViewRange::InteractiveCurveViewRange ( CurveViewCursor cursor,
InteractiveCurveViewRangeDelegate delegate = nullptr 
)

Definition at line 12 of file interactive_curve_view_range.cpp.

Member Function Documentation

◆ centerAxisAround()

void Shared::InteractiveCurveViewRange::centerAxisAround ( Axis  axis,
float  position 
)

Definition at line 178 of file interactive_curve_view_range.cpp.

◆ clipped()

float Shared::InteractiveCurveViewRange::clipped ( float  f,
bool  isMax 
)
staticprotected

Definition at line 233 of file interactive_curve_view_range.cpp.

◆ isCursorVisible()

bool Shared::InteractiveCurveViewRange::isCursorVisible ( float  topMarginRatio,
float  rightMarginRatio,
float  bottomMarginRation,
float  leftMarginRation 
)

Definition at line 227 of file interactive_curve_view_range.cpp.

◆ normalize()

void Shared::InteractiveCurveViewRange::normalize ( )
virtual

Reimplemented in Sequence::CurveViewRange.

Definition at line 137 of file interactive_curve_view_range.cpp.

◆ panToMakePointVisible()

void Shared::InteractiveCurveViewRange::panToMakePointVisible ( float  x,
float  y,
float  topMarginRatio,
float  rightMarginRatio,
float  bottomMarginRation,
float  leftMarginRation 
)

Definition at line 200 of file interactive_curve_view_range.cpp.

◆ panWithVector()

void Shared::InteractiveCurveViewRange::panWithVector ( float  x,
float  y 
)

Definition at line 111 of file interactive_curve_view_range.cpp.

◆ rangeChecksum()

uint32_t Shared::InteractiveCurveViewRange::rangeChecksum ( )
overridevirtual

Reimplemented from Shared::CurveViewRange.

Definition at line 28 of file interactive_curve_view_range.cpp.

◆ roundAbscissa()

void Shared::InteractiveCurveViewRange::roundAbscissa ( )
virtual

Reimplemented in Sequence::CurveViewRange.

Definition at line 122 of file interactive_curve_view_range.cpp.

◆ setCursor()

void Shared::InteractiveCurveViewRange::setCursor ( CurveViewCursor cursor)

Definition at line 24 of file interactive_curve_view_range.cpp.

◆ setDefault()

void Shared::InteractiveCurveViewRange::setDefault ( )
virtual

Reimplemented in Regression::Store, and Sequence::CurveViewRange.

Definition at line 169 of file interactive_curve_view_range.cpp.

◆ setDelegate()

void Shared::InteractiveCurveViewRange::setDelegate ( InteractiveCurveViewRangeDelegate delegate)

Definition at line 20 of file interactive_curve_view_range.cpp.

◆ setTrigonometric()

void Shared::InteractiveCurveViewRange::setTrigonometric ( )
virtual

Reimplemented in Sequence::CurveViewRange.

Definition at line 157 of file interactive_curve_view_range.cpp.

◆ setXMax()

void Shared::InteractiveCurveViewRange::setXMax ( float  f)
overridevirtual

Reimplemented from Shared::MemoizedCurveViewRange.

Definition at line 51 of file interactive_curve_view_range.cpp.

◆ setXMin()

void Shared::InteractiveCurveViewRange::setXMin ( float  f)
overridevirtual

Reimplemented from Shared::MemoizedCurveViewRange.

Definition at line 39 of file interactive_curve_view_range.cpp.

◆ setYAuto()

void Shared::InteractiveCurveViewRange::setYAuto ( bool  yAuto)

Definition at line 81 of file interactive_curve_view_range.cpp.

◆ setYMax()

void Shared::InteractiveCurveViewRange::setYMax ( float  f)
overridevirtual

Reimplemented from Shared::MemoizedCurveViewRange.

Definition at line 72 of file interactive_curve_view_range.cpp.

◆ setYMin()

void Shared::InteractiveCurveViewRange::setYMin ( float  f)
overridevirtual

Reimplemented from Shared::MemoizedCurveViewRange.

Definition at line 63 of file interactive_curve_view_range.cpp.

◆ yAuto()

bool Shared::InteractiveCurveViewRange::yAuto ( )

Definition at line 35 of file interactive_curve_view_range.cpp.

◆ zoom()

void Shared::InteractiveCurveViewRange::zoom ( float  ratio,
float  x,
float  y 
)

Definition at line 88 of file interactive_curve_view_range.cpp.

Member Data Documentation

◆ m_delegate

InteractiveCurveViewRangeDelegate* Shared::InteractiveCurveViewRange::m_delegate
protected

Definition at line 39 of file interactive_curve_view_range.h.

◆ m_yAuto

bool Shared::InteractiveCurveViewRange::m_yAuto
protected

Definition at line 37 of file interactive_curve_view_range.h.


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