\section{Image\+Graphics\+View Class Reference}
\label{class_image_graphics_view}\index{Image\+Graphics\+View@{Image\+Graphics\+View}}


Displays the image.  




{\ttfamily \#include $<$imagegraphicsview.\+h$>$}



Inherits Q\+Graphics\+View.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Image\+Graphics\+View} (Q\+Main\+Window $\ast$main\+Window\+\_\+1)
\begin{DoxyCompactList}\small\item\em The constructor of the \doxyref{Image\+Graphics\+View}{p.}{class_image_graphics_view} class. \end{DoxyCompactList}\item 
virtual bool {\bf display} (Q\+String \&file\+Name)
\begin{DoxyCompactList}\small\item\em 1° step for displaying the image \end{DoxyCompactList}\item 
virtual void {\bf set\+Name} (Q\+String $\ast$filename)\label{class_image_graphics_view_a65eda5084b978125ef5975e179ee3488}

\begin{DoxyCompactList}\small\item\em Deprecated method. Will be removed in a future release. \end{DoxyCompactList}\item 
virtual {\bf Image\+Graphics\+Scene} $\ast$ {\bf get\+Scene} ()
\begin{DoxyCompactList}\small\item\em Returns the application scene. \end{DoxyCompactList}\item 
virtual void {\bf set\+Drag\+Button} (bool value)
\begin{DoxyCompactList}\small\item\em Sets the state of the variable representing the state of the Drag icon. \end{DoxyCompactList}\item 
virtual void {\bf drag\+Enable} ()
\begin{DoxyCompactList}\small\item\em Enables the drag mode. \end{DoxyCompactList}\item 
virtual void {\bf drag\+Disable} ()
\begin{DoxyCompactList}\small\item\em Disables the drag mode. \end{DoxyCompactList}\item 
virtual void {\bf cursor\+Activate} ()
\begin{DoxyCompactList}\small\item\em Sets the cursor to be a cross when the user presses the draw icon. \end{DoxyCompactList}\item 
virtual void {\bf cursor\+Desactivate} ()
\begin{DoxyCompactList}\small\item\em Sets the cursor to be an arrow when the user stops drawing. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf draw\+Background} ()
\begin{DoxyCompactList}\small\item\em 2° for drawing the image \end{DoxyCompactList}\item 
void {\bf wheel\+Event} (Q\+Wheel\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em Zoom In and Zoom Out events. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Displays the image. 

This class displays the image chosen by the user.

\begin{DoxyAuthor}{Author}

\end{DoxyAuthor}
\begin{DoxyParagraph}{Author}
David Carmona-\/\+Moreno 
\end{DoxyParagraph}


\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Revision}
1.\+0 
\end{DoxyParagraph}


\begin{DoxyDate}{Date}

\end{DoxyDate}
\begin{DoxyParagraph}{Date}
2016/01/11 14\+:00\+:00 
\end{DoxyParagraph}
\begin{DoxyRefDesc}{Bug}
\item[{\bf Bug}]Not known bugs.\end{DoxyRefDesc}


Contacts\+: {\tt nikolaos.\+arvanitopoulos@epfl.\+ch} and {\tt david.\+carmona-\/moreno@epfl.\+ch}

Created on\+: Mon Jan 12 14\+:00\+:00 2016 

\subsection{Constructor \& Destructor Documentation}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{Image\+Graphics\+View(\+Q\+Main\+Window $\ast$main\+Window\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}Image\+Graphics\+View\+::\+Image\+Graphics\+View (
\begin{DoxyParamCaption}
\item[{Q\+Main\+Window $\ast$}]{main\+Window\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_image_graphics_view_a7f6f0bcf1f9814fd069be7124ac063a1}


The constructor of the \doxyref{Image\+Graphics\+View}{p.}{class_image_graphics_view} class. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+main\+Window\+\_\+1} & The application Main Window \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!cursor\+Activate@{cursor\+Activate}}
\index{cursor\+Activate@{cursor\+Activate}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{cursor\+Activate()}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::cursor\+Activate (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_a018ded0a9afa6dc9f450fdfb7d072ca4}


Sets the cursor to be a cross when the user presses the draw icon. 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!cursor\+Desactivate@{cursor\+Desactivate}}
\index{cursor\+Desactivate@{cursor\+Desactivate}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{cursor\+Desactivate()}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::cursor\+Desactivate (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_a6f707cebbe0c821a0711e6649d26f969}


Sets the cursor to be an arrow when the user stops drawing. 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!display@{display}}
\index{display@{display}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{display(\+Q\+String \&file\+Name)}]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+View\+::display (
\begin{DoxyParamCaption}
\item[{Q\+String \&}]{file\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_addc0bcfe6ecdf96c9f5280f4da657a7d}


1° step for displaying the image 


\begin{DoxyParams}{Parameters}
{\em file\+Name} & The filepath of the image to display \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if the image is displayed, false if not 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!drag\+Disable@{drag\+Disable}}
\index{drag\+Disable@{drag\+Disable}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{drag\+Disable()}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::drag\+Disable (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_ad5b4b212794c6552e1ed5a3a1c908d80}


Disables the drag mode. 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!drag\+Enable@{drag\+Enable}}
\index{drag\+Enable@{drag\+Enable}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{drag\+Enable()}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::drag\+Enable (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_a782a09dda540045a7bcdd38bee2af99d}


Enables the drag mode. 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!draw\+Background@{draw\+Background}}
\index{draw\+Background@{draw\+Background}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{draw\+Background()}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::draw\+Background (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_view_a3b17f1c7b4774bed62a1532006e91a56}


2° for drawing the image 

\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!get\+Scene@{get\+Scene}}
\index{get\+Scene@{get\+Scene}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{get\+Scene()}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Image\+Graphics\+Scene} $\ast$ Image\+Graphics\+View\+::get\+Scene (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_a812cca006c47bba64ed3da4f2dbfdc45}


Returns the application scene. 

\begin{DoxyReturn}{Returns}
The application scene 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!set\+Drag\+Button@{set\+Drag\+Button}}
\index{set\+Drag\+Button@{set\+Drag\+Button}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{set\+Drag\+Button(bool value)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::set\+Drag\+Button (
\begin{DoxyParamCaption}
\item[{bool}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_view_af96e97a24d41380b90b7ce19d024ca0f}


Sets the state of the variable representing the state of the Drag icon. 

\begin{DoxyReturn}{Returns}
True if the user has pressed the Drag icon, False if not 
\end{DoxyReturn}
\index{Image\+Graphics\+View@{Image\+Graphics\+View}!wheel\+Event@{wheel\+Event}}
\index{wheel\+Event@{wheel\+Event}!Image\+Graphics\+View@{Image\+Graphics\+View}}
\subsubsection[{wheel\+Event(\+Q\+Wheel\+Event $\ast$event)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+View\+::wheel\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Wheel\+Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_view_a1dd43336b5bd867c39b987e971822482}


Zoom In and Zoom Out events. 


\begin{DoxyParams}{Parameters}
{\em event} & The Zoom In or Zoom out event \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/imagegraphicsview.\+h\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/imagegraphicsview.\+cpp\end{DoxyCompactItemize}
