Public Member Functions | Public Attributes | Static Protected Member Functions | Protected Attributes | List of all members
tuw::LayeredFigure Class Reference

#include <layered_figure.h>

Inheritance diagram for tuw::LayeredFigure:
Inheritance graph
[legend]

Public Member Functions

void init (int width_pixel, int height_pixel, double min_y, double max_y, double min_x, double max_x, double rotation=0, double grid_scale_x=-1, double grid_scale_y=-1, const std::string &background_image=std::string()) override
 
 LayeredFigure (const std::string &title)
 
 LayeredFigure (const LayeredFigure &)=default
 
 LayeredFigure (LayeredFigure &&)=default
 
LayeredFigureoperator= (const LayeredFigure &)=default
 
LayeredFigureoperator= (LayeredFigure &&)=default
 
void outputPlot ()
 
virtual ~LayeredFigure ()=default
 
- Public Member Functions inherited from tuw::Figure
void appendToView (const cv::Mat &_mat, const cv::Scalar &_colMin, const cv::Scalar &_colMax, u_int8_t _truncateLayerVal=0)
 
const cv::Mat & background () const
 
cv::Mat & background ()
 
const std::string & backgroundFileName () const
 
void circle (const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA)
 
void clear ()
 
 Figure (const std::string &title)
 draws the background image More...
 
 Figure (const Figure &)=default
 
 Figure (Figure &&)=default
 
void line (const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=CV_AA)
 
Figureoperator= (const Figure &)=default
 
Figureoperator= (Figure &&)=default
 
void putText (cv::Mat &view, const std::string &text, const Point2D &p, int fontFace=cv::FONT_HERSHEY_PLAIN, double fontScale=0.6, cv::Scalar color=cv::Scalar(128, 0, 0), int thickness=1, int lineType=CV_AA, bool bottomLeftOrigin=false)
 
void putText (const std::string &text, const Point2D &p, int fontFace=cv::FONT_HERSHEY_PLAIN, double fontScale=0.6, cv::Scalar color=cv::Scalar(128, 0, 0), int thickness=1, int lineType=CV_AA, bool bottomLeftOrigin=false)
 
void setLabel (const std::string &label_x=std::string("x=%f"), const std::string &label_y=std::string("y=%f"))
 
void setView (const cv::Mat &view)
 
void symbol (cv::Mat &view, const Point2D &p, const cv::Scalar &color)
 
void symbol (const Point2D &p, const cv::Scalar &color)
 
void symbol (cv::Mat &view, const Pose2D &p, double radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA)
 
void symbol (const Pose2D &p, double radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA)
 
const std::string title () const
 
const cv::Mat & view () const
 
cv::Mat & view ()
 
virtual ~Figure ()=default
 
