\hypertarget{class_ogre_1_1_pixel_box}{}\doxysection{Ogre\+::Pixel\+Box Class Reference}
\label{class_ogre_1_1_pixel_box}\index{Ogre::PixelBox@{Ogre::PixelBox}}


A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.  




{\ttfamily \#include $<$Ogre\+Pixel\+Format.\+h$>$}



Inheritance diagram for Ogre\+::Pixel\+Box\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=234pt]{class_ogre_1_1_pixel_box__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_pixel_box_a196c57b3cf61c1545c46896cff269efb}{Pixel\+Box}} ()
\begin{DoxyCompactList}\small\item\em Parameter constructor for setting the members manually. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_pixel_box_a422d941d56f9bb32134f304754e0d72d}{Pixel\+Box}} (const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&extents, \mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}} pixel\+Format, void $\ast$pixel\+Data=0)
\begin{DoxyCompactList}\small\item\em Constructor providing extents in the form of a \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} object. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_pixel_box_a94e88a47e03162fabe5eb408d3358e12}{Pixel\+Box}} (\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} width, \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} height, \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} depth, \mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}} pixel\+Format, void $\ast$pixel\+Data=0)
\begin{DoxyCompactList}\small\item\em Constructor providing width, height and depth. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_pixel_box_a5a5191d05b7ec15bb97c98807c271f35}{$\sim$\+Pixel\+Box}} ()
\item 
bool \mbox{\hyperlink{struct_ogre_1_1_box_a7d29d3b112980c25bd0250dc41cf6ed2}{contains}} (const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&def) const
\begin{DoxyCompactList}\small\item\em Return true if the other box is a part of this one. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} \mbox{\hyperlink{class_ogre_1_1_pixel_box_a84fd367f9d768e96a98f53cd08c4ab7b}{get\+Colour\+At}} (size\+\_\+t x, size\+\_\+t y, size\+\_\+t z) const
\begin{DoxyCompactList}\small\item\em Get colour value from a certain location in the \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_pixel_box_abfca78eedb6e3abb8d06ff015814a552}{get\+Consecutive\+Size}} () const
\begin{DoxyCompactList}\small\item\em Return the size (in bytes) this image would take if it was laid out consecutive in memory. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_ae820fd38f7b51e2a907ef601642c898c}{get\+Depth}} () const
\begin{DoxyCompactList}\small\item\em Get the depth of this box. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a352d26dea0069f2e7f1414e8caa2328c}{get\+Height}} () const
\begin{DoxyCompactList}\small\item\em Get the height of this box. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_pixel_box_a1c74e261d3283aa84efca68e8bc7c717}{get\+Row\+Skip}} () const
\begin{DoxyCompactList}\small\item\em Get the number of elements between one past the rightmost pixel of one row and the leftmost pixel of the next row. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_pixel_box_a098dfd052183aeb4025794758ed59021}{get\+Slice\+Skip}} () const
\begin{DoxyCompactList}\small\item\em Get the number of elements between one past the right bottom pixel of one slice and the left top pixel of the next slice. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}} \mbox{\hyperlink{class_ogre_1_1_pixel_box_adcd4bcebf8ba9ac17b55f0aced8a8285}{get\+Sub\+Volume}} (const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&def, bool reset\+Origin=true) const
\begin{DoxyCompactList}\small\item\em Return a subvolume of this \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_pixel_box_a9bbe10698adab93b479bded30439fb87}{get\+Top\+Left\+Front\+Pixel\+Ptr}} () const
\begin{DoxyCompactList}\small\item\em Return a data pointer pointing to top left front pixel of the pixel box. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a5499449ff454ff98aaa697f8854376fc}{get\+Width}} () const
\begin{DoxyCompactList}\small\item\em Get the width of this box. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_pixel_box_ac24a3ceef06a3e9426d3832d1ba69c6f}{is\+Consecutive}} () const
\begin{DoxyCompactList}\small\item\em Return whether this buffer is laid out consecutive in memory (ie the pitches are equal to the dimensions) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_pixel_box_ad9be8442d595e5208ea80e59041b59d8}{set\+Colour\+At}} (\mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} const \&cv, size\+\_\+t x, size\+\_\+t y, size\+\_\+t z)
\begin{DoxyCompactList}\small\item\em Set colour value at a certain location in the \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_pixel_box_a69fea3b4fed6726ee578519ec05bd246}{set\+Consecutive}} ()
\begin{DoxyCompactList}\small\item\em Set the row\+Pitch and slice\+Pitch so that the buffer is laid out consecutive in memory. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a19a7351210e086309a74461d8b4c5cb1}{back}}
\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_ae46fa4954b4d29f4d051f947fe45c142}{bottom}}
\item 
\mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_pixel_box_a59624c7c33ade5365428473a1f3dc85a}{data}}
\begin{DoxyCompactList}\small\item\em The data pointer. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}} \mbox{\hyperlink{class_ogre_1_1_pixel_box_aa4101fdc288dc41dddac88440b4d0818}{format}}
\begin{DoxyCompactList}\small\item\em The pixel format. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a5e545a9bd1bc4151a113267c6529d84f}{front}}
\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a88fa61f841bc444d92075d8b6cb2b43b}{left}}
\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_ac2c94e2d364dfabe7e4406ff8f41ab9e}{right}}
\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_pixel_box_aacf8f1ebed40c557389d9d1e9dda3b68}{row\+Pitch}}
\begin{DoxyCompactList}\small\item\em Number of elements between the leftmost pixel of one row and the left pixel of the next. \end{DoxyCompactList}\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_pixel_box_a5f4ac4f2e735678fc8b3ddc1068674dd}{slice\+Pitch}}
\begin{DoxyCompactList}\small\item\em Number of elements between the top left pixel of one (depth) slice and the top left pixel of the next. \end{DoxyCompactList}\item 
\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} \mbox{\hyperlink{struct_ogre_1_1_box_a7c317f774697dbd65dd77e49a0448d2d}{top}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory. 

In case of a rectangle, depth must be 1. Pixels are stored as a succession of \char`\"{}depth\char`\"{} slices, each containing \char`\"{}height\char`\"{} rows of \char`\"{}width\char`\"{} pixels.

Note that the left, top, and front edges are included but the right, bottom and back ones are not. 

\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a196c57b3cf61c1545c46896cff269efb}\label{class_ogre_1_1_pixel_box_a196c57b3cf61c1545c46896cff269efb}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!PixelBox@{PixelBox}}
\index{PixelBox@{PixelBox}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{PixelBox()}{PixelBox()}\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily Ogre\+::\+Pixel\+Box\+::\+Pixel\+Box (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Parameter constructor for setting the members manually. 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a5a5191d05b7ec15bb97c98807c271f35}\label{class_ogre_1_1_pixel_box_a5a5191d05b7ec15bb97c98807c271f35}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!````~PixelBox@{$\sim$PixelBox}}
\index{````~PixelBox@{$\sim$PixelBox}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{$\sim$PixelBox()}{~PixelBox()}}
{\footnotesize\ttfamily Ogre\+::\+Pixel\+Box\+::$\sim$\+Pixel\+Box (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a422d941d56f9bb32134f304754e0d72d}\label{class_ogre_1_1_pixel_box_a422d941d56f9bb32134f304754e0d72d}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!PixelBox@{PixelBox}}
\index{PixelBox@{PixelBox}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{PixelBox()}{PixelBox()}\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily Ogre\+::\+Pixel\+Box\+::\+Pixel\+Box (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&}]{extents,  }\item[{\mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}}}]{pixel\+Format,  }\item[{void $\ast$}]{pixel\+Data = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Constructor providing extents in the form of a \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} object. 

