|
| Canvas () |
|
virtual | ~Canvas () |
|
void | setWidth (unsigned int width) |
|
double | getWidth () const |
|
void | setHeight (unsigned int height) |
|
double | getHeight () const |
|
void | setTitle (const std::string &title) |
|
const std::string & | getTitle () const |
|
virtual void | clear () |
|
| Canvas (unsigned int width, unsigned int height) |
|
| ~Canvas () |
|
void | setOrigin (CoordinateType x, CoordinateType y) |
|
void | setBasisVectors (std::initializer_list< std::initializer_list< CoordinateType >> basisVectors) |
|
void | drawPixel (const RGBA &rgba, CoordinateType x, CoordinateType y) |
|
void | drawCircle (const RGBA &rgba, CoordinateType x, CoordinateType y, CoordinateType radius) |
|
void | save (std::string filename) const |
|
template<> |
void | drawPixel (const RGBA &rgba, unsigned int x, unsigned int y) |
|
template<> |
void | drawPixel (const RGBA &rgba, double x, double y) |
|
template<> |
void | drawCircle (const RGBA &rgba, unsigned int x, unsigned int y, unsigned int radius) |
|
template<> |
void | drawCircle (const RGBA &rgba, double x, double y, double radius) |
|
◆ Canvas() [1/2]
template<typename CoordinateType >
◆ ~Canvas() [1/2]
template<typename CoordinateType >
◆ Canvas() [2/2]
template<typename CoordinateType >
◆ ~Canvas() [2/2]
template<typename CoordinateType >
◆ clear()
template<typename CoordinateType >
◆ drawCircle()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::drawCircle |
( |
const RGBA & |
rgba, |
|
|
CoordinateType |
x, |
|
|
CoordinateType |
y, |
|
|
CoordinateType |
radius |
|
) |
| |
◆ drawPixel()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::drawPixel |
( |
const RGBA & |
rgba, |
|
|
CoordinateType |
x, |
|
|
CoordinateType |
y |
|
) |
| |
◆ getHeight()
template<typename CoordinateType >
◆ getTitle()
template<typename CoordinateType >
const std::string & TBTK::Canvas< CoordinateType >::getTitle |
( |
| ) |
const |
|
inline |
◆ getWidth()
template<typename CoordinateType >
◆ save()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::save |
( |
std::string |
filename | ) |
const |
|
inline |
◆ setBasisVectors()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::setBasisVectors |
( |
std::initializer_list< std::initializer_list< CoordinateType >> |
basisVectors | ) |
|
|
inline |
◆ setHeight()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::setHeight |
( |
unsigned int |
height | ) |
|
|
inline |
◆ setOrigin()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::setOrigin |
( |
CoordinateType |
x, |
|
|
CoordinateType |
y |
|
) |
| |
◆ setTitle()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::setTitle |
( |
const std::string & |
title | ) |
|
|
inline |
◆ setWidth()
template<typename CoordinateType >
void TBTK::Canvas< CoordinateType >::setWidth |
( |
unsigned int |
width | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /home/kristofer.bjornson/SecondQuantizationCom/TBTK/Lib/include/Plotter2/TBTK/Canvas.h