\hypertarget{a00449}{
\section{mln::win::line$<$ M, i, C $>$ Struct Template Reference}
\label{d9/d10/a00449}\index{mln::win::line@{mln::win::line}}
}


Generic line window defined on a given grid in the given dimension.  




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



Inherits classical\_\-window\_\-base$<$ dpoint$<$ M, C $>$, line$<$ M, i, C $>$ $>$.

\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum 
\begin{DoxyCompactList}\small\item\em Direction. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{a00449_a2bad82b0738db22b47b0646d2cbe3db4}{length} () const 
\begin{DoxyCompactList}\small\item\em Give the line length. \item\end{DoxyCompactList}\item 
\hyperlink{a00449_aa92c9b11bfc8f16d777b56530e3b75f1}{line} (unsigned length)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00449_a7e9d86af3be98f22e5283ecc4749dc89}{size} () const 
\begin{DoxyCompactList}\small\item\em Give the line size, that is, its length. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename M, unsigned i, typename C$>$ struct mln::win::line$<$ M, i, C $>$}

Generic line window defined on a given grid in the given dimension. An line is centered and symmetric; so its length is odd.

M is the given grid on which the line is defined, i is the given dimension of the line end C is the type of the coordinates.

\begin{DoxySeeAlso}{See also}
mln::win::hline2d for an exemple of his use. 
\end{DoxySeeAlso}


Definition at line 73 of file win/line.hh.



\subsection{Member Enumeration Documentation}
\hypertarget{a00449_ac366004994869eb1469e45255cc7966d}{
\subsubsection[{"@87}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename M , unsigned i, typename C $>$ anonymous enum}}
\label{d9/d10/a00449_ac366004994869eb1469e45255cc7966d}


Direction. 



Definition at line 76 of file win/line.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00449_aa92c9b11bfc8f16d777b56530e3b75f1}{
\index{mln::win::line@{mln::win::line}!line@{line}}
\index{line@{line}!mln::win::line@{mln::win::line}}
\subsubsection[{line}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename M , unsigned i, typename C $>$ {\bf mln::win::line}$<$ M, i, C $>$::{\bf line} (
\begin{DoxyParamCaption}
\item[{unsigned}]{ length}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d10/a00449_aa92c9b11bfc8f16d777b56530e3b75f1}


Constructor. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em length}]Length of the line. \end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
{\ttfamily length} is odd. 
\end{DoxyPrecond}


Definition at line 106 of file win/line.hh.



References mln::dpoint$<$ G, C $>$::set\_\-all().



\subsection{Member Function Documentation}
\hypertarget{a00449_a2bad82b0738db22b47b0646d2cbe3db4}{
\index{mln::win::line@{mln::win::line}!length@{length}}
\index{length@{length}!mln::win::line@{mln::win::line}}
\subsubsection[{length}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename M , unsigned i, typename C $>$ unsigned {\bf mln::win::line}$<$ M, i, C $>$::length (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d10/a00449_a2bad82b0738db22b47b0646d2cbe3db4}


Give the line length. 



Definition at line 125 of file win/line.hh.

\hypertarget{a00449_a7e9d86af3be98f22e5283ecc4749dc89}{
\index{mln::win::line@{mln::win::line}!size@{size}}
\index{size@{size}!mln::win::line@{mln::win::line}}
\subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename M , unsigned i, typename C $>$ unsigned {\bf mln::win::line}$<$ M, i, C $>$::size (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{d9/d10/a00449_a7e9d86af3be98f22e5283ecc4749dc89}


Give the line size, that is, its length. 



Definition at line 132 of file win/line.hh.

