\hypertarget{a00447}{
\section{mln::win::cuboid3d Struct Reference}
\label{de/d84/a00447}\index{mln::win::cuboid3d@{mln::win::cuboid3d}}
}


Cuboid defined on the 3-\/D square grid.  




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



Inherits classical\_\-window\_\-base$<$ dpoint3d, cuboid3d $>$.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00447_ad45d3f97faa606df2d1f1216faa1a5db}{cuboid3d} (unsigned depth, unsigned height, unsigned width)
\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00447_a6c41a87531d47e1eacccf6efc23e7a89}{volume} () const 
\begin{DoxyCompactList}\small\item\em Return the volume of the cuboid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}{\bf }\par
{\em \label{_amgrpd41d8cd98f00b204e9800998ecf8427e}
 }\begin{DoxyCompactItemize}
\item 
unsigned \hyperlink{a00447_ab637bb6e87235b0b0655a5461e0832ad}{depth} () const 
\begin{DoxyCompactList}\small\item\em Accessors. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00447_ae6c2b5c67f438bf2aed923090540d1fc}{height} () const 
\begin{DoxyCompactList}\small\item\em Return the height of the cuboid. \item\end{DoxyCompactList}\item 
unsigned \hyperlink{a00447_af0626e5b0ae493734e9b9ed8ef257202}{width} () const 
\begin{DoxyCompactList}\small\item\em Return the width of the cuboid. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\end{Indent}


\subsection{Detailed Description}
Cuboid defined on the 3-\/D square grid. A \hyperlink{a00447}{cuboid3d} is a 3-\/D window with cuboid (also known as rectangular prism or rectangular parallelepiped) shape. It is centered and symmetric.

For instance: \begin{DoxyVerb}
            o o o o o o o
           o o o o o o o
          o o o o o o o
         o o o o o o o
        o o o o o o o

            o o o o o o o
           o o o o o o o
          o o o x o o o
         o o o o o o o
        o o o o o o o

            o o o o o o o
           o o o o o o o
          o o o o o o o
         o o o o o o o
        o o o o o o o
	\end{DoxyVerb}


is defined with depth = 3, height = 5 and width = 7.

Reference: \href{http://en.wikipedia.org/wiki/Cuboid}{\tt http://en.wikipedia.org/wiki/Cuboid} 

Definition at line 80 of file cuboid3d.hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a00447_ad45d3f97faa606df2d1f1216faa1a5db}{
\index{mln::win::cuboid3d@{mln::win::cuboid3d}!cuboid3d@{cuboid3d}}
\index{cuboid3d@{cuboid3d}!mln::win::cuboid3d@{mln::win::cuboid3d}}
\subsubsection[{cuboid3d}]{\setlength{\rightskip}{0pt plus 5cm}mln::win::cuboid3d::cuboid3d (
\begin{DoxyParamCaption}
\item[{unsigned}]{ depth, }
\item[{unsigned}]{ height, }
\item[{unsigned}]{ width}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d84/a00447_ad45d3f97faa606df2d1f1216faa1a5db}


Constructor. 


\begin{DoxyParams}{Parameters}
\item[\mbox{\tt[in]} {\em depth}]The depth of the \hyperlink{a00447}{cuboid3d}. \item[\mbox{\tt[in]} {\em height}]The height of the \hyperlink{a00447}{cuboid3d}. \item[\mbox{\tt[in]} {\em width}]The width of the \hyperlink{a00447}{cuboid3d}.\end{DoxyParams}
\begin{DoxyPrecond}{Precondition}
Argument {\itshape depth\/}, {\itshape height\/} and {\itshape width\/} must be odd. 
\end{DoxyPrecond}


Definition at line 125 of file cuboid3d.hh.



\subsection{Member Function Documentation}
\hypertarget{a00447_ab637bb6e87235b0b0655a5461e0832ad}{
\index{mln::win::cuboid3d@{mln::win::cuboid3d}!depth@{depth}}
\index{depth@{depth}!mln::win::cuboid3d@{mln::win::cuboid3d}}
\subsubsection[{depth}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::cuboid3d::depth (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d84/a00447_ab637bb6e87235b0b0655a5461e0832ad}


Accessors. 

Return the depth of the cuboid. 

Definition at line 146 of file cuboid3d.hh.

\hypertarget{a00447_ae6c2b5c67f438bf2aed923090540d1fc}{
\index{mln::win::cuboid3d@{mln::win::cuboid3d}!height@{height}}
\index{height@{height}!mln::win::cuboid3d@{mln::win::cuboid3d}}
\subsubsection[{height}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::cuboid3d::height (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d84/a00447_ae6c2b5c67f438bf2aed923090540d1fc}


Return the height of the cuboid. 



Definition at line 153 of file cuboid3d.hh.

\hypertarget{a00447_a6c41a87531d47e1eacccf6efc23e7a89}{
\index{mln::win::cuboid3d@{mln::win::cuboid3d}!volume@{volume}}
\index{volume@{volume}!mln::win::cuboid3d@{mln::win::cuboid3d}}
\subsubsection[{volume}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::cuboid3d::volume (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d84/a00447_a6c41a87531d47e1eacccf6efc23e7a89}


Return the volume of the cuboid. 



Definition at line 167 of file cuboid3d.hh.

\hypertarget{a00447_af0626e5b0ae493734e9b9ed8ef257202}{
\index{mln::win::cuboid3d@{mln::win::cuboid3d}!width@{width}}
\index{width@{width}!mln::win::cuboid3d@{mln::win::cuboid3d}}
\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}unsigned mln::win::cuboid3d::width (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{de/d84/a00447_af0626e5b0ae493734e9b9ed8ef257202}


Return the width of the cuboid. 



Definition at line 160 of file cuboid3d.hh.

