scatter 0.1.0
scatter::FunctionPlot Class Reference

[brief description] More...

#include <FunctionPlot.hpp>

Inheritance diagram for scatter::FunctionPlot:
scatter::PlotBase

Classes

class  Options
 [brief description] More...
 

Public Types

using Ptr = std::unique_ptr<FunctionPlot>
 typedef
 

Public Member Functions

 FunctionPlot (const std::string &label, const std::vector< double > &x, const std::function< double(const double &)> &function, const Options &options)
 [brief description]
 
virtual ~FunctionPlot ()
 [brief description]
 
Legend::Entry getLegendEntry ()
 create LegendEntry
 
void render (Renderer &renderer, const Transform &transform)
 [brief description]
 
Optionsoptions ()
 [brief description]
 
- Public Member Functions inherited from scatter::PlotBase
 PlotBase (const std::string &label)
 [brief description]
 
virtual ~PlotBase ()=default
 [brief description]
 
void setLabel (const std::string &label)
 [brief description]
 
void setColour (const Colour &colour)
 [brief description]
 
const std::string & getLabel () const
 [brief description]
 
const ColourgetColour () const
 [brief description]
 
virtual double getYmax ()
 [brief description]
 

Detailed Description

[brief description]

[long description]

Parameters
function[description]
options[description]
Returns
[description]

Constructor & Destructor Documentation

◆ FunctionPlot()

scatter::FunctionPlot::FunctionPlot ( const std::string & label,
const std::vector< double > & x,
const std::function< double(const double &)> & function,
const Options & options )

[brief description]

[long description]

Parameters
x[description]
function[description]
options[description]

◆ ~FunctionPlot()

virtual scatter::FunctionPlot::~FunctionPlot ( )
virtual

[brief description]

[long description]

Member Function Documentation

◆ getLegendEntry()

Legend::Entry scatter::FunctionPlot::getLegendEntry ( )
virtual

create LegendEntry

defines symbol, label, colour

Returns
LegendEntry

Implements scatter::PlotBase.

◆ options()

Options * scatter::FunctionPlot::options ( )

[brief description]

[long description]

Returns
[description]

◆ render()

void scatter::FunctionPlot::render ( Renderer & renderer,
const Transform & transform )
virtual

[brief description]

[long description]

Parameters
renderer[description]
transform[description]

Implements scatter::PlotBase.


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