MCPcopy Create free account
hub / github.com/MapServer/MapServer / conv_clipper

Method conv_clipper

renderers/agg/include/agg_conv_clipper.h:58–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 public:
58 conv_clipper(source_a_type &a, source_b_type &b,
59 clipper_op_e op = clipper_or,
60 clipper_PolyFillType subjFillType = clipper_even_odd,
61 clipper_PolyFillType clipFillType = clipper_even_odd,
62 int scaling_factor = 2) :
63 m_src_a(&a),
64 m_src_b(&b),
65 m_status(status_move_to),
66 m_vertex(-1),
67 m_contour(-1),
68 m_operation(op),
69 m_subjFillType(subjFillType),
70 m_clipFillType(clipFillType)
71 {
72 m_scaling_factor = std::max(std::min(scaling_factor, 6),0);
73 m_scaling_factor = Round(std::pow((double)10, m_scaling_factor));
74 }
75
76 ~conv_clipper()
77 {

Callers

nothing calls this directly

Calls 1

RoundFunction · 0.85

Tested by

no test coverage detected