wykobi::wykobi_graphics_opengl< T > Class Template Reference

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

Public Member Functions

 wykobi_graphics_opengl (const unsigned int &w, const unsigned int &h, DrawingMode dm)
 
 ~wykobi_graphics_opengl ()
 
void set_color (const unsigned int &_red, const unsigned int &_green, const unsigned int &_blue)
 
void set_color (const unsigned int &color_index)
 
void draw_text (const T &x, const T &y, const std::string &text)
 
void draw_pixel (const T &x, const T &y) const
 
void draw_pixel (const T &x, const T &y, const T &z) const
 
void draw_segment (const T &x1, const T &y1, const T &x2, const T &y2) const
 
void draw_segment (const T &x1, const T &y1, const T &z1, const T &x2, const T &y2, const T &z2) 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_triangle (const T &x1, const T &y1, const T &z1, const T &x2, const T &y2, const T &z2, const T &x3, const T &y3, const T &z3) 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_quadix (const T &x1, const T &y1, const T &z1, const T &x2, const T &y2, const T &z2, const T &x3, const T &y3, const T &z3, const T &x4, const T &y4, const T &z4) 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_sphere (const T &x, const T &y, const T &radius) const
 
void draw_pixel (const point2d< T > &point) const
 
void draw_pixel (const point3d< T > &point) const
 
void draw_segment (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_triangle (const point3d< T > &point1, const point3d< T > &point2, const point3d< 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_quadix (const point3d< T > &point1, const point3d< T > &point2, const point3d< T > &point3, const point3d< 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 draw_polyline (std::vector< point3d< T > > point_list)
 
void clear ()
 
void draw (const point2d< T > &point)
 
void draw (const segment< T, 2 > &segment)
 
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 point3d< T > &point)
 
void draw (const segment< T, 3 > &segment)
 
void draw (const triangle< T, 3 > &triangle)
 
void draw (const quadix< T, 3 > &quadix)
 
void draw (const sphere< T > &sphere)
 
void draw (const polygon< T, 2 > &polygon, const bool convex=false)
 
void draw (const polygon< T, 3 > &polygon)
 
void draw (const cubic_bezier< T, 2 > &bezier, const std::size_t &point_count)
 
void draw (const cubic_bezier< T, 3 > &bezier, const std::size_t &point_count)
 
void draw (const quadratic_bezier< T, 2 > &bezier, const std::size_t &point_count)
 
void draw (const quadratic_bezier< T, 3 > &bezier, const std::size_t &point_count)
 

Constructor & Destructor Documentation

◆ wykobi_graphics_opengl()

template<typename T >
wykobi::wykobi_graphics_opengl< T >::wykobi_graphics_opengl ( const unsigned int &  w,
const unsigned int &  h,
DrawingMode  dm 
)
inline

◆ ~wykobi_graphics_opengl()

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

Member Function Documentation

◆ clear()

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::clear ( )
inline

◆ draw() [1/17]

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

◆ draw() [2/17]

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

◆ draw() [3/17]

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

◆ draw() [4/17]

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

◆ draw() [5/17]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw ( const point3d< T > &  point)
inline

◆ draw() [6/17]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw ( const polygon< T, 2 > &  polygon,
const bool  convex = false 
)
inline

◆ draw() [7/17]

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

◆ draw() [8/17]

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

◆ draw() [9/17]

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

◆ draw() [10/17]

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

◆ draw() [11/17]

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

◆ draw() [12/17]

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

◆ draw() [13/17]

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

◆ draw() [14/17]

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

◆ draw() [15/17]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw ( const sphere< T > &  sphere)
inline

◆ draw() [16/17]

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

◆ draw() [17/17]

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

◆ draw_circle() [1/2]

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

◆ draw_circle() [2/2]

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

◆ draw_pixel() [1/4]

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

◆ draw_pixel() [2/4]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw_pixel ( const point3d< T > &  point) const
inline

◆ draw_pixel() [3/4]

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

◆ draw_pixel() [4/4]

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

◆ draw_polyline() [1/2]

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

◆ draw_polyline() [2/2]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw_polyline ( std::vector< point3d< T > >  point_list)
inline

◆ draw_quadix() [1/4]

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

◆ draw_quadix() [2/4]

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

◆ draw_quadix() [3/4]

template<typename T >
void wykobi::wykobi_graphics_opengl< 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_quadix() [4/4]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::draw_quadix ( const T &  x1,
const T &  y1,
const T &  z1,
const T &  x2,
const T &  y2,
const T &  z2,
const T &  x3,
const T &  y3,
const T &  z3,
const T &  x4,
const T &  y4,
const T &  z4 
) const
inline

◆ draw_rectangle() [1/2]

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

◆ draw_rectangle() [2/2]

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

◆ draw_segment() [1/3]

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

◆ draw_segment() [2/3]

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

◆ draw_segment() [3/3]

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

◆ draw_sphere()

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

◆ draw_text()

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

◆ draw_triangle() [1/4]

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

◆ draw_triangle() [2/4]

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

◆ draw_triangle() [3/4]

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

◆ draw_triangle() [4/4]

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

◆ set_color() [1/2]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::set_color ( const unsigned int &  _red,
const unsigned int &  _green,
const unsigned int &  _blue 
)
inline

◆ set_color() [2/2]

template<typename T >
void wykobi::wykobi_graphics_opengl< T >::set_color ( const unsigned int &  color_index)
inline

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