186 typename DSL::Integer b,
187 unsigned short octant,
190 std::stringstream ssTitle;
191 ssTitle <<
" Arithmetical DSL "
192 <<
"(" << a <<
", " << b <<
", 0)"
193 <<
" in octant " << octant;
202 Vector v = line.steps().first;
203 Vector w = line.steps().second;
210 typename DSL::ConstIterator it;
211 it = line.begin(
Point(0,0) );
213 for (c = 0; c < n; ++it, ++c )
218 board <<
SetMode( p.className(),
"Paving" )
223 Point topRight, bottomLeft;
224 Point firstPoint(0,0);
225 Point lastPoint = *it;
230 bottomLeft = firstPoint;
231 topRight = lastPoint;
235 bottomLeft =
Point( firstPoint[0], lastPoint[1] );
236 topRight =
Point( lastPoint[0], firstPoint[1] );
243 bottomLeft =
Point( lastPoint[0], firstPoint[1] );
244 topRight =
Point( firstPoint[0], lastPoint[1] );
248 bottomLeft = lastPoint;
249 topRight = firstPoint;
256 it = line.begin(
Point(0,0) );
257 for (c = 0; c < n; ++c )
262 if ( line.remainder( p ) == line.mu() )
265 board.
drawArrow(p[0], p[1], p[0]+s[0], p[1]+s[1]);
275 else if ( (q-p) == w )
294 std::stringstream ssFileName;
295 ssFileName <<
"ArithmeticalDSL"
296 <<
"-" << DSL::foregroundAdjacency
298 <<
"-" << a <<
"-" << b
300 #ifdef DGTAL_WITH_CAIRO
301 board.
saveCairo(ssFileName.str().c_str(), Board2D::CairoPNG);
317 drawArithmeticalDSL<NaiveDSL<Integer> >( 0, 1, 0, 15 );
318 drawArithmeticalDSL<NaiveDSL<Integer> >( 5, 8, 0, 15 );
319 drawArithmeticalDSL<NaiveDSL<Integer> >( 1, 1, 1, 15 );
320 drawArithmeticalDSL<NaiveDSL<Integer> >( 8, 5, 1, 15 );
321 drawArithmeticalDSL<NaiveDSL<Integer> >( 1, 0, 2, 15 );
322 drawArithmeticalDSL<NaiveDSL<Integer> >( 8, -5, 2, 15 );
323 drawArithmeticalDSL<NaiveDSL<Integer> >( 1, -1, 3, 15 );
324 drawArithmeticalDSL<NaiveDSL<Integer> >( 5, -8, 3, 15 );
325 drawArithmeticalDSL<NaiveDSL<Integer> >( 0, -1, 4, 15 );
326 drawArithmeticalDSL<NaiveDSL<Integer> >( -5, -8, 4, 15 );
327 drawArithmeticalDSL<NaiveDSL<Integer> >( -1, -1, 5, 15 );
328 drawArithmeticalDSL<NaiveDSL<Integer> >( -8, -5, 5, 15 );
329 drawArithmeticalDSL<NaiveDSL<Integer> >( -1, 0, 6, 15 );
330 drawArithmeticalDSL<NaiveDSL<Integer> >( -8, 5, 6, 15 );
331 drawArithmeticalDSL<NaiveDSL<Integer> >( -1, 1, 7, 15 );
332 drawArithmeticalDSL<NaiveDSL<Integer> >( -5, 8, 7, 15 );
334 drawArithmeticalDSL<StandardDSL<Integer> >( 0, 1, 0, 21 );
335 drawArithmeticalDSL<StandardDSL<Integer> >( 5, 8, 0, 21 );
336 drawArithmeticalDSL<StandardDSL<Integer> >( 1, 1, 1, 21 );
337 drawArithmeticalDSL<StandardDSL<Integer> >( 8, 5, 1, 21 );
338 drawArithmeticalDSL<StandardDSL<Integer> >( 1, 0, 2, 21 );
339 drawArithmeticalDSL<StandardDSL<Integer> >( 8, -5, 2, 21 );
340 drawArithmeticalDSL<StandardDSL<Integer> >( 1, -1, 3, 21 );
341 drawArithmeticalDSL<StandardDSL<Integer> >( 5, -8, 3, 21 );
342 drawArithmeticalDSL<StandardDSL<Integer> >( 0, -1, 4, 21 );
343 drawArithmeticalDSL<StandardDSL<Integer> >( -5, -8, 4, 21 );
344 drawArithmeticalDSL<StandardDSL<Integer> >( -1, -1, 5, 21 );
345 drawArithmeticalDSL<StandardDSL<Integer> >( -8, -5, 5, 21 );
346 drawArithmeticalDSL<StandardDSL<Integer> >( -1, 0, 6, 21 );
347 drawArithmeticalDSL<StandardDSL<Integer> >( -8, 5, 6, 21 );
348 drawArithmeticalDSL<StandardDSL<Integer> >( -1, 1, 7, 21 );
349 drawArithmeticalDSL<StandardDSL<Integer> >( -5, 8, 7, 21 );