123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- \hypertarget{classutil_1_1Grid}{}\section{util\+:\+:Grid Class Reference}
- \label{classutil_1_1Grid}\index{util\+::\+Grid@{util\+::\+Grid}}
- {\ttfamily \#include $<$Grid.\+h$>$}
- \subsection*{Public Member Functions}
- \begin{DoxyCompactItemize}
- \item
- \hyperlink{classutil_1_1Grid_a0b2bfd0044eb5633a3f1121e5e70709e}{Grid} (int width\+\_\+count, int height\+\_\+count, double width, double height)
- \item
- \hyperlink{classutil_1_1Grid_ad6457dda588e20ccd503e363e96dd57e}{Grid} (int width\+\_\+count, int height\+\_\+count, int depth\+\_\+count, double width, double height, double depth)
- \item
- void \hyperlink{classutil_1_1Grid_a0e93bd63922e7cbe405176a1ae21877e}{Set\+Value} (core\+::\+Object\+Data\+Ptr value, int x, int y, int z=0)
- \item
- void \hyperlink{classutil_1_1Grid_ad7dbf79146d9f5ae1662910b82fd25ea}{Set\+Value} (core\+::\+Object\+Data\+Ptr value, double x, double y, double z=0)
- \item
- core\+::\+Object\+Data\+Ptr \hyperlink{classutil_1_1Grid_a6658334ae9b505c56b75f6f15434832e}{Get\+Value} (int x, int y, int z=0) const
- \item
- core\+::\+Object\+Data\+Ptr \hyperlink{classutil_1_1Grid_a6cc6449dfe16dde11035fe2d16a321cd}{Get\+Value} (double x, double y, double z=0.\+0) const
- \item
- int \hyperlink{classutil_1_1Grid_a3f5cdd325b3e3eb30ca5d38bd31d005e}{Get\+Width\+Count} () const
- \item
- int \hyperlink{classutil_1_1Grid_a0c63eb86e4be8c63e996ff61c3ef8b7f}{Get\+Height\+Count} () const
- \item
- int \hyperlink{classutil_1_1Grid_a04f1c2fe745d469e49cf2523fe0f34fd}{Get\+Depth\+Count} () const
- \item
- double \hyperlink{classutil_1_1Grid_a8b4dc63bee5859cae315969e039b4cac}{Get\+Width} () const
- \item
- double \hyperlink{classutil_1_1Grid_a2d02a1eafe76faaa7e0f63ce406d782f}{Get\+Height} () const
- \item
- double \hyperlink{classutil_1_1Grid_afe6698a6766a43082ceea2d4bf27619e}{Get\+Depth} () const
- \item
- void \hyperlink{classutil_1_1Grid_a775e2a7574c81dd7acd1d185b2e72ed5}{Position\+To\+Index} (double x, double y, double z, int \&xi, int \&yi, int \&zi) const
- \item
- void \hyperlink{classutil_1_1Grid_a6597c4f785a764c0b291b8135863fe67}{Convolve2D} (int vicinity, double $\ast$mask, double multiplier)
- \item
- void \hyperlink{classutil_1_1Grid_ab8e9f6c804b0eab1f5666a039130b8ed}{Convolve2D} (\hyperlink{classutil_1_1Filter2D}{util\+::\+Filter2D} \&filter)
- \item
- void \hyperlink{classutil_1_1Grid_ac161adb14df09651a6b33f855d887bfa}{Convolve3D} (int vicinity, double $\ast$mask, double multiplier)
- \end{DoxyCompactItemize}
- \subsection{Detailed Description}
- Class for storing values in a three dimensional grid. Can also be used for two dimensions but has a bit overhead.
- \subsection{Constructor \& Destructor Documentation}
- \index{util\+::\+Grid@{util\+::\+Grid}!Grid@{Grid}}
- \index{Grid@{Grid}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Grid(int width\+\_\+count, int height\+\_\+count, double width, double height)}{Grid(int width\_count, int height\_count, double width, double height)}}]{\setlength{\rightskip}{0pt plus 5cm}util\+::\+Grid\+::\+Grid (
- \begin{DoxyParamCaption}
- \item[{int}]{width\+\_\+count, }
- \item[{int}]{height\+\_\+count, }
- \item[{double}]{width, }
- \item[{double}]{height}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_a0b2bfd0044eb5633a3f1121e5e70709e}{}\label{classutil_1_1Grid_a0b2bfd0044eb5633a3f1121e5e70709e}
- Creates a new two dimensional grid.
- \begin{DoxyParams}{Parameters}
- {\em width\+\_\+count} & The number of elements on the x axis \\
- \hline
- {\em height\+\_\+count} & The number of elements on the y axis \\
- \hline
- {\em width} & The size of the whole grid on the x axis \\
- \hline
- {\em height} & The size of the whole grid on the y axis \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Grid@{Grid}}
- \index{Grid@{Grid}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Grid(int width\+\_\+count, int height\+\_\+count, int depth\+\_\+count, double width, double height, double depth)}{Grid(int width\_count, int height\_count, int depth\_count, double width, double height, double depth)}}]{\setlength{\rightskip}{0pt plus 5cm}util\+::\+Grid\+::\+Grid (
- \begin{DoxyParamCaption}
- \item[{int}]{width\+\_\+count, }
- \item[{int}]{height\+\_\+count, }
- \item[{int}]{depth\+\_\+count, }
- \item[{double}]{width, }
- \item[{double}]{height, }
- \item[{double}]{depth}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_ad6457dda588e20ccd503e363e96dd57e}{}\label{classutil_1_1Grid_ad6457dda588e20ccd503e363e96dd57e}
- Creates a new three dimensional grid.
- \begin{DoxyParams}{Parameters}
- {\em width\+\_\+count} & The number of elements on the x axis \\
- \hline
- {\em height\+\_\+count} & The number of elements on the y axis \\
- \hline
- {\em depth\+\_\+count} & The number of elements on the z axis \\
- \hline
- {\em width} & The size of the whole grid on the x axis \\
- \hline
- {\em height} & The size of the whole grid on the y axis \\
- \hline
- {\em depth} & The size of the whole grid on the z axis \\
- \hline
- \end{DoxyParams}
- \subsection{Member Function Documentation}
- \index{util\+::\+Grid@{util\+::\+Grid}!Convolve2D@{Convolve2D}}
- \index{Convolve2D@{Convolve2D}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Convolve2\+D(int vicinity, double $\ast$mask, double multiplier)}{Convolve2D(int vicinity, double *mask, double multiplier)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Convolve2D (
- \begin{DoxyParamCaption}
- \item[{int}]{vicinity, }
- \item[{double $\ast$}]{mask, }
- \item[{double}]{multiplier}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_a6597c4f785a764c0b291b8135863fe67}{}\label{classutil_1_1Grid_a6597c4f785a764c0b291b8135863fe67}
- Performs a 2D convolution.
- \begin{DoxyParams}{Parameters}
- {\em vicinity} & The size of the mask around the center (a 3x3 mask has a vicinity of 1) \\
- \hline
- {\em mask} & The mask/kernel to use for the convolution \\
- \hline
- {\em multiplier} & The value is multiplied with the result at the end of the convolution \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Convolve2D@{Convolve2D}}
- \index{Convolve2D@{Convolve2D}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Convolve2\+D(util\+::\+Filter2\+D \&filter)}{Convolve2D(util::Filter2D \&filter)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Convolve2D (
- \begin{DoxyParamCaption}
- \item[{{\bf util\+::\+Filter2D} \&}]{filter}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_ab8e9f6c804b0eab1f5666a039130b8ed}{}\label{classutil_1_1Grid_ab8e9f6c804b0eab1f5666a039130b8ed}
- Performs a 2D convolution.
- \begin{DoxyParams}{Parameters}
- {\em filter} & The 2D filter to use \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Convolve3D@{Convolve3D}}
- \index{Convolve3D@{Convolve3D}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Convolve3\+D(int vicinity, double $\ast$mask, double multiplier)}{Convolve3D(int vicinity, double *mask, double multiplier)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Convolve3D (
- \begin{DoxyParamCaption}
- \item[{int}]{vicinity, }
- \item[{double $\ast$}]{mask, }
- \item[{double}]{multiplier}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_ac161adb14df09651a6b33f855d887bfa}{}\label{classutil_1_1Grid_ac161adb14df09651a6b33f855d887bfa}
- Performs a 3D convolution.
- \begin{DoxyParams}{Parameters}
- {\em vicinity} & The size of the mask around the center (a 3x3 mask has a vicinity of 1) \\
- \hline
- {\em mask} & The mask/kernel to use for the convolution \\
- \hline
- {\em multiplier} & The value is multiplied with the result at the end of the convolution \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Depth@{Get\+Depth}}
- \index{Get\+Depth@{Get\+Depth}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Depth() const}{GetDepth() const}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+Grid\+::\+Get\+Depth (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_afe6698a6766a43082ceea2d4bf27619e}{}\label{classutil_1_1Grid_afe6698a6766a43082ceea2d4bf27619e}
- Gets the size of the whole grid on the z axis. \begin{DoxyReturn}{Returns}
- the size of the whole grid on the z axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Depth\+Count@{Get\+Depth\+Count}}
- \index{Get\+Depth\+Count@{Get\+Depth\+Count}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Depth\+Count() const}{GetDepthCount() const}}]{\setlength{\rightskip}{0pt plus 5cm}int util\+::\+Grid\+::\+Get\+Depth\+Count (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a04f1c2fe745d469e49cf2523fe0f34fd}{}\label{classutil_1_1Grid_a04f1c2fe745d469e49cf2523fe0f34fd}
- Gets the number of elements on the z axis. \begin{DoxyReturn}{Returns}
- The number of elements on the z axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Height@{Get\+Height}}
- \index{Get\+Height@{Get\+Height}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Height() const}{GetHeight() const}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+Grid\+::\+Get\+Height (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a2d02a1eafe76faaa7e0f63ce406d782f}{}\label{classutil_1_1Grid_a2d02a1eafe76faaa7e0f63ce406d782f}
- Gets the size of the whole grid on the y axis. \begin{DoxyReturn}{Returns}
- the size of the whole grid on the y axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Height\+Count@{Get\+Height\+Count}}
- \index{Get\+Height\+Count@{Get\+Height\+Count}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Height\+Count() const}{GetHeightCount() const}}]{\setlength{\rightskip}{0pt plus 5cm}int util\+::\+Grid\+::\+Get\+Height\+Count (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a0c63eb86e4be8c63e996ff61c3ef8b7f}{}\label{classutil_1_1Grid_a0c63eb86e4be8c63e996ff61c3ef8b7f}
- Gets the number of elements on the y axis. \begin{DoxyReturn}{Returns}
- The number of elements on the y axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Value@{Get\+Value}}
- \index{Get\+Value@{Get\+Value}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Value(int x, int y, int z=0) const}{GetValue(int x, int y, int z=0) const}}]{\setlength{\rightskip}{0pt plus 5cm}core\+::\+Object\+Data\+Ptr util\+::\+Grid\+::\+Get\+Value (
- \begin{DoxyParamCaption}
- \item[{int}]{x, }
- \item[{int}]{y, }
- \item[{int}]{z = {\ttfamily 0}}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a6658334ae9b505c56b75f6f15434832e}{}\label{classutil_1_1Grid_a6658334ae9b505c56b75f6f15434832e}
- Gets the value in the grid cell with the given index.
- \begin{DoxyParams}{Parameters}
- {\em x} & The x axis index \\
- \hline
- {\em y} & The y axis index \\
- \hline
- {\em z} & The z axis index \\
- \hline
- \end{DoxyParams}
- \begin{DoxyReturn}{Returns}
- The value in the grid cell
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Value@{Get\+Value}}
- \index{Get\+Value@{Get\+Value}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Value(double x, double y, double z=0.\+0) const}{GetValue(double x, double y, double z=0.0) const}}]{\setlength{\rightskip}{0pt plus 5cm}core\+::\+Object\+Data\+Ptr util\+::\+Grid\+::\+Get\+Value (
- \begin{DoxyParamCaption}
- \item[{double}]{x, }
- \item[{double}]{y, }
- \item[{double}]{z = {\ttfamily 0.0}}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a6cc6449dfe16dde11035fe2d16a321cd}{}\label{classutil_1_1Grid_a6cc6449dfe16dde11035fe2d16a321cd}
- Gets the value in the grid cell at the given position.
- \begin{DoxyParams}{Parameters}
- {\em x} & The x axis value \\
- \hline
- {\em y} & The y axis value \\
- \hline
- {\em z} & The z axis value \\
- \hline
- \end{DoxyParams}
- \begin{DoxyReturn}{Returns}
- The value in the grid cell
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Width@{Get\+Width}}
- \index{Get\+Width@{Get\+Width}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Width() const}{GetWidth() const}}]{\setlength{\rightskip}{0pt plus 5cm}double util\+::\+Grid\+::\+Get\+Width (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a8b4dc63bee5859cae315969e039b4cac}{}\label{classutil_1_1Grid_a8b4dc63bee5859cae315969e039b4cac}
- Gets the size of the whole grid on the x axis. \begin{DoxyReturn}{Returns}
- the size of the whole grid on the x axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Get\+Width\+Count@{Get\+Width\+Count}}
- \index{Get\+Width\+Count@{Get\+Width\+Count}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Get\+Width\+Count() const}{GetWidthCount() const}}]{\setlength{\rightskip}{0pt plus 5cm}int util\+::\+Grid\+::\+Get\+Width\+Count (
- \begin{DoxyParamCaption}
- {}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a3f5cdd325b3e3eb30ca5d38bd31d005e}{}\label{classutil_1_1Grid_a3f5cdd325b3e3eb30ca5d38bd31d005e}
- Gets the number of elements on the x axis. \begin{DoxyReturn}{Returns}
- The number of elements on the x axis
- \end{DoxyReturn}
- \index{util\+::\+Grid@{util\+::\+Grid}!Position\+To\+Index@{Position\+To\+Index}}
- \index{Position\+To\+Index@{Position\+To\+Index}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Position\+To\+Index(double x, double y, double z, int \&xi, int \&yi, int \&zi) const}{PositionToIndex(double x, double y, double z, int \&xi, int \&yi, int \&zi) const}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Position\+To\+Index (
- \begin{DoxyParamCaption}
- \item[{double}]{x, }
- \item[{double}]{y, }
- \item[{double}]{z, }
- \item[{int \&}]{xi, }
- \item[{int \&}]{yi, }
- \item[{int \&}]{zi}
- \end{DoxyParamCaption}
- ) const}\hypertarget{classutil_1_1Grid_a775e2a7574c81dd7acd1d185b2e72ed5}{}\label{classutil_1_1Grid_a775e2a7574c81dd7acd1d185b2e72ed5}
- Converts a 3D position to an 3D index.
- \begin{DoxyParams}{Parameters}
- {\em x} & The x axis value \\
- \hline
- {\em y} & The y axis value \\
- \hline
- {\em z} & The z axis value \\
- \hline
- {\em xi} & The x axis index \\
- \hline
- {\em yi} & The y axis index \\
- \hline
- {\em zi} & The z axis index \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Set\+Value@{Set\+Value}}
- \index{Set\+Value@{Set\+Value}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Set\+Value(core\+::\+Object\+Data\+Ptr value, int x, int y, int z=0)}{SetValue(core::ObjectDataPtr value, int x, int y, int z=0)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Set\+Value (
- \begin{DoxyParamCaption}
- \item[{core\+::\+Object\+Data\+Ptr}]{value, }
- \item[{int}]{x, }
- \item[{int}]{y, }
- \item[{int}]{z = {\ttfamily 0}}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_a0e93bd63922e7cbe405176a1ae21877e}{}\label{classutil_1_1Grid_a0e93bd63922e7cbe405176a1ae21877e}
- Sets a value in the grid cell with the given index.
- \begin{DoxyParams}{Parameters}
- {\em value} & The value to set \\
- \hline
- {\em x} & The x axis index \\
- \hline
- {\em y} & The y axis index \\
- \hline
- {\em z} & The z axis index \\
- \hline
- \end{DoxyParams}
- \index{util\+::\+Grid@{util\+::\+Grid}!Set\+Value@{Set\+Value}}
- \index{Set\+Value@{Set\+Value}!util\+::\+Grid@{util\+::\+Grid}}
- \subsubsection[{\texorpdfstring{Set\+Value(core\+::\+Object\+Data\+Ptr value, double x, double y, double z=0)}{SetValue(core::ObjectDataPtr value, double x, double y, double z=0)}}]{\setlength{\rightskip}{0pt plus 5cm}void util\+::\+Grid\+::\+Set\+Value (
- \begin{DoxyParamCaption}
- \item[{core\+::\+Object\+Data\+Ptr}]{value, }
- \item[{double}]{x, }
- \item[{double}]{y, }
- \item[{double}]{z = {\ttfamily 0}}
- \end{DoxyParamCaption}
- )}\hypertarget{classutil_1_1Grid_ad7dbf79146d9f5ae1662910b82fd25ea}{}\label{classutil_1_1Grid_ad7dbf79146d9f5ae1662910b82fd25ea}
- Sets a value in the grid cell at the given position.
- \begin{DoxyParams}{Parameters}
- {\em value} & The value to set \\
- \hline
- {\em x} & The x axis value \\
- \hline
- {\em y} & The y axis value \\
- \hline
- {\em z} & The z axis value \\
- \hline
- \end{DoxyParams}
- The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
- \item
- util/Grid.\+h\item
- util/Grid.\+cpp\end{DoxyCompactItemize}
|