![]() |
Prusa Slicer 2.6.0
|
#include <src/agg/agg_path_storage.h>
Public Types | |
| typedef VertexContainer | container_type |
| typedef path_base< VertexContainer > | self_type |
Public Member Functions | |
| path_base () | |
| void | remove_all () |
| void | free_all () |
| unsigned | start_new_path () |
| void | move_to (double x, double y) |
| void | move_rel (double dx, double dy) |
| void | line_to (double x, double y) |
| void | line_rel (double dx, double dy) |
| void | hline_to (double x) |
| void | hline_rel (double dx) |
| void | vline_to (double y) |
| void | vline_rel (double dy) |
| void | arc_to (double rx, double ry, double angle, bool large_arc_flag, bool sweep_flag, double x, double y) |
| void | arc_rel (double rx, double ry, double angle, bool large_arc_flag, bool sweep_flag, double dx, double dy) |
| void | curve3 (double x_ctrl, double y_ctrl, double x_to, double y_to) |
| void | curve3_rel (double dx_ctrl, double dy_ctrl, double dx_to, double dy_to) |
| void | curve3 (double x_to, double y_to) |
| void | curve3_rel (double dx_to, double dy_to) |
| void | curve4 (double x_ctrl1, double y_ctrl1, double x_ctrl2, double y_ctrl2, double x_to, double y_to) |
| void | curve4_rel (double dx_ctrl1, double dy_ctrl1, double dx_ctrl2, double dy_ctrl2, double dx_to, double dy_to) |
| void | curve4 (double x_ctrl2, double y_ctrl2, double x_to, double y_to) |
| void | curve4_rel (double x_ctrl2, double y_ctrl2, double x_to, double y_to) |
| void | end_poly (unsigned flags=path_flags_close) |
| void | close_polygon (unsigned flags=path_flags_none) |
| const container_type & | vertices () const |
| container_type & | vertices () |
| unsigned | total_vertices () const |
| void | rel_to_abs (double *x, double *y) const |
| unsigned | last_vertex (double *x, double *y) const |
| unsigned | prev_vertex (double *x, double *y) const |
| double | last_x () const |
| double | last_y () const |
| unsigned | vertex (unsigned idx, double *x, double *y) const |
| unsigned | command (unsigned idx) const |
| void | modify_vertex (unsigned idx, double x, double y) |
| void | modify_vertex (unsigned idx, double x, double y, unsigned cmd) |
| void | modify_command (unsigned idx, unsigned cmd) |
| void | rewind (unsigned path_id) |
| unsigned | vertex (double *x, double *y) |
| unsigned | arrange_polygon_orientation (unsigned start, path_flags_e orientation) |
| unsigned | arrange_orientations (unsigned path_id, path_flags_e orientation) |
| void | arrange_orientations_all_paths (path_flags_e orientation) |
| void | invert_polygon (unsigned start) |
| void | flip_x (double x1, double x2) |
| void | flip_y (double y1, double y2) |
| template<class VertexSource > | |
| void | concat_path (VertexSource &vs, unsigned path_id=0) |
| template<class VertexSource > | |
| void | join_path (VertexSource &vs, unsigned path_id=0) |
| template<class T > | |
| void | concat_poly (const T *data, unsigned num_points, bool closed) |
| template<class T > | |
| void | join_poly (const T *data, unsigned num_points, bool closed) |
| void | translate (double dx, double dy, unsigned path_id=0) |
| void | translate_all_paths (double dx, double dy) |
| template<class Trans > | |
| void | transform (const Trans &trans, unsigned path_id=0) |
| template<class Trans > | |
| void | transform_all_paths (const Trans &trans) |
| unsigned | align_path (unsigned idx=0) |
| void | align_all_paths () |
Private Member Functions | |
| unsigned | perceive_polygon_orientation (unsigned start, unsigned end) |
| void | invert_polygon (unsigned start, unsigned end) |
Private Attributes | |
| VertexContainer | m_vertices |
| unsigned | m_iterator |
| typedef VertexContainer agg::path_base< VertexContainer >::container_type |
| typedef path_base<VertexContainer> agg::path_base< VertexContainer >::self_type |
|
inline |
|
inline |
References agg::path_base< VertexContainer >::align_path(), and agg::path_base< VertexContainer >::total_vertices().
Here is the call graph for this function:
|
inline |
References agg::is_drawing(), agg::is_equal_eps(), agg::is_move_to(), agg::path_base< VertexContainer >::modify_vertex(), agg::path_base< VertexContainer >::total_vertices(), and agg::path_base< VertexContainer >::vertex().
Referenced by agg::path_base< VertexContainer >::align_all_paths().
Here is the call graph for this function:
Here is the caller graph for this function:| void agg::path_base< VC >::arc_rel | ( | double | rx, |
| double | ry, | ||
| double | angle, | ||
| bool | large_arc_flag, | ||
| bool | sweep_flag, | ||
| double | dx, | ||
| double | dy | ||
| ) |
| void agg::path_base< VC >::arc_to | ( | double | rx, |
| double | ry, | ||
| double | angle, | ||
| bool | large_arc_flag, | ||
| bool | sweep_flag, | ||
| double | x, | ||
| double | y | ||
| ) |
References agg::calc_distance(), and agg::is_vertex().
Here is the call graph for this function:| unsigned agg::path_base< VC >::arrange_orientations | ( | unsigned | path_id, |
| path_flags_e | orientation | ||
| ) |
References agg::is_stop(), and agg::path_flags_none.
Here is the call graph for this function:| void agg::path_base< VC >::arrange_orientations_all_paths | ( | path_flags_e | orientation | ) |
References agg::path_flags_none.
| unsigned agg::path_base< VC >::arrange_polygon_orientation | ( | unsigned | start, |
| path_flags_e | orientation | ||
| ) |
References cmd, agg::is_end_poly(), agg::is_move_to(), agg::is_next_poly(), agg::is_vertex(), agg::path_flags_none, and agg::set_orientation().
Here is the call graph for this function:
|
inline |
References agg::path_flags_close.
|
inline |
|
inline |
References cmd, agg::is_stop(), and agg::path_base< VertexContainer >::m_vertices.
Referenced by agg::path_base< VertexContainer >::concat_poly().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References agg::path_base< VertexContainer >::concat_path().
Here is the call graph for this function:| void agg::path_base< VC >::curve3 | ( | double | x_ctrl, |
| double | y_ctrl, | ||
| double | x_to, | ||
| double | y_to | ||
| ) |
References agg::path_cmd_curve3.
| void agg::path_base< VC >::curve3 | ( | double | x_to, |
| double | y_to | ||
| ) |
References cmd, agg::is_curve(), and agg::is_vertex().
Here is the call graph for this function:| void agg::path_base< VC >::curve3_rel | ( | double | dx_ctrl, |
| double | dy_ctrl, | ||
| double | dx_to, | ||
| double | dy_to | ||
| ) |
References agg::path_cmd_curve3.
| void agg::path_base< VC >::curve3_rel | ( | double | dx_to, |
| double | dy_to | ||
| ) |
| void agg::path_base< VC >::curve4 | ( | double | x_ctrl1, |
| double | y_ctrl1, | ||
| double | x_ctrl2, | ||
| double | y_ctrl2, | ||
| double | x_to, | ||
| double | y_to | ||
| ) |
References agg::path_cmd_curve4.
| void agg::path_base< VC >::curve4 | ( | double | x_ctrl2, |
| double | y_ctrl2, | ||
| double | x_to, | ||
| double | y_to | ||
| ) |
References cmd, agg::is_curve(), and agg::is_vertex().
Here is the call graph for this function:| void agg::path_base< VC >::curve4_rel | ( | double | dx_ctrl1, |
| double | dy_ctrl1, | ||
| double | dx_ctrl2, | ||
| double | dy_ctrl2, | ||
| double | dx_to, | ||
| double | dy_to | ||
| ) |
References agg::path_cmd_curve4.
| void agg::path_base< VC >::curve4_rel | ( | double | x_ctrl2, |
| double | y_ctrl2, | ||
| double | x_to, | ||
| double | y_to | ||
| ) |
|
inline |
References agg::is_vertex(), and agg::path_cmd_end_poly.
Here is the call graph for this function:| void agg::path_base< VC >::flip_x | ( | double | x1, |
| double | x2 | ||
| ) |
References cmd, and agg::is_vertex().
Referenced by Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::flipx().
Here is the call graph for this function:
Here is the caller graph for this function:| void agg::path_base< VC >::flip_y | ( | double | y1, |
| double | y2 | ||
| ) |
References cmd, and agg::is_vertex().
Referenced by Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::flipy().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
References agg::path_cmd_line_to.
|
inline |
References agg::path_cmd_line_to.
| void agg::path_base< VC >::invert_polygon | ( | unsigned | start | ) |
References agg::is_move_to(), agg::is_next_poly(), and agg::is_vertex().
Here is the call graph for this function:
|
private |
|
inline |
References agg::calc_distance(), cmd, agg::is_move_to(), agg::is_stop(), agg::is_vertex(), agg::path_base< VertexContainer >::last_vertex(), agg::path_base< VertexContainer >::m_vertices, agg::path_cmd_line_to, agg::path_cmd_move_to, and agg::vertex_dist_epsilon.
Referenced by agg::path_base< VertexContainer >::join_poly().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References agg::path_base< VertexContainer >::join_path().
Here is the call graph for this function:
|
inline |
Referenced by agg::path_base< VertexContainer >::join_path().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
References agg::path_cmd_line_to.
|
inline |
References agg::path_cmd_line_to.
Referenced by Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::_to_path(), Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::_to_path_flpxy(), and Slic3r::rasterize_polygons().
Here is the caller graph for this function:| void agg::path_base< VC >::modify_command | ( | unsigned | idx, |
| unsigned | cmd | ||
| ) |
References cmd.
| void agg::path_base< VC >::modify_vertex | ( | unsigned | idx, |
| double | x, | ||
| double | y | ||
| ) |
Referenced by agg::path_base< VertexContainer >::align_path().
Here is the caller graph for this function:| void agg::path_base< VC >::modify_vertex | ( | unsigned | idx, |
| double | x, | ||
| double | y, | ||
| unsigned | cmd | ||
| ) |
References cmd.
|
inline |
References agg::path_cmd_move_to.
|
inline |
References agg::path_cmd_move_to.
Referenced by Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::_to_path(), Slic3r::sla::AGGRaster< PixelRenderer, Renderer, Rasterizer, Scanline >::_to_path_flpxy(), and Slic3r::rasterize_polygons().
Here is the caller graph for this function:
|
private |
References agg::path_flags_ccw, and agg::path_flags_cw.
|
inline |
|
inline |
References agg::is_vertex().
Here is the call graph for this function:
|
inline |
|
inline |
| unsigned agg::path_base< VC >::start_new_path |
References agg::is_stop(), and agg::path_cmd_stop.
Here is the call graph for this function:
|
inline |
Referenced by agg::path_base< VertexContainer >::align_all_paths(), and agg::path_base< VertexContainer >::align_path().
Here is the caller graph for this function:
|
inline |
References cmd, agg::is_stop(), agg::is_vertex(), and agg::path_base< VertexContainer >::m_vertices.
Here is the call graph for this function:
|
inline |
References agg::is_vertex(), and agg::path_base< VertexContainer >::m_vertices.
Here is the call graph for this function:| void agg::path_base< VC >::translate | ( | double | dx, |
| double | dy, | ||
| unsigned | path_id = 0 |
||
| ) |
References cmd, agg::is_stop(), and agg::is_vertex().
Here is the call graph for this function:| void agg::path_base< VC >::translate_all_paths | ( | double | dx, |
| double | dy | ||
| ) |
References agg::is_vertex().
Here is the call graph for this function:
|
inline |
References agg::path_cmd_stop.
|
inline |
Referenced by agg::path_base< VertexContainer >::align_path().
Here is the caller graph for this function:
|
inline |
References agg::path_base< VertexContainer >::m_vertices.
|
inline |
References agg::path_base< VertexContainer >::m_vertices.
|
inline |
References agg::path_cmd_line_to.
|
inline |
References agg::path_cmd_line_to.
|
private |
|
private |
Referenced by agg::path_base< VertexContainer >::concat_path(), agg::path_base< VertexContainer >::free_all(), agg::path_base< VertexContainer >::join_path(), agg::path_base< VertexContainer >::remove_all(), agg::path_base< VertexContainer >::transform(), agg::path_base< VertexContainer >::transform_all_paths(), agg::path_base< VertexContainer >::vertices(), and agg::path_base< VertexContainer >::vertices().