Static Public Member Functions | Static Private Member Functions | List of all members
f2c::Visualizer Class Reference

Class to plot Fields2Cover data structures. More...

#include <visualizer.h>

Static Public Member Functions

static void axis_equal ()
 
static void figure ()
 Create figure to plot on. More...
 
static void figure_size (unsigned int width, unsigned int height)
 Change size of current figure. More...
 
static double getLineWidth ()
 
static void plot (const F2CCell &cell, const std::vector< double > &color={})
 
static void plot (const F2CCells &cells, const std::vector< double > &color={})
 
static void plot (const F2CField &field, const std::vector< double > &color={})
 
static void plot (const F2CLinearRing &ring, const std::vector< double > &color={})
 
static void plot (const F2CLineString &line, const std::vector< double > &color={})
 
static void plot (const F2CMultiLineString &multiline, const std::vector< double > &color={})
 
static void plot (const F2CMultiPoint &multipoint, const std::vector< double > &color={})
 
static void plot (const F2CPath &path, const std::vector< std::vector< double >> &color={})
 
static void plot (const F2CPoint &p, const std::vector< double > &color={})
 
static void plot (const F2CRoute &route, const std::vector< std::vector< double >> &color={})
 
static void plot (const F2CSwath &s, const std::vector< double > &color={})
 
static void plot (const F2CSwaths &s, const std::vector< std::vector< double >> &color={})
 
static void plot (const F2CSwathsByCells &s, const std::vector< std::vector< double >> &color={})
 
static void plot (const std::vector< double > &t, const std::vector< double > &d, const std::vector< double > &color)
 
static void plot (const std::vector< F2CRoute > &route, const std::vector< std::vector< double >> &color={})
 