This constructor assumes the pixel data is laid out consecutively in memory. (this means row after row, slice after slice, with no space in between) 
\begin{DoxyParams}{Parameters}
{\em extents} & Extents of the region defined by data \\
\hline
{\em pixel\+Format} & Format of this buffer \\
\hline
{\em pixel\+Data} & Pointer to the actual data \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a94e88a47e03162fabe5eb408d3358e12}\label{class_ogre_1_1_pixel_box_a94e88a47e03162fabe5eb408d3358e12}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!PixelBox@{PixelBox}}
\index{PixelBox@{PixelBox}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{PixelBox()}{PixelBox()}\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily Ogre\+::\+Pixel\+Box\+::\+Pixel\+Box (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}}]{width,  }\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}}]{height,  }\item[{\mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}}}]{depth,  }\item[{\mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}}}]{pixel\+Format,  }\item[{void $\ast$}]{pixel\+Data = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Constructor providing width, height and depth. 

This constructor assumes the pixel data is laid out consecutively in memory. (this means row after row, slice after slice, with no space in between) 
\begin{DoxyParams}{Parameters}
{\em width} & Width of the region \\
\hline
{\em height} & Height of the region \\
\hline
{\em depth} & Depth of the region \\
\hline
{\em pixel\+Format} & Format of this buffer \\
\hline
{\em pixel\+Data} & Pointer to the actual data \\
\hline
\end{DoxyParams}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a69fea3b4fed6726ee578519ec05bd246}\label{class_ogre_1_1_pixel_box_a69fea3b4fed6726ee578519ec05bd246}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!setConsecutive@{setConsecutive}}
\index{setConsecutive@{setConsecutive}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{setConsecutive()}{setConsecutive()}}
{\footnotesize\ttfamily void Ogre\+::\+Pixel\+Box\+::set\+Consecutive (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set the row\+Pitch and slice\+Pitch so that the buffer is laid out consecutive in memory. 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a1c74e261d3283aa84efca68e8bc7c717}\label{class_ogre_1_1_pixel_box_a1c74e261d3283aa84efca68e8bc7c717}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getRowSkip@{getRowSkip}}
\index{getRowSkip@{getRowSkip}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getRowSkip()}{getRowSkip()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Pixel\+Box\+::get\+Row\+Skip (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of elements between one past the rightmost pixel of one row and the leftmost pixel of the next row. 

(IE this is zero if rows are consecutive). \mbox{\Hypertarget{class_ogre_1_1_pixel_box_a098dfd052183aeb4025794758ed59021}\label{class_ogre_1_1_pixel_box_a098dfd052183aeb4025794758ed59021}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getSliceSkip@{getSliceSkip}}
\index{getSliceSkip@{getSliceSkip}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getSliceSkip()}{getSliceSkip()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Pixel\+Box\+::get\+Slice\+Skip (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the number of elements between one past the right bottom pixel of one slice and the left top pixel of the next slice. 

(IE this is zero if slices are consecutive). \mbox{\Hypertarget{class_ogre_1_1_pixel_box_ac24a3ceef06a3e9426d3832d1ba69c6f}\label{class_ogre_1_1_pixel_box_ac24a3ceef06a3e9426d3832d1ba69c6f}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!isConsecutive@{isConsecutive}}
\index{isConsecutive@{isConsecutive}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{isConsecutive()}{isConsecutive()}}
{\footnotesize\ttfamily bool Ogre\+::\+Pixel\+Box\+::is\+Consecutive (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Return whether this buffer is laid out consecutive in memory (ie the pitches are equal to the dimensions) 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_abfca78eedb6e3abb8d06ff015814a552}\label{class_ogre_1_1_pixel_box_abfca78eedb6e3abb8d06ff015814a552}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getConsecutiveSize@{getConsecutiveSize}}
\index{getConsecutiveSize@{getConsecutiveSize}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getConsecutiveSize()}{getConsecutiveSize()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Pixel\+Box\+::get\+Consecutive\+Size (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Return the size (in bytes) this image would take if it was laid out consecutive in memory. 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_adcd4bcebf8ba9ac17b55f0aced8a8285}\label{class_ogre_1_1_pixel_box_adcd4bcebf8ba9ac17b55f0aced8a8285}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getSubVolume@{getSubVolume}}
\index{getSubVolume@{getSubVolume}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getSubVolume()}{getSubVolume()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}} Ogre\+::\+Pixel\+Box\+::get\+Sub\+Volume (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&}]{def,  }\item[{bool}]{reset\+Origin = {\ttfamily true} }\end{DoxyParamCaption}) const}



