SPH
Public Member Functions | Public Attributes | List of all members
PlotView Class Reference

#include <PlotView.h>

Inheritance diagram for PlotView:

Public Member Functions

 PlotView (wxWindow *parent, const wxSize size, const wxSize padding, const SharedPtr< Array< PlotData >> &list, const Size defaultSelectedIdx, Optional< TicsParams > ticsParams)
 
void resize (const Pixel size)
 
AffineMatrix2 getPlotTransformMatrix (const Interval &rangeX, const Interval &rangeY) const
 Returns the transformation matrix for managed plot. More...
 
void drawAxes (wxDC &dc, const Interval rangeX, const Interval rangeY)
 

Public Attributes

bool addZeroX = false
 Include zero in x-range. More...
 
bool addZeroY = false
 Include zero in y-range. More...
 
LockingPtr< IPlotplot
 
Rgba color
 

Detailed Description

Definition at line 27 of file PlotView.h.

Constructor & Destructor Documentation

◆ PlotView()

NAMESPACE_SPH_BEGIN PlotView::PlotView ( wxWindow *  parent,
const wxSize  size,
const wxSize  padding,
const SharedPtr< Array< PlotData >> &  list,
const Size  defaultSelectedIdx,
Optional< TicsParams ticsParams 
)

Definition at line 17 of file PlotView.cpp.

Member Function Documentation

◆ drawAxes()

void PlotView::drawAxes ( wxDC &  dc,
const Interval  rangeX,
const Interval  rangeY 
)

Definition at line 161 of file PlotView.cpp.

◆ getPlotTransformMatrix()

AffineMatrix2 PlotView::getPlotTransformMatrix ( const Interval rangeX,
const Interval rangeY 
) const

Returns the transformation matrix for managed plot.

Definition at line 50 of file PlotView.cpp.

◆ resize()

void PlotView::resize ( const Pixel  size)

Definition at line 35 of file PlotView.cpp.

Member Data Documentation

◆ addZeroX

bool PlotView::addZeroX = false

Include zero in x-range.

Definition at line 41 of file PlotView.h.

◆ addZeroY

bool PlotView::addZeroY = false

Include zero in y-range.

Definition at line 44 of file PlotView.h.

◆ color

Rgba PlotView::color

Definition at line 34 of file PlotView.h.

◆ plot

LockingPtr<IPlot> PlotView::plot

Definition at line 33 of file PlotView.h.


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