static void plot (const std::vector< F2CSwathsByCells > &vs, const std::vector< 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. More...
 
template<class T >
static void plot (const std::vector< T > &v_t, const std::vector< std::vector< double >> &color={})
 
static void plot (double x, double y, const std::vector< double > &color={})
 
static void plotFilled (const F2CCell &cell, 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)
 
static void plotFilled (const F2CCells &cells, const std::vector< double > &poly_color, const std::vector< double > &holes_color)
 
static void plotFilled (const F2CField &field, const std::vector< double > &color={})
 
static void plotFilled (const F2CLinearRing &ring, const std::vector< double > &color)
 
static void save (const std::string &file)
 
static void show ()
 
static void title (const std::string &text)
 
static void xlim (double min, double max)
 
static void ylim (double min, double max)
 

Static Private Member Functions

static std::vector< std::vector< double > > color_linspace (const std::vector< int > &min, const std::vector< int > &max, size_t N)
 
template<class T >
static std::vector< F2CPointdata2vector (const T &t)
 
static std::vector< std::vector< double > > getComponents (const std::vector< F2CPoint > &points)
 
static std::vector< double > linspace (double min, double max, size_t N)
 

Detailed Description

Class to plot Fields2Cover data structures.

Definition at line 20 of file visualizer.h.

Member Function Documentation

◆ axis_equal()

void f2c::Visualizer::axis_equal ( )
static

Definition at line 250 of file visualizer.cpp.

◆ color_linspace()

std::vector< std::vector< double > > f2c::Visualizer::color_linspace ( const std::vector< int > &  min,
const std::vector< int > &  max,
size_t  N 
)
staticprivate

Definition at line 307 of file visualizer.cpp.

◆ data2vector()

template<class T >
std::vector< F2CPoint > f2c::Visualizer::data2vector ( const T &  t)
staticprivate

Definition at line 120 of file visualizer.h.

◆ figure()

void f2c::Visualizer::figure ( )
static

Create figure to plot on.

Definition at line 254 of file visualizer.cpp.

◆ figure_size()

void f2c::Visualizer::figure_size ( unsigned int  width,
unsigned int  height 
)
static

Change size of current figure.

Definition at line 260 of file visualizer.cpp.

◆ getComponents()

std::vector< std::vector< double > > f2c::Visualizer::getComponents ( const std::vector< F2CPoint > &  points)
staticprivate

Definition at line 288 of file visualizer.cpp.

◆ getLineWidth()

static double f2c::Visualizer::getLineWidth ( )
inlinestatic

Definition at line 22 of file visualizer.h.

◆ linspace()

std::vector< double > f2c::Visualizer::linspace ( double  min,
double  max,
size_t  N 
)
staticprivate

Definition at line 298 of file visualizer.cpp.

◆ plot() [1/19]

void f2c::Visualizer::plot ( const F2CCell cell,
const std::vector< double > &  color = {} 
)
static

Definition at line 129 of file visualizer.cpp.

◆ plot() [2/19]

void f2c::Visualizer::plot ( const F2CCells cells,
const std::vector< double > &  color = {} 
)
static

Definition at line 136 of file visualizer.cpp.

◆ plot() [3/19]

void f2c::Visualizer::plot ( const F2CField field,
const std::vector< double > &  color = {} 
)
static

Definition at line 196 of file visualizer.cpp.

◆ plot() [4/19]

void f2c::Visualizer::plot ( const F2CLinearRing ring,
const std::vector< double > &  color = {} 
)
static

Definition at line 124 of file visualizer.cpp.

◆ plot() [5/19]

void f2c::Visualizer::plot ( const F2CLineString line,
const std::vector< double > &  color = {} 
)
static

Definition at line 100 of file visualizer.cpp.

◆ plot() [6/19]

void f2c::Visualizer::plot ( const F2CMultiLineString multiline,
const std::vector< double > &  color = {} 
)
static

Definition at line 117 of file visualizer.cpp.

◆ plot() [7/19]

void f2c::Visualizer::plot ( const F2CMultiPoint multipoint,
const std::vector< double > &  color = {} 
)
static

Definition at line 110 of file visualizer.cpp.

◆ plot() [8/19]

void f2c::Visualizer::plot ( const F2CPath path,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 159 of file visualizer.cpp.

◆ plot() [9/19]

void f2c::Visualizer::plot ( const F2CPoint p,
const std::vector< double > &  color = {} 
)
static

Definition at line 34 of file visualizer.cpp.

◆ plot() [10/19]

void f2c::Visualizer::plot ( const F2CRoute route,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 153 of file visualizer.cpp.

◆ plot() [11/19]

void f2c::Visualizer::plot ( const F2CSwath s,
const std::vector< double > &  color = {} 
)
static

Definition at line 38 of file visualizer.cpp.

◆ plot() [12/19]

void f2c::Visualizer::plot ( const F2CSwaths s,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 53 of file visualizer.cpp.

◆ plot() [13/19]

void f2c::Visualizer::plot ( const F2CSwathsByCells s,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 67 of file visualizer.cpp.

◆ plot() [14/19]

void f2c::Visualizer::plot ( const std::vector< double > &  t,
const std::vector< double > &  d,
const std::vector< double > &  color 
)
static

Definition at line 15 of file visualizer.cpp.

◆ plot() [15/19]

void f2c::Visualizer::plot ( const std::vector< F2CRoute > &  route,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 144 of file visualizer.cpp.

◆ plot() [16/19]

void f2c::Visualizer::plot ( const std::vector< F2CSwathsByCells > &  vs,
const std::vector< std::vector< double >> &  color = {} 
)
static

Definition at line 81 of file visualizer.cpp.

◆ plot() [17/19]

template<class T >
void f2c::Visualizer::plot ( const std::vector< T > &  v_t,
const std::vector< double > &  color 
)
static

Plot vector of type T.

Definition at line 134 of file visualizer.h.

◆ plot() [18/19]

template<class T >
static void f2c::Visualizer::plot ( const std::vector< T > &  v_t,
const std::vector< std::vector< double >> &  color = {} 
)
static

◆ plot() [19/19]

void f2c::Visualizer::plot ( double  x,
double  y,
const std::vector< double > &  color = {} 
)
static

Definition at line 23 of file visualizer.cpp.

◆ plotFilled() [1/6]

void f2c::Visualizer::plotFilled ( const F2CCell cell,
const std::vector< double > &  color 
)
static

Definition at line 221 of file visualizer.cpp.

◆ plotFilled() [2/6]

void f2c::Visualizer::plotFilled ( const F2CCell cell,
const std::vector< double > &  poly_color,
const std::vector< double > &  holes_color 
)
static

Definition at line 226 of file visualizer.cpp.

◆ plotFilled() [3/6]

void f2c::Visualizer::plotFilled ( const F2CCells cells,
const std::vector< double > &  poly_color 
)
static

Definition at line 206 of file visualizer.cpp.

◆ plotFilled() [4/6]

void f2c::Visualizer::plotFilled ( const F2CCells cells,
const std::vector< double > &  poly_color,
const std::vector< double > &  holes_color 
)
static

Definition at line 213 of file visualizer.cpp.

◆ plotFilled() [5/6]

void f2c::Visualizer::plotFilled ( const F2CField field,
const std::vector< double > &  color = {} 
)
static

Definition at line 200 of file visualizer.cpp.

◆ plotFilled() [6/6]

void f2c::Visualizer::plotFilled ( const F2CLinearRing ring,
const std::vector< double > &  color 
)
static

Definition at line 238 of file visualizer.cpp.

◆ save()

void f2c::Visualizer::save ( const std::string &  file)
static

Save figure to a file

Parameters
fileName of the file

Definition at line 272 of file visualizer.cpp.

◆ show()

void f2c::Visualizer::show ( )
static

Show the figure on screen

Parameters
blockif true the program will wait until the screen is closed to continue

Definition at line 268 of file visualizer.cpp.

◆ title()

void f2c::Visualizer::title ( const std::string &  text)
static

Add title to the figure

Parameters
textTitle text

Definition at line 276 of file visualizer.cpp.

◆ xlim()

void f2c::Visualizer::xlim ( double  min,
double  max 
)
static

Definition at line 280 of file visualizer.cpp.

◆ ylim()

void f2c::Visualizer::ylim ( double  min,
double  max 
)
static

Definition at line 284 of file visualizer.cpp.


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


fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31