Class Visualizer
Defined in File visualizer.h
Class Documentation
-
class Visualizer
Class to plot Fields2Cover data structures.
Public Static Functions
-
static inline double getLineWidth()
-
static void plot(double x, double y, const std::vector<double> &color = {})
-
static void plot(const F2CSwathsByCells &s, const std::vector<std::vector<double>> &color = {})
-
static void plot(const std::vector<F2CSwathsByCells> &vs, const std::vector<std::vector<double>> &color = {})
-
static void plot(const F2CLineString &line, const std::vector<double> &color = {})
-
static void plot(const F2CLinearRing &ring, const std::vector<double> &color = {})
-
static void plot(const F2CMultiPoint &multipoint, const std::vector<double> &color = {})
-
static void plot(const F2CMultiLineString &multiline, const std::vector<double> &color = {})
-
static void plot(const std::vector<F2CRoute> &route, const std::vector<std::vector<double>> &color = {})
-
static void plotFilled(const F2CLinearRing &ring, const std::vector<double> &color)
-
static void plotFilled(const F2CCell &cell, const std::vector<double> &poly_color, const std::vector<double> &holes_color)
-
static void plotFilled(const F2CCells &cells, const std::vector<double> &poly_color, const std::vector<double> &holes_color)
-
static void plot(const std::vector<double> &t, const std::vector<double> &d, const std::vector<double> &color)
-
template<class T>
static void plot(const std::vector<T> &v_t, const std::vector<double> &color) Plot vector of type T.
-
template<class T>
static void plot(const std::vector<T> &v_t, const std::vector<std::vector<double>> &color = {})
-
static void figure()
Create figure to plot on.
-
static void figure_size(unsigned int width, unsigned int height)
Change size of current figure.
-
static void axis_equal()
-
static void show()
Show the figure on screen.
- Parameters:
block – if true the program will wait until the screen is closed to continue
-
static void save(const std::string &file)
Save figure to a file.
- Parameters:
file – Name of the file
-
static void title(const std::string &text)
Add title to the figure.
- Parameters:
text – Title text
-
static void xlim(double min, double max)
-
static void ylim(double min, double max)
-
static inline double getLineWidth()