- Public Member Functions inherited from tuw::WorldScopedMaps
template<typename T >
void circle (T &map, const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const
 
template<typename T >
cv::Scalar_< T > get (cv::Mat_< T > &map, const Point2D &p) const
 
int height () const
 
std::string infoHeader () const
 
void init (int width_pixel, int height_pixel, double min_y, double max_y, double min_x, double max_x, double rotation=0)
 
template<typename T >
void init (const T &metadata)
 
bool initialized ()
 
template<typename T >
void line (T &map, const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const
 
Point2D m2w (const Point2D &src) const
 
Point2D m2w (double x, double y) const
 
Point2Dm2w (const Point2D &src, Point2D &des) const
 
double max_x () const
 
double max_y () const
 
double min_x () const
 
double min_y () const
 
const cv::Matx33d & Mm2w () const
 
const cv::Matx33d & Mw2m () const
 
WorldScopedMapsoperator= (const WorldScopedMaps &)=default
 
WorldScopedMapsoperator= (WorldScopedMaps &&)=default
 
double scale_w2m (double v) const
 
double scale_x () const
 
double scale_y () const
 
Point2D w2m (const Point2D &src) const
 
Point2D w2m (double x, double y) const
 
Point2Dw2m (const Point2D &src, Point2D &des) const
 
int width () const
 
 WorldScopedMaps ()
 
 WorldScopedMaps (const WorldScopedMaps &)=default
 
 WorldScopedMaps (WorldScopedMaps &&)=default
 
virtual ~WorldScopedMaps ()=default
 

Public Attributes

LayeredMaps layeredMaps
 

Static Protected Member Functions

static void callbackTrkbar1 (int flags, void *param)
 

Protected Attributes

size_t sizeLayers_
 
int view_idx_
 

Additional Inherited Members

- Static Public Attributes inherited from tuw::Figure
static const cv::Scalar black
 
static const cv::Scalar blue
 
static const cv::Scalar blue_bright
 
static const cv::Scalar blue_dark
 
static const cv::Scalar cyan
 
static const cv::Scalar gray
 
static const cv::Scalar gray_bright
 
static const cv::Scalar green
 color to use with the drawing functions More...
 
static const cv::Scalar green_bright
 
static const cv::Scalar green_dark
 
static const cv::Scalar magenta
 
static const cv::Scalar niceBlue
 
static const cv::Scalar niceDirtyPink
 
static const cv::Scalar niceGreen
 
static const cv::Scalar niceGreenBlue
 
static const cv::Scalar niceGreenWashed
 
static const cv::Scalar niceGrey
 
static const cv::Scalar niceGreyDark
 
static const cv::Scalar niceGreyLight
 
static const cv::Scalar niceGreyPurple
 
static const cv::Scalar niceLime
 
static const cv::Scalar niceMagenta
 
static const cv::Scalar niceMustard
 
static const cv::Scalar niceRed
 
static const cv::Scalar niceRedDark
 
static const cv::Scalar orange
 
static const cv::Scalar red
 
static const cv::Scalar white
 
static const cv::Scalar yellow
 

Detailed Description

Definition at line 48 of file layered_figure.h.

Constructor & Destructor Documentation

LayeredFigure::LayeredFigure ( const std::string &  title)

Definition at line 46 of file layered_figure.cpp.

virtual tuw::LayeredFigure::~LayeredFigure ( )
virtualdefault
tuw::LayeredFigure::LayeredFigure ( const LayeredFigure )
default
tuw::LayeredFigure::LayeredFigure ( LayeredFigure &&  )
default

Member Function Documentation

void LayeredFigure::callbackTrkbar1 ( int  flags,
void *  param 
)
staticprotected

Definition at line 54 of file layered_figure.cpp.

void LayeredFigure::init ( int  width_pixel,
int  height_pixel,
double  min_y,
double  max_y,
double  min_x,
double  max_x,
double  rotation = 0,
double  grid_scale_x = -1,
double  grid_scale_y = -1,
const std::string &  background_image = std::string() 
)
overridevirtual

used to initialize the figure

Parameters
width_pixelpixel size of the canvas
height_pixelpixel size of the canvas
min_yminimal y of the visualized space
max_ymaximal y of the visualized space
min_xminimal x of the visualized space
max_xmaximal x of the visualized space
rotationrotation of the visualized space
grid_scale_xdimension of the drawn grid, if -1 no grid will be drawn
grid_scale_ydimension of the drawn grid, if -1 no grid will be drawn
background_imagefile name of an image for the background, it can be empty as well

Reimplemented from tuw::Figure.

Definition at line 58 of file layered_figure.cpp.

LayeredFigure& tuw::LayeredFigure::operator= ( const LayeredFigure )
default
LayeredFigure& tuw::LayeredFigure::operator= ( LayeredFigure &&  )
default
void LayeredFigure::outputPlot ( )

Definition at line 74 of file layered_figure.cpp.

Member Data Documentation

LayeredMaps tuw::LayeredFigure::layeredMaps

Definition at line 66 of file layered_figure.h.

size_t tuw::LayeredFigure::sizeLayers_
protected

Definition at line 70 of file layered_figure.h.

int tuw::LayeredFigure::view_idx_
protected

Definition at line 69 of file layered_figure.h.


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


tuw_geometry
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:33:09