Return a subvolume of this \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. 


\begin{DoxyParams}{Parameters}
{\em def} & Defines the bounds of the subregion to return \\
\hline
{\em reset\+Origin} & Whether to reset left/top/front of returned \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}} to zero together with adjusting data pointer to compensate this, or do nothing so that returned \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}} will have left/top/front of requested \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pixel box describing the region and the data in it 
\end{DoxyReturn}
\begin{DoxyRemark}{Remarks}
This function does not copy any data, it just returns a \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}} object with a data pointer pointing somewhere inside the data of object. 
\end{DoxyRemark}

\begin{DoxyExceptions}{Exceptions}
{\em Exception(\+E\+R\+R\+\_\+\+I\+N\+V\+A\+L\+I\+D\+P\+A\+R\+A\+M\+S)} & if def is not fully contained \\
\hline
\end{DoxyExceptions}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a9bbe10698adab93b479bded30439fb87}\label{class_ogre_1_1_pixel_box_a9bbe10698adab93b479bded30439fb87}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getTopLeftFrontPixelPtr@{getTopLeftFrontPixelPtr}}
\index{getTopLeftFrontPixelPtr@{getTopLeftFrontPixelPtr}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getTopLeftFrontPixelPtr()}{getTopLeftFrontPixelPtr()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}}$\ast$ Ogre\+::\+Pixel\+Box\+::get\+Top\+Left\+Front\+Pixel\+Ptr (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Return a data pointer pointing to top left front pixel of the pixel box. 

\begin{DoxyRemark}{Remarks}
Non consecutive pixel boxes are supported. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a84fd367f9d768e96a98f53cd08c4ab7b}\label{class_ogre_1_1_pixel_box_a84fd367f9d768e96a98f53cd08c4ab7b}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getColourAt@{getColourAt}}
\index{getColourAt@{getColourAt}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getColourAt()}{getColourAt()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} Ogre\+::\+Pixel\+Box\+::get\+Colour\+At (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{x,  }\item[{size\+\_\+t}]{y,  }\item[{size\+\_\+t}]{z }\end{DoxyParamCaption}) const}



Get colour value from a certain location in the \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. 

The z coordinate is only valid for cubemaps and volume textures. This uses the first (largest) mipmap. \mbox{\Hypertarget{class_ogre_1_1_pixel_box_ad9be8442d595e5208ea80e59041b59d8}\label{class_ogre_1_1_pixel_box_ad9be8442d595e5208ea80e59041b59d8}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!setColourAt@{setColourAt}}
\index{setColourAt@{setColourAt}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{setColourAt()}{setColourAt()}}
{\footnotesize\ttfamily void Ogre\+::\+Pixel\+Box\+::set\+Colour\+At (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_colour_value}{Colour\+Value}} const \&}]{cv,  }\item[{size\+\_\+t}]{x,  }\item[{size\+\_\+t}]{y,  }\item[{size\+\_\+t}]{z }\end{DoxyParamCaption})}



Set colour value at a certain location in the \mbox{\hyperlink{class_ogre_1_1_pixel_box}{Pixel\+Box}}. 

The z coordinate is only valid for cubemaps and volume textures. This uses the first (largest) mipmap. \mbox{\Hypertarget{struct_ogre_1_1_box_a7d29d3b112980c25bd0250dc41cf6ed2}\label{struct_ogre_1_1_box_a7d29d3b112980c25bd0250dc41cf6ed2}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!contains@{contains}}
\index{contains@{contains}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{contains()}{contains()}}
{\footnotesize\ttfamily bool Ogre\+::\+Box\+::contains (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{struct_ogre_1_1_box}{Box}} \&}]{def }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Return true if the other box is a part of this one. 



References Ogre\+::\+Box\+::back, Ogre\+::\+Box\+::bottom, Ogre\+::\+Box\+::front, Ogre\+::\+Box\+::left, Ogre\+::\+Box\+::right, and Ogre\+::\+Box\+::top.

\mbox{\Hypertarget{struct_ogre_1_1_box_a5499449ff454ff98aaa697f8854376fc}\label{struct_ogre_1_1_box_a5499449ff454ff98aaa697f8854376fc}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getWidth@{getWidth}}
\index{getWidth@{getWidth}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getWidth()}{getWidth()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::get\+Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Get the width of this box. 



References Ogre\+::\+Box\+::left, and Ogre\+::\+Box\+::right.

\mbox{\Hypertarget{struct_ogre_1_1_box_a352d26dea0069f2e7f1414e8caa2328c}\label{struct_ogre_1_1_box_a352d26dea0069f2e7f1414e8caa2328c}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getHeight@{getHeight}}
\index{getHeight@{getHeight}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getHeight()}{getHeight()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::get\+Height (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Get the height of this box. 



References Ogre\+::\+Box\+::bottom, and Ogre\+::\+Box\+::top.

\mbox{\Hypertarget{struct_ogre_1_1_box_ae820fd38f7b51e2a907ef601642c898c}\label{struct_ogre_1_1_box_ae820fd38f7b51e2a907ef601642c898c}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!getDepth@{getDepth}}
\index{getDepth@{getDepth}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{getDepth()}{getDepth()}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::get\+Depth (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Get the depth of this box. 



References Ogre\+::\+Box\+::back, and Ogre\+::\+Box\+::front.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_pixel_box_a59624c7c33ade5365428473a1f3dc85a}\label{class_ogre_1_1_pixel_box_a59624c7c33ade5365428473a1f3dc85a}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!data@{data}}
\index{data@{data}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{data}{data}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_a07f1f7c1d84d58c9beae02e1ebb945e4}{uchar}}$\ast$ Ogre\+::\+Pixel\+Box\+::data}



The data pointer. 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_aa4101fdc288dc41dddac88440b4d0818}\label{class_ogre_1_1_pixel_box_aa4101fdc288dc41dddac88440b4d0818}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!format@{format}}
\index{format@{format}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{format}{format}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___image_ga7e0353e7d36d4c2e8468641b7303d39c}{Pixel\+Format}} Ogre\+::\+Pixel\+Box\+::format}



The pixel format. 

\mbox{\Hypertarget{class_ogre_1_1_pixel_box_aacf8f1ebed40c557389d9d1e9dda3b68}\label{class_ogre_1_1_pixel_box_aacf8f1ebed40c557389d9d1e9dda3b68}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!rowPitch@{rowPitch}}
\index{rowPitch@{rowPitch}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{rowPitch}{rowPitch}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Pixel\+Box\+::row\+Pitch}



Number of elements between the leftmost pixel of one row and the left pixel of the next. 

This value must always be equal to \mbox{\hyperlink{struct_ogre_1_1_box_a5499449ff454ff98aaa697f8854376fc}{get\+Width()}} (consecutive) for compressed formats. \mbox{\Hypertarget{class_ogre_1_1_pixel_box_a5f4ac4f2e735678fc8b3ddc1068674dd}\label{class_ogre_1_1_pixel_box_a5f4ac4f2e735678fc8b3ddc1068674dd}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!slicePitch@{slicePitch}}
\index{slicePitch@{slicePitch}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{slicePitch}{slicePitch}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Pixel\+Box\+::slice\+Pitch}



Number of elements between the top left pixel of one (depth) slice and the top left pixel of the next. 

This can be a negative value. Must be a multiple of row\+Pitch. This value must always be equal to \mbox{\hyperlink{struct_ogre_1_1_box_a5499449ff454ff98aaa697f8854376fc}{get\+Width()}}$\ast$get\+Height() (consecutive) for compressed formats. \mbox{\Hypertarget{struct_ogre_1_1_box_a88fa61f841bc444d92075d8b6cb2b43b}\label{struct_ogre_1_1_box_a88fa61f841bc444d92075d8b6cb2b43b}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!left@{left}}
\index{left@{left}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{left}{left}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::left\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Width().

\mbox{\Hypertarget{struct_ogre_1_1_box_a7c317f774697dbd65dd77e49a0448d2d}\label{struct_ogre_1_1_box_a7c317f774697dbd65dd77e49a0448d2d}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!top@{top}}
\index{top@{top}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{top}{top}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::top\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Height().

\mbox{\Hypertarget{struct_ogre_1_1_box_ac2c94e2d364dfabe7e4406ff8f41ab9e}\label{struct_ogre_1_1_box_ac2c94e2d364dfabe7e4406ff8f41ab9e}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!right@{right}}
\index{right@{right}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{right}{right}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::right\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Width().

\mbox{\Hypertarget{struct_ogre_1_1_box_ae46fa4954b4d29f4d051f947fe45c142}\label{struct_ogre_1_1_box_ae46fa4954b4d29f4d051f947fe45c142}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!bottom@{bottom}}
\index{bottom@{bottom}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{bottom}{bottom}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::bottom\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Height().

\mbox{\Hypertarget{struct_ogre_1_1_box_a5e545a9bd1bc4151a113267c6529d84f}\label{struct_ogre_1_1_box_a5e545a9bd1bc4151a113267c6529d84f}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!front@{front}}
\index{front@{front}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{front}{front}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::front\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Depth().

\mbox{\Hypertarget{struct_ogre_1_1_box_a19a7351210e086309a74461d8b4c5cb1}\label{struct_ogre_1_1_box_a19a7351210e086309a74461d8b4c5cb1}} 
\index{Ogre::PixelBox@{Ogre::PixelBox}!back@{back}}
\index{back@{back}!Ogre::PixelBox@{Ogre::PixelBox}}
\doxysubsubsection{\texorpdfstring{back}{back}}
{\footnotesize\ttfamily \mbox{\hyperlink{namespace_ogre_adf2a0cf2e77143b5ee1d38a75e289545}{uint32}} Ogre\+::\+Box\+::back\hspace{0.3cm}{\ttfamily [inherited]}}



Referenced by Ogre\+::\+Box\+::\+Box(), Ogre\+::\+Box\+::contains(), and Ogre\+::\+Box\+::get\+Depth().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_pixel_format_8h}{Ogre\+Pixel\+Format.\+h}}\end{DoxyCompactItemize}
