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

#include <src/agg/agg_path_storage.h>

+ Collaboration diagram for agg::line_adaptor:

Public Types

typedef double value_type
 

Public Member Functions

 line_adaptor ()
 
 line_adaptor (double x1, double y1, double x2, double y2)
 
void init (double x1, double y1, double x2, double y2)
 
void rewind (unsigned)
 
unsigned vertex (double *x, double *y)
 

Private Attributes

double m_coord [4]
 
poly_plain_adaptor< double > m_line
 

Detailed Description

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ line_adaptor() [1/2]

agg::line_adaptor::line_adaptor ( )
inline
550: m_line(m_coord, 2, false) {}
double m_coord[4]
Definition agg_path_storage.h:580
poly_plain_adaptor< double > m_line
Definition agg_path_storage.h:581

◆ line_adaptor() [2/2]

agg::line_adaptor::line_adaptor ( double  x1,
double  y1,
double  x2,
double  y2 
)
inline
551 :
552 m_line(m_coord, 2, false)
553 {
554 m_coord[0] = x1;
555 m_coord[1] = y1;
556 m_coord[2] = x2;
557 m_coord[3] = y2;
558 }

References m_coord.

Member Function Documentation

◆ init()

void agg::line_adaptor::init ( double  x1,
double  y1,
double  x2,
double  y2 
)
inline
561 {
562 m_coord[0] = x1;
563 m_coord[1] = y1;
564 m_coord[2] = x2;
565 m_coord[3] = y2;
566 m_line.rewind(0);
567 }
void rewind(unsigned)
Definition agg_path_storage.h:382

References m_coord, m_line, and agg::poly_plain_adaptor< T >::rewind().

+ Here is the call graph for this function:

◆ rewind()

void agg::line_adaptor::rewind ( unsigned  )
inline
570 {
571 m_line.rewind(0);
572 }

References m_line, and agg::poly_plain_adaptor< T >::rewind().

+ Here is the call graph for this function:

◆ vertex()

unsigned agg::line_adaptor::vertex ( double *  x,
double *  y 
)
inline
575 {
576 return m_line.vertex(x, y);
577 }
unsigned vertex(double *x, double *y)
Definition agg_path_storage.h:388

References m_line, and agg::poly_plain_adaptor< T >::vertex().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_coord

double agg::line_adaptor::m_coord[4]
private

Referenced by line_adaptor(), and init().

◆ m_line

poly_plain_adaptor<double> agg::line_adaptor::m_line
private

Referenced by init(), rewind(), and vertex().


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