\hypertarget{classFitSpotsGraphics}{
\subsection{FitSpotsGraphics Class Reference}
\label{classFitSpotsGraphics}\index{FitSpotsGraphics@{FitSpotsGraphics}}
}


Graphics class for FittingSpots.  




{\ttfamily \#include $<$multispot5.h$>$}

Inheritance diagram for FitSpotsGraphics:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classFitSpotsGraphics}
\end{center}
\end{figure}
\subsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{classFitSpotsGraphics_aed22365ec6addb00bc98a23667b1ff55}{init} (CVD::ImageRef size)=0
\item 
virtual void \hyperlink{classFitSpotsGraphics_a659a7f0b305c772575231ade0179386d}{draw\_\-krap} (const std::vector$<$ TooN::Vector$<$ 4 $>$ $>$ \&spots, const CVD::Image$<$ CVD::byte $>$ \&im, const \hyperlink{group__gUtility_ga4c9c078fe9f2a8a517df9262c8543b02}{BBox} \&box, int N, TooN::Vector$<$ 4 $>$ s=TooN::Ones $\ast$1e99)=0
\item 
virtual void \hyperlink{classFitSpotsGraphics_aecab468299b9b303a1fc5dca0e3e9dfa}{swap} ()=0
\item 
virtual void \hyperlink{classFitSpotsGraphics_a883c0d8529f487422656bc842112568c}{draw\_\-pixels} (const std::vector$<$ CVD::ImageRef $>$ \&pix, float r, float g, float b, float a=1)=0
\item 
virtual void \hyperlink{classFitSpotsGraphics_aeadd1d1b044ac29eadf4b105552dcf35}{draw\_\-bbox} (const \hyperlink{group__gUtility_ga4c9c078fe9f2a8a517df9262c8543b02}{BBox} \&bbox)=0
\item 
virtual void \hyperlink{classFitSpotsGraphics_a204f69e608d6b1abd20d5c00e3ec45c3}{glDrawCross} (const TooN::Vector$<$ 2 $>$ \&p, int size=3)=0
\item 
virtual \hyperlink{classFitSpotsGraphics_af3a3a1db9c8f06ac073932b2ded4fe78}{$\sim$FitSpotsGraphics} ()
\end{DoxyCompactItemize}


\subsubsection{Detailed Description}
Graphics class for FittingSpots. 

This abstraction prevents \hyperlink{classFitSpots}{FitSpots} from depending on and graphics library. The functions are tied very heavily to the internals of \hyperlink{classFitSpots}{FitSpots}. 

Definition at line 40 of file multispot5.h.



\subsubsection{Constructor \& Destructor Documentation}
\hypertarget{classFitSpotsGraphics_af3a3a1db9c8f06ac073932b2ded4fe78}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!$\sim$FitSpotsGraphics@{$\sim$FitSpotsGraphics}}
\index{$\sim$FitSpotsGraphics@{$\sim$FitSpotsGraphics}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{$\sim$FitSpotsGraphics}]{\setlength{\rightskip}{0pt plus 5cm}FitSpotsGraphics::$\sim$FitSpotsGraphics (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classFitSpotsGraphics_af3a3a1db9c8f06ac073932b2ded4fe78}


Desctructor. 



Definition at line 90 of file multispot5.cc.


\begin{DoxyCode}
{}
\end{DoxyCode}


\subsubsection{Member Function Documentation}
\hypertarget{classFitSpotsGraphics_aed22365ec6addb00bc98a23667b1ff55}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!init@{init}}
\index{init@{init}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{init}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::init (
\begin{DoxyParamCaption}
\item[{CVD::ImageRef}]{size}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_aed22365ec6addb00bc98a23667b1ff55}


Initialize graphics. 


\begin{DoxyParams}{Parameters}
{\em size} & Size of window for display \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classNullGraphics_af3ec75ae0d71e0fceed92ecae3593216}{NullGraphics}.

