wykobi::wykobi_graphics_vcl< T > Class Template Reference

#include <biped-stabilizer/third_party/wykobi/wykobi_graphics_vcl.hpp>

Public Member Functions

 wykobi_graphics_vcl (TCanvas *c, unsigned int w, unsigned int h)
 
 ~wykobi_graphics_vcl ()
 
void set_pen (TPen *p)
 
void set_brush (TBrush *b)
 
void set_color (TColor c)
 
void set_width (unsigned int w)
 
void set_height (unsigned int h)
 
TPen * get_pen ()
 
unsigned int width () const
 
unsigned int height () const
 
unsigned int center_x () const
 
unsigned int center_y () const
 
void set_pen_width (int w)
 
void draw_text (const T &x, const T &y, std::string text)
 
void draw_pixel (const T &x, const T &y) const
 
void draw_pixel (const point2d< T > &point) const
 
void draw_segment (const T &x1, const T &y1, const T &x2, const T &y2) const
 
void draw_line (const T &x1, const T &y1, const T &x2, const T &y2) const
 
void draw_triangle (const T &x1, const T &y1, const T &x2, const T &y2, const T &x3, const T &y3) const
 
void draw_quadix (const T &x1, const T &y1, const T &x2, const T &y2, const T &x3, const T &y3, const T &x4, const T &y4) const
 
void draw_rectangle (const T x1, const T &y1, const T &x2, const T &y2) const
 
void draw_circle (const T x, const T &y, const T &radius) const
 
void draw_segment (const point2d< T > &point1, const point2d< T > &point2) const
 
void draw_line (const point2d< T > &point1, const point2d< T > &point2) const
 
void draw_triangle (const point2d< T > &point1, const point2d< T > &point2, const point2d< T > &point3) const
 
void draw_quadix (const point2d< T > &point1, const point2d< T > &point2, const point2d< T > &point3, const point2d< T > &point4) const
 
void draw_rectangle (const point2d< T > &point1, const point2d< T > &point2) const
 
void draw_circle (const point2d< T > &point, const T &radius) const
 
void draw_polyline (std::vector< point2d< T > > point_list)
 
void clear (TColor color)
 
void clear_white ()
 
void clear_black ()
 
void draw (const point2d< T > &point)
 
void draw (const segment< T, 2 > &segment)
 
void draw (const line< T, 2 > &line)
 
void draw (const triangle< T, 2 > &triangle)
 
void draw (const rectangle< T > &rectangle)
 
void draw (const quadix< T, 2 > &quadix)
 
void draw (const circle< T > &circle)
 
void draw (const polygon< T, 2 > &polygon)
 
void draw (const cubic_bezier< T, 2 > &bezier, const std::size_t &point_count)
 
void draw (const quadratic_bezier< T, 2 > &bezier, const std::size_t &point_count)
 

Constructor & Destructor Documentation

◆ wykobi_graphics_vcl()

template<typename T >
wykobi::wykobi_graphics_vcl< T >::wykobi_graphics_vcl ( TCanvas *  c,
unsigned int  w,
unsigned int  h 
)
inline

◆ ~wykobi_graphics_vcl()

template<typename T >
wykobi::wykobi_graphics_vcl< T >::~wykobi_graphics_vcl ( )
inline

Member Function Documentation

◆ center_x()

template<typename T >
unsigned int wykobi::wykobi_graphics_vcl< T >::center_x ( ) const
inline

◆ center_y()

template<typename T >
unsigned int wykobi::wykobi_graphics_vcl< T >::center_y ( ) const
inline

◆ clear()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::clear ( TColor  color)
inline

◆ clear_black()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::clear_black ( )
inline

◆ clear_white()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::clear_white ( )
inline

◆ draw() [1/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const circle< T > &  circle)
inline

◆ draw() [2/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const cubic_bezier< T, 2 > &  bezier,
const std::size_t &  point_count 
)
inline

◆ draw() [3/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const line< T, 2 > &  line)
inline

◆ draw() [4/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const point2d< T > &  point)
inline

◆ draw() [5/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const polygon< T, 2 > &  polygon)
inline

◆ draw() [6/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const quadix< T, 2 > &  quadix)
inline

◆ draw() [7/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const quadratic_bezier< T, 2 > &  bezier,
const std::size_t &  point_count 
)
inline

◆ draw() [8/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const rectangle< T > &  rectangle)
inline

◆ draw() [9/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const segment< T, 2 > &  segment)
inline

◆ draw() [10/10]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw ( const triangle< T, 2 > &  triangle)
inline

◆ draw_circle() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_circle ( const point2d< T > &  point,
const T &  radius 
) const
inline

◆ draw_circle() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_circle ( const T  x,
const T &  y,
const T &  radius 
) const
inline

◆ draw_line() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_line ( const point2d< T > &  point1,
const point2d< T > &  point2 
) const
inline

◆ draw_line() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_line ( const T &  x1,
const T &  y1,
const T &  x2,
const T &  y2 
) const
inline

◆ draw_pixel() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_pixel ( const point2d< T > &  point) const
inline

◆ draw_pixel() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_pixel ( const T &  x,
const T &  y 
) const
inline

◆ draw_polyline()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_polyline ( std::vector< point2d< T > >  point_list)
inline

◆ draw_quadix() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_quadix ( const point2d< T > &  point1,
const point2d< T > &  point2,
const point2d< T > &  point3,
const point2d< T > &  point4 
) const
inline

◆ draw_quadix() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_quadix ( const T &  x1,
const T &  y1,
const T &  x2,
const T &  y2,
const T &  x3,
const T &  y3,
const T &  x4,
const T &  y4 
) const
inline

◆ draw_rectangle() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_rectangle ( const point2d< T > &  point1,
const point2d< T > &  point2 
) const
inline

◆ draw_rectangle() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_rectangle ( const T  x1,
const T &  y1,
const T &  x2,
const T &  y2 
) const
inline

◆ draw_segment() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_segment ( const point2d< T > &  point1,
const point2d< T > &  point2 
) const
inline

◆ draw_segment() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_segment ( const T &  x1,
const T &  y1,
const T &  x2,
const T &  y2 
) const
inline

◆ draw_text()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_text ( const T &  x,
const T &  y,
std::string  text 
)
inline

◆ draw_triangle() [1/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_triangle ( const point2d< T > &  point1,
const point2d< T > &  point2,
const point2d< T > &  point3 
) const
inline

◆ draw_triangle() [2/2]

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::draw_triangle ( const T &  x1,
const T &  y1,
const T &  x2,
const T &  y2,
const T &  x3,
const T &  y3 
) const
inline

◆ get_pen()

template<typename T >
TPen* wykobi::wykobi_graphics_vcl< T >::get_pen ( )
inline

◆ height()

template<typename T >
unsigned int wykobi::wykobi_graphics_vcl< T >::height ( ) const
inline

◆ set_brush()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_brush ( TBrush *  b)
inline

◆ set_color()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_color ( TColor  c)
inline

◆ set_height()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_height ( unsigned int  h)
inline

◆ set_pen()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_pen ( TPen *  p)
inline

◆ set_pen_width()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_pen_width ( int  w)
inline

◆ set_width()

template<typename T >
void wykobi::wykobi_graphics_vcl< T >::set_width ( unsigned int  w)
inline

◆ width()

template<typename T >
unsigned int wykobi::wykobi_graphics_vcl< T >::width ( ) const
inline

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