\section{TPProto::Get\-Object\-By\-Pos Class Reference}
\label{classTPProto_1_1GetObjectByPos}\index{TPProto::GetObjectByPos@{TPProto::GetObjectByPos}}
\doxyref{Frame}{p.}{classTPProto_1_1Frame} for getting all objects within a given area.  


{\tt \#include $<$getobjectbypos.h$>$}

Inheritance diagram for TPProto::Get\-Object\-By\-Pos::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTPProto_1_1GetObjectByPos}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Get\-Object\-By\-Pos} ()
\begin{CompactList}\small\item\em Default constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$Get\-Object\-By\-Pos} ()\label{classTPProto_1_1GetObjectByPos_074438b61ed6fe3f5bfc47c25e4d0060}

\begin{CompactList}\small\item\em Required virtual destructor. \item\end{CompactList}\item 
void {\bf pack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Pack the \doxyref{Frame}{p.}{classTPProto_1_1Frame} into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. \item\end{CompactList}\item 
bool {\bf unpack\-Buffer} ({\bf Buffer} $\ast$buf)
\begin{CompactList}\small\item\em Unpack \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, always false. \item\end{CompactList}\item 
void {\bf set\-Position} (const {\bf Vector3d} \&npos)
\begin{CompactList}\small\item\em Sets the position for the centre of the area to be looked at. \item\end{CompactList}\item 
void {\bf set\-Radius} (uint64\_\-t nrad)
\begin{CompactList}\small\item\em Sets the radius for the area to be looked at. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
\doxyref{Frame}{p.}{classTPProto_1_1Frame} for getting all objects within a given area. 

The area is a sphere of radius units centre at the position. 



\subsection{Constructor \& Destructor Documentation}
\index{TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}!GetObjectByPos@{GetObjectByPos}}
\index{GetObjectByPos@{GetObjectByPos}!TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}TPProto::Get\-Object\-By\-Pos::Get\-Object\-By\-Pos ()}\label{classTPProto_1_1GetObjectByPos_43246eeb338f58c6926f15cb7b5eee5e}


Default constructor. 

Sets the position to 0,0,0 (centre of the universe) and the radius to 0. 

\subsection{Member Function Documentation}
\index{TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}!packBuffer@{packBuffer}}
\index{packBuffer@{packBuffer}!TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Get\-Object\-By\-Pos::pack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1GetObjectByPos_27aa7d1006efc2cbeb529b61c60c9920}


Pack the \doxyref{Frame}{p.}{classTPProto_1_1Frame} into a \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em buf}]The \doxyref{Buffer}{p.}{classTPProto_1_1Buffer} to pack into. \end{description}
\end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_67b50ee76e90385e56f04202ce1da67e}.\index{TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}!unpackBuffer@{unpackBuffer}}
\index{unpackBuffer@{unpackBuffer}!TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool TPProto::Get\-Object\-By\-Pos::unpack\-Buffer ({\bf Buffer} $\ast$ {\em buf})\hspace{0.3cm}{\tt  [virtual]}}\label{classTPProto_1_1GetObjectByPos_2c1ff10b0fdb03641cc533b95ad528be}


Unpack \doxyref{Buffer}{p.}{classTPProto_1_1Buffer}, always false. 

This \doxyref{Frame}{p.}{classTPProto_1_1Frame} should never be received, therefore this method always returns false. \begin{Desc}
\item[Returns:]False, always. \end{Desc}


Implements {\bf TPProto::Frame} \doxyref{}{p.}{classTPProto_1_1Frame_fe220a4229f471a3cc6a143f7a27e321}.\index{TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}!setPosition@{setPosition}}
\index{setPosition@{setPosition}!TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Get\-Object\-By\-Pos::set\-Position (const {\bf Vector3d} \& {\em npos})}\label{classTPProto_1_1GetObjectByPos_eac71a931f930a31122fb3df40ba4e2b}


Sets the position for the centre of the area to be looked at. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em npos}]The position to be taken as the centre. \end{description}
\end{Desc}
\index{TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}!setRadius@{setRadius}}
\index{setRadius@{setRadius}!TPProto::GetObjectByPos@{TPProto::Get\-Object\-By\-Pos}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void TPProto::Get\-Object\-By\-Pos::set\-Radius (uint64\_\-t {\em nrad})}\label{classTPProto_1_1GetObjectByPos_48f235951e3faf1903d27e7281a9f3ca}


Sets the radius for the area to be looked at. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em nrad}]The radius to be used. \end{description}
\end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
tpproto/{\bf getobjectbypos.h}\item 
tpproto/getobjectbypos.cpp\end{CompactItemize}
