Commit 1256c976 authored by Thierry Geraud's avatar Thierry Geraud
Browse files

Print dimension in op<<(win::ball).

	* mln/win/ball.hh (print_): Print dimension.
	* tests/win/ball.cc: Inactivate echo.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3461 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent a3fffc37
2009-03-03 Thierry Geraud <thierry.geraud@lrde.epita.fr>
Print dimension in op<<(win::ball).
* mln/win/ball.hh (print_): Print dimension.
* tests/win/ball.cc: Inactivate echo.
2009-03-02 Thierry Geraud <thierry.geraud@lrde.epita.fr>
 
Have win::disk2d and win::sphere3d (new) rely on win::ball.
......@@ -136,7 +136,7 @@ namespace mln
void
ball<G,C>::print_(std::ostream& ostr) const
{
ostr << "[ball: diameter=" << diameter_ << ']';
ostr << "[" << G::dim << "D ball: diameter=" << diameter_ << ']';
}
# endif // ! MLN_INCLUDE_ONLY
......
......@@ -30,6 +30,7 @@
/// Tests on mln::win::ball.
#include <mln/win/ball.hh>
#include <mln/convert/to_image.hh>
#include <mln/debug/println.hh>
......@@ -41,8 +42,11 @@ int main()
win::ball<grid::square, def::coord> b(7);
mln_assertion(b.delta() == 3);
mln_assertion(b.size() == 29);
mln_assertion(b.diameter() == 7);
debug::println(convert::to_image(b));
// std::cout << b << std::endl;
// debug::println(convert::to_image(b));
// - - - | - - -
// - | | | | | -
// - | | | | | -
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment