Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::bezier_arc Class Reference

#include <src/agg/agg_bezier_arc.h>

Public Member Functions

 bezier_arc ()
 
 bezier_arc (double x, double y, double rx, double ry, double start_angle, double sweep_angle)
 
void init (double x, double y, double rx, double ry, double start_angle, double sweep_angle)
 
void rewind (unsigned)
 
unsigned vertex (double *x, double *y)
 
unsigned num_vertices () const
 
const double * vertices () const
 
double * vertices ()
 

Private Attributes

unsigned m_vertex
 
unsigned m_num_vertices
 
double m_vertices [26]
 
unsigned m_cmd
 

Detailed Description

Constructor & Destructor Documentation

◆ bezier_arc() [1/2]

agg::bezier_arc::bezier_arc ( )
inline
unsigned m_num_vertices
Definition agg_bezier_arc.h:83
unsigned m_cmd
Definition agg_bezier_arc.h:85
unsigned m_vertex
Definition agg_bezier_arc.h:82
@ path_cmd_line_to
Definition agg_basics.h:372

◆ bezier_arc() [2/2]

agg::bezier_arc::bezier_arc ( double  x,
double  y,
double  rx,
double  ry,
double  start_angle,
double  sweep_angle 
)
inline
48 {
49 init(x, y, rx, ry, start_angle, sweep_angle);
50 }
void init(double x, double y, double rx, double ry, double start_angle, double sweep_angle)

References init().

+ Here is the call graph for this function:

Member Function Documentation

◆ init()

void agg::bezier_arc::init ( double  x,
double  y,
double  rx,
double  ry,
double  start_angle,
double  sweep_angle 
)

Referenced by bezier_arc().

+ Here is the caller graph for this function:

◆ num_vertices()

unsigned agg::bezier_arc::num_vertices ( ) const
inline
77{ return m_num_vertices; }

References m_num_vertices.

Referenced by agg::bezier_arc_svg::num_vertices().

+ Here is the caller graph for this function:

◆ rewind()

void agg::bezier_arc::rewind ( unsigned  )
inline
60 {
61 m_vertex = 0;
62 }

References m_vertex.

Referenced by agg::bezier_arc_svg::rewind().

+ Here is the caller graph for this function:

◆ vertex()

unsigned agg::bezier_arc::vertex ( double *  x,
double *  y 
)
inline
66 {
69 *y = m_vertices[m_vertex + 1];
70 m_vertex += 2;
71 return (m_vertex == 2) ? unsigned(path_cmd_move_to) : m_cmd;
72 }
double m_vertices[26]
Definition agg_bezier_arc.h:84
const Scalar & y
Definition MathFunctions.h:552
@ path_cmd_move_to
Definition agg_basics.h:371
@ path_cmd_stop
Definition agg_basics.h:370
TCoord< P > x(const P &p)
Definition geometry_traits.hpp:297

References m_cmd, m_num_vertices, m_vertex, m_vertices, agg::path_cmd_move_to, and agg::path_cmd_stop.

Referenced by agg::bezier_arc_svg::vertex().

+ Here is the caller graph for this function:

◆ vertices() [1/2]

double * agg::bezier_arc::vertices ( )
inline
79{ return m_vertices; }

References m_vertices.

◆ vertices() [2/2]

const double * agg::bezier_arc::vertices ( ) const
inline
78{ return m_vertices; }

References m_vertices.

Referenced by agg::bezier_arc_svg::vertices(), and agg::bezier_arc_svg::vertices().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_cmd

unsigned agg::bezier_arc::m_cmd
private

Referenced by vertex().

◆ m_num_vertices

unsigned agg::bezier_arc::m_num_vertices
private

Referenced by num_vertices(), and vertex().

◆ m_vertex

unsigned agg::bezier_arc::m_vertex
private

Referenced by rewind(), and vertex().

◆ m_vertices

double agg::bezier_arc::m_vertices[26]
private

Referenced by vertex(), vertices(), and vertices().


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