19 std::array<img::Color,4> vcol;
29 std::function<img::DrawParams(int)> style(fl);
31 for(
int i=0; i<nbim; i++ )
33 auto angle = i*360./nbim;
36 auto x2 = org_x2+std::cos(angle_r2)*k;
37 auto y2 = org_y2+std::sin(angle_r2)*k;
42 auto osegs = s.getOrthogSegs();
43 auto opts = s.getOrthogPts();
49 std::ostringstream ossa;
50 ossa <<
"showcase17_" << std::setfill(
'0') << std::setw(2) <<i <<
".svg";
51 im.write( ossa.str() );
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
#define M_PI
Definition: homog2d.hpp:235
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
Color type , see DrawParams.
Definition: homog2d.hpp:432
HOMOG2D_INUMTYPE angle(const Ellipse_< FPT > &ell)
Return angle of ellipse (free function)
Definition: homog2d.hpp:10993
img::Image< img::SvgImage > im(300, 400)
DrawParams & setPointStyle(PtStyle ps)
Definition: homog2d.hpp:585
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
A line segment, oriented (OSegment_) or not (Segment_). Holds the two points.
Definition: homog2d.hpp:366
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605