\hypertarget{a00445}{
\section{mln::win::ball$<$ G, C $>$ Struct Template Reference}
\label{dd/d47/a00445}\index{mln::win::ball@{mln::win::ball}}
}


Generic ball window defined on a given grid.  




{\ttfamily \#include $<$ball.hh$>$}



Inherits classical\_\-window\_\-base$<$ dpoint$<$ G, C $>$, ball$<$ G, C $>$ $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00445_aafb162906217d2ba7b10e438e403e593}{ball} (unsigned diameter)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00445_a34eecb271354313d87c5700f533c4d23}{diameter} () const 
\begin{DoxyCompactList}\small\item\em Give the ball diameter. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename G, typename C$>$ struct mln::win::ball$<$ G, C $>$}

Generic ball window defined on a given grid. A ball is centered and symmetric; so its diameter is odd.

G is the given grid on which the ball is defined and C is the type of coordinates. 

Definition at line 71 of file ball.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00445_aafb162906217d2ba7b10e438e403e593}{
\index{mln::win::ball@{mln::win::ball}!ball@{ball}}
\index{ball@{ball}!mln::win::ball@{mln::win::ball}}
\subsubsection[{ball}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename G , typename C $>$ {\bf mln::win::ball}$<$ G, C $>$::{\bf ball} (
\begin{DoxyParamCaption}
\item[{unsigned}]{ diameter}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d47/a00445_aafb162906217d2ba7b10e438e403e593}


Constructor. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em diameter}]Diameter of the ball. \end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily diameter} is odd. 
\end{DoxyPrecond}


Definition at line 99 of file ball.hh.



References mln::literal::origin.



\subsection{Member Function Documentation}
\hypertarget{a00445_a34eecb271354313d87c5700f533c4d23}{
\index{mln::win::ball@{mln::win::ball}!diameter@{diameter}}
\index{diameter@{diameter}!mln::win::ball@{mln::win::ball}}
\subsubsection[{diameter}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename G , typename C $>$ unsigned {\bf mln::win::ball}$<$ G, C $>$::diameter (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{dd/d47/a00445_a34eecb271354313d87c5700f533c4d23}


Give the ball diameter. 



Definition at line 122 of file ball.hh.