\hypertarget{classFitSpotsGraphics_a659a7f0b305c772575231ade0179386d}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!draw\_\-krap@{draw\_\-krap}}
\index{draw\_\-krap@{draw\_\-krap}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{draw\_\-krap}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::draw\_\-krap (
\begin{DoxyParamCaption}
\item[{const std::vector$<$ TooN::Vector$<$ 4 $>$ $>$ \&}]{spots, }
\item[{const CVD::Image$<$ CVD::byte $>$ \&}]{im, }
\item[{const {\bf BBox} \&}]{box, }
\item[{int}]{N, }
\item[{TooN::Vector$<$ 4 $>$}]{s = {\ttfamily TooN::Ones~$\ast$1e99}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_a659a7f0b305c772575231ade0179386d}


Draw a bunch of stuff. 


\begin{DoxyParams}{Parameters}
{\em spots} & List of spots to draw \\
\hline
{\em im} & Background image \\
\hline
{\em box} & Bounding box of region \\
\hline
{\em N} & \hyperlink{classSpot}{Spot} to highlight \\
\hline
{\em s} & Extra spot to draw as a cross \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classNullGraphics_afc8633d22ec9a5713775254466eddc47}{NullGraphics}.

\hypertarget{classFitSpotsGraphics_aecab468299b9b303a1fc5dca0e3e9dfa}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!swap@{swap}}
\index{swap@{swap}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{swap}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::swap (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_aecab468299b9b303a1fc5dca0e3e9dfa}


Swap buffers if double buffered. 



Implemented in \hyperlink{classNullGraphics_a0ad0165377fc917fcd720403932edaaf}{NullGraphics}.

\hypertarget{classFitSpotsGraphics_a883c0d8529f487422656bc842112568c}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!draw\_\-pixels@{draw\_\-pixels}}
\index{draw\_\-pixels@{draw\_\-pixels}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{draw\_\-pixels}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::draw\_\-pixels (
\begin{DoxyParamCaption}
\item[{const std::vector$<$ CVD::ImageRef $>$ \&}]{pix, }
\item[{float}]{r, }
\item[{float}]{g, }
\item[{float}]{b, }
\item[{float}]{a = {\ttfamily 1}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_a883c0d8529f487422656bc842112568c}


Draw the pixel mask in an (r,g,b,a) tuple colour. 


\begin{DoxyParams}{Parameters}
{\em pix} & mask \\
\hline
{\em r} & red \\
\hline
{\em g} & green \\
\hline
{\em b} & blue \\
\hline
{\em a} & alpha \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classNullGraphics_a8d454360c308c2e371800d9a6087f4fa}{NullGraphics}.

\hypertarget{classFitSpotsGraphics_aeadd1d1b044ac29eadf4b105552dcf35}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!draw\_\-bbox@{draw\_\-bbox}}
\index{draw\_\-bbox@{draw\_\-bbox}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{draw\_\-bbox}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::draw\_\-bbox (
\begin{DoxyParamCaption}
\item[{const {\bf BBox} \&}]{bbox}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_aeadd1d1b044ac29eadf4b105552dcf35}


Draw a bounding box. 


\begin{DoxyParams}{Parameters}
{\em bbox} & Box corners \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classNullGraphics_a19b9c2eaefa514566c6c153ea0c580ef}{NullGraphics}.

\hypertarget{classFitSpotsGraphics_a204f69e608d6b1abd20d5c00e3ec45c3}{
\index{FitSpotsGraphics@{FitSpotsGraphics}!glDrawCross@{glDrawCross}}
\index{glDrawCross@{glDrawCross}!FitSpotsGraphics@{FitSpotsGraphics}}
\paragraph[{glDrawCross}]{\setlength{\rightskip}{0pt plus 5cm}virtual void FitSpotsGraphics::glDrawCross (
\begin{DoxyParamCaption}
\item[{const TooN::Vector$<$ 2 $>$ \&}]{p, }
\item[{int}]{size = {\ttfamily 3}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}pure virtual\mbox{]}}}}
\label{classFitSpotsGraphics_a204f69e608d6b1abd20d5c00e3ec45c3}


Draw a cross. 


\begin{DoxyParams}{Parameters}
{\em p} & Position of cross \\
\hline
{\em size} & Size to draw cross \\
\hline
\end{DoxyParams}


Implemented in \hyperlink{classNullGraphics_a4117be271132c0179bdd20a373409483}{NullGraphics}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
\hyperlink{multispot5_8h}{multispot5.h}\item 
\hyperlink{multispot5_8cc}{multispot5.cc}\end{DoxyCompactItemize}
