\section{Image\+Graphics\+Scene Class Reference}
\label{class_image_graphics_scene}\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}


Displays the rectangles and work on the image.  




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



Inherits Q\+Graphics\+Scene.

\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
void {\bf change\+Cursor} (bool value)
\begin{DoxyCompactList}\small\item\em Deprecated signal. Will be deleted in a future release. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Image\+Graphics\+Scene} (Q\+Graphics\+View $\ast$view\+\_\+1, Q\+Pixmap $\ast$pixmap\+\_\+1, Q\+RectF scene\+Rectangle\+\_\+1, {\bf Create\+File\+Abstraction} $\ast$cfa\+\_\+1)
\begin{DoxyCompactList}\small\item\em The constructor of the \doxyref{Image\+Graphics\+Scene}{p.}{class_image_graphics_scene} class. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\+Image\+Graphics\+Scene} ()\label{class_image_graphics_scene_acdcb180588b86b9f9768e44dc19219de}

\begin{DoxyCompactList}\small\item\em Class destructor. \end{DoxyCompactList}\item 
virtual bool {\bf Iscontaining} ({\bf Rectangle\+Draw} $\ast$rectangle, Q\+PointF point) const 
\begin{DoxyCompactList}\small\item\em Checks if the user is pressing on one rectangle. \end{DoxyCompactList}\item 
virtual void {\bf set\+Draw\+Button} (bool value)
\begin{DoxyCompactList}\small\item\em Sets the state of the draw icon. \end{DoxyCompactList}\item 
virtual bool {\bf get\+Draw\+Button} () const 
\begin{DoxyCompactList}\small\item\em Returns the state of the draw icon. \end{DoxyCompactList}\item 
virtual void {\bf set\+Erase\+Button} (bool value)
\begin{DoxyCompactList}\small\item\em Sets the state of the erase icon. \end{DoxyCompactList}\item 
virtual bool {\bf get\+Erase\+Button} () const 
\begin{DoxyCompactList}\small\item\em Returns the state of the erase icon. \end{DoxyCompactList}\item 
virtual void {\bf set\+Double\+Click} (bool value)\label{class_image_graphics_scene_a276195c59c81f33babd37ef3906de2b9}

\begin{DoxyCompactList}\small\item\em Deprecated. Will be removed in a future release. \end{DoxyCompactList}\item 
virtual bool {\bf get\+Double\+Click} () const \label{class_image_graphics_scene_a9e8223c1ea72868885f3e96110bf2551}

\begin{DoxyCompactList}\small\item\em Deprecated method. Will be removed in the future release. \end{DoxyCompactList}\item 
virtual void {\bf set\+Drag\+Button} (bool value)
\begin{DoxyCompactList}\small\item\em Sets the state of the drag icon. \end{DoxyCompactList}\item 
virtual bool {\bf get\+Drag\+Button} () const 
\begin{DoxyCompactList}\small\item\em Returns the state of the drag icon. \end{DoxyCompactList}\item 
virtual Q\+Cursor $\ast$ {\bf get\+Erase\+Cursor} () const 
\begin{DoxyCompactList}\small\item\em Returns the shape of the erase cursor. \end{DoxyCompactList}\item 
virtual Q\+Cursor $\ast$ {\bf get\+Modify\+Cursor} () const 
\begin{DoxyCompactList}\small\item\em Returns the shape of the Modify cursor. \end{DoxyCompactList}\item 
virtual Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$ {\bf get\+List} () const 
\begin{DoxyCompactList}\small\item\em Returns a list of all the rectangles in the scene. \end{DoxyCompactList}\item 
virtual void {\bf set\+List} (Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$ list\+\_\+1)
\begin{DoxyCompactList}\small\item\em Sets the list of the rectangles drawn in th scene. \end{DoxyCompactList}\item 
virtual void {\bf set\+Id} (int id)
\begin{DoxyCompactList}\small\item\em Sets the rectangle ID. \end{DoxyCompactList}\item 
virtual {\bf File\+Writer} $\ast$ {\bf get\+File\+Writer} () const 
\begin{DoxyCompactList}\small\item\em Returns the \doxyref{File\+Writer}{p.}{class_file_writer} object. \end{DoxyCompactList}\item 
virtual void {\bf set\+File\+Writer} ({\bf File\+Writer} $\ast$filewriter\+\_\+1)
\begin{DoxyCompactList}\small\item\em Sets the Fiel\+Writer object. \end{DoxyCompactList}\item 
virtual int {\bf check\+Mouse\+Move} (Q\+PointF point)
\begin{DoxyCompactList}\small\item\em Checks if the mouse is around one of the rectangle corners when we are in the \char`\"{}\+Modify\char`\"{} mode. \end{DoxyCompactList}\item 
virtual int {\bf check\+Mouse\+Press} (Q\+PointF point)
\begin{DoxyCompactList}\small\item\em Checks if the mouse is pressing one of the rectangle corners when we are in the \char`\"{}\+Modify\char`\"{} mode. \end{DoxyCompactList}\item 
virtual void {\bf set\+Is\+Selected} (bool state)\label{class_image_graphics_scene_afe10adbb483bc922d5a5172e35951721}

\begin{DoxyCompactList}\small\item\em Deprecated. Will be removed in a future release. \end{DoxyCompactList}\item 
virtual bool {\bf check\+Modify} () const 
\begin{DoxyCompactList}\small\item\em Checks if we are in the \char`\"{}\+Modify\char`\"{} mode or not. \end{DoxyCompactList}\item 
virtual void {\bf set\+Modify} (bool state)\label{class_image_graphics_scene_a60af6afe6a253fdd2bed3753820eaa21}

\begin{DoxyCompactList}\small\item\em Deprecated. Will be remove in a future release. \end{DoxyCompactList}\item 
virtual {\bf Create\+File\+Abstraction} $\ast$ {\bf get\+Create\+File\+Abstraction} () const 
\begin{DoxyCompactList}\small\item\em Returns the text file. \end{DoxyCompactList}\item 
virtual void {\bf set\+Create\+File\+Abstraction} ({\bf Create\+File\+Abstraction} $\ast$createfileabstraction\+\_\+1)
\begin{DoxyCompactList}\small\item\em Sets the text file associated to the image. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf mouse\+Press\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em Detects when the user presses one button of the mouse. \end{DoxyCompactList}\item 
void {\bf mouse\+Release\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em Detects when the user releases one button of the mouse. \end{DoxyCompactList}\item 
void {\bf mouse\+Move\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em Detects when the user moves his mouse all around the scene. \end{DoxyCompactList}\item 
void {\bf mouse\+Double\+Click\+Event} (Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)
\begin{DoxyCompactList}\small\item\em Deprecated. Will be removed in a future release. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Displays the rectangles and work on the image. 

This class is essential. When the user wants to draw, modify or annotate a rectangle, \doxyref{Image\+Graphics\+Scene}{p.}{class_image_graphics_scene} allows him to proceed so.

\begin{DoxyNote}{Note}
The following 
\end{DoxyNote}
\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}]When the user wants to modify one rectangle, its height and weight cannot be negative.\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\+Scene@{Image\+Graphics\+Scene}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{Image\+Graphics\+Scene(\+Q\+Graphics\+View $\ast$view\+\_\+1, Q\+Pixmap $\ast$pixmap\+\_\+1, Q\+Rect\+F scene\+Rectangle\+\_\+1, Create\+File\+Abstraction $\ast$cfa\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}Image\+Graphics\+Scene\+::\+Image\+Graphics\+Scene (
\begin{DoxyParamCaption}
\item[{Q\+Graphics\+View $\ast$}]{view\+\_\+1, }
\item[{Q\+Pixmap $\ast$}]{pixmap\+\_\+1, }
\item[{Q\+RectF}]{scene\+Rectangle\+\_\+1, }
\item[{{\bf Create\+File\+Abstraction} $\ast$}]{cfa\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_image_graphics_scene_ad70f8ff758cf607fd84c1f92df0f655a}


The constructor of the \doxyref{Image\+Graphics\+Scene}{p.}{class_image_graphics_scene} class. 


\begin{DoxyParams}{Parameters}
{\em view\+\_\+1} & The Q\+Graphics\+View where the image is displayed \\
\hline
{\em pixmap\+\_\+1} & The image we want to work with \\
\hline
{\em scene\+Rectangle\+\_\+1} & The size of the \doxyref{Image\+Graphics\+Scene}{p.}{class_image_graphics_scene} \\
\hline
{\em cfa\+\_\+1} & The text file which is associated to the image \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!change\+Cursor@{change\+Cursor}}
\index{change\+Cursor@{change\+Cursor}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{change\+Cursor}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::change\+Cursor (
\begin{DoxyParamCaption}
\item[{bool}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [signal]}}\label{class_image_graphics_scene_a76947eb4ed5de693628301ee7b662066}


Deprecated signal. Will be deleted in a future release. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!check\+Modify@{check\+Modify}}
\index{check\+Modify@{check\+Modify}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{check\+Modify() const }]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+Scene\+::check\+Modify (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a13e5bc69aa915bef3d7d6a38b25be7a9}


Checks if we are in the \char`\"{}\+Modify\char`\"{} mode or not. 

\begin{DoxyReturn}{Returns}
True if we are in the \char`\"{}\+Modify\char`\"{} mode, False if we are not 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!check\+Mouse\+Move@{check\+Mouse\+Move}}
\index{check\+Mouse\+Move@{check\+Mouse\+Move}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{check\+Mouse\+Move(\+Q\+Point\+F point)}]{\setlength{\rightskip}{0pt plus 5cm}int Image\+Graphics\+Scene\+::check\+Mouse\+Move (
\begin{DoxyParamCaption}
\item[{Q\+PointF}]{point}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a3f5ebf4ffe1486221dadaada4b89cfb5}


Checks if the mouse is around one of the rectangle corners when we are in the \char`\"{}\+Modify\char`\"{} mode. 


\begin{DoxyParams}{Parameters}
{\em point} & The mouse pointer coordinates \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Always returns 0 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!check\+Mouse\+Press@{check\+Mouse\+Press}}
\index{check\+Mouse\+Press@{check\+Mouse\+Press}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{check\+Mouse\+Press(\+Q\+Point\+F point)}]{\setlength{\rightskip}{0pt plus 5cm}int Image\+Graphics\+Scene\+::check\+Mouse\+Press (
\begin{DoxyParamCaption}
\item[{Q\+PointF}]{point}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a8994e133ef2ebd377eef4f0240f3b4f7}


Checks if the mouse is pressing one of the rectangle corners when we are in the \char`\"{}\+Modify\char`\"{} mode. 


\begin{DoxyParams}{Parameters}
{\em point} & The mouse pointer coordinates \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Always returns 0 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Create\+File\+Abstraction@{get\+Create\+File\+Abstraction}}
\index{get\+Create\+File\+Abstraction@{get\+Create\+File\+Abstraction}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Create\+File\+Abstraction() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf Create\+File\+Abstraction} $\ast$ Image\+Graphics\+Scene\+::get\+Create\+File\+Abstraction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_aad9859b73923eecde1068c6b778f725e}


Returns the text file. 

\begin{DoxyReturn}{Returns}
The text file 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Drag\+Button@{get\+Drag\+Button}}
\index{get\+Drag\+Button@{get\+Drag\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Drag\+Button() const }]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+Scene\+::get\+Drag\+Button (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_adbab9e368feb10d4343bff5b77ac4d9d}


Returns the state of the drag icon. 

\begin{DoxyReturn}{Returns}
True if it is pressed by the user,False if it is not 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Draw\+Button@{get\+Draw\+Button}}
\index{get\+Draw\+Button@{get\+Draw\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Draw\+Button() const }]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+Scene\+::get\+Draw\+Button (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a967a43738ff16cb9b9aa58bc78274fdf}


Returns the state of the draw icon. 

\begin{DoxyReturn}{Returns}
True if it is pressed by the user, False if it is not 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Erase\+Button@{get\+Erase\+Button}}
\index{get\+Erase\+Button@{get\+Erase\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Erase\+Button() const }]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+Scene\+::get\+Erase\+Button (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a0410e760e3ae0c6c31bf820147108292}


Returns the state of the erase icon. 

\begin{DoxyReturn}{Returns}
True if it is presed by the user, False if it is ot 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Erase\+Cursor@{get\+Erase\+Cursor}}
\index{get\+Erase\+Cursor@{get\+Erase\+Cursor}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Erase\+Cursor() const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+Cursor $\ast$ Image\+Graphics\+Scene\+::get\+Erase\+Cursor (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a605f908ab299b9e081ed0585480b8e6c}


Returns the shape of the erase cursor. 

\begin{DoxyReturn}{Returns}
The cursor shape 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+File\+Writer@{get\+File\+Writer}}
\index{get\+File\+Writer@{get\+File\+Writer}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+File\+Writer() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf File\+Writer} $\ast$ Image\+Graphics\+Scene\+::get\+File\+Writer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a1fe05b2da05b1303e2482f039c3ae76f}


Returns the \doxyref{File\+Writer}{p.}{class_file_writer} object. 

\begin{DoxyReturn}{Returns}
The \doxyref{File\+Writer}{p.}{class_file_writer} object 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+List@{get\+List}}
\index{get\+List@{get\+List}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+List() const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$ Image\+Graphics\+Scene\+::get\+List (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a1c7a6e0dbf21e2fcebfc0f04b79cfdb7}


Returns a list of all the rectangles in the scene. 

\begin{DoxyReturn}{Returns}
The list of all the rectangles in the scene 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!get\+Modify\+Cursor@{get\+Modify\+Cursor}}
\index{get\+Modify\+Cursor@{get\+Modify\+Cursor}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{get\+Modify\+Cursor() const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+Cursor $\ast$ Image\+Graphics\+Scene\+::get\+Modify\+Cursor (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a711870bf598f3cf4d5556cfea1930051}


Returns the shape of the Modify cursor. 

\begin{DoxyReturn}{Returns}
The cursor shape 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!Iscontaining@{Iscontaining}}
\index{Iscontaining@{Iscontaining}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{Iscontaining(\+Rectangle\+Draw $\ast$rectangle, Q\+Point\+F point) const }]{\setlength{\rightskip}{0pt plus 5cm}bool Image\+Graphics\+Scene\+::\+Iscontaining (
\begin{DoxyParamCaption}
\item[{{\bf Rectangle\+Draw} $\ast$}]{rectangle, }
\item[{Q\+PointF}]{point}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a3e96a34411f8d5290b40861fcca634c7}


Checks if the user is pressing on one rectangle. 


\begin{DoxyParams}{Parameters}
{\em rectangle} & A rectangle \\
\hline
{\em param} & The mouse pointer coordinates \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
True if the user is pressing on one rectangle ,False if not 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!mouse\+Double\+Click\+Event@{mouse\+Double\+Click\+Event}}
\index{mouse\+Double\+Click\+Event@{mouse\+Double\+Click\+Event}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{mouse\+Double\+Click\+Event(\+Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::mouse\+Double\+Click\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Graphics\+Scene\+Mouse\+Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_scene_a904956c67a1b37f94a50880a558a8877}


Deprecated. Will be removed in a future release. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!mouse\+Move\+Event@{mouse\+Move\+Event}}
\index{mouse\+Move\+Event@{mouse\+Move\+Event}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{mouse\+Move\+Event(\+Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::mouse\+Move\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Graphics\+Scene\+Mouse\+Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_scene_a27417e817a527aa909e659eea770040f}


Detects when the user moves his mouse all around the scene. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!mouse\+Press\+Event@{mouse\+Press\+Event}}
\index{mouse\+Press\+Event@{mouse\+Press\+Event}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{mouse\+Press\+Event(\+Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::mouse\+Press\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Graphics\+Scene\+Mouse\+Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_scene_a98a9447170995003a7076fd99eecaa23}


Detects when the user presses one button of the mouse. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!mouse\+Release\+Event@{mouse\+Release\+Event}}
\index{mouse\+Release\+Event@{mouse\+Release\+Event}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{mouse\+Release\+Event(\+Q\+Graphics\+Scene\+Mouse\+Event $\ast$event)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::mouse\+Release\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Graphics\+Scene\+Mouse\+Event $\ast$}]{event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}\label{class_image_graphics_scene_a2af2c57feb102520e57a7625c0fce201}


Detects when the user releases one button of the mouse. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+Create\+File\+Abstraction@{set\+Create\+File\+Abstraction}}
\index{set\+Create\+File\+Abstraction@{set\+Create\+File\+Abstraction}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+Create\+File\+Abstraction(\+Create\+File\+Abstraction $\ast$createfileabstraction\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+Create\+File\+Abstraction (
\begin{DoxyParamCaption}
\item[{{\bf Create\+File\+Abstraction} $\ast$}]{createfileabstraction\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_ac3de8a8db4454e255a70b98ca4294e08}


Sets the text file associated to the image. 


\begin{DoxyParams}{Parameters}
{\em createfileabstraction\+\_\+1} & The text file associated to the image \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+Drag\+Button@{set\+Drag\+Button}}
\index{set\+Drag\+Button@{set\+Drag\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+Drag\+Button(bool value)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+Drag\+Button (
\begin{DoxyParamCaption}
\item[{bool}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a263c321a3e881a98783832e07b0af2a5}


Sets the state of the drag icon. 


\begin{DoxyParams}{Parameters}
{\em True} & if the user is still dragging False if he has finished \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+Draw\+Button@{set\+Draw\+Button}}
\index{set\+Draw\+Button@{set\+Draw\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+Draw\+Button(bool value)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+Draw\+Button (
\begin{DoxyParamCaption}
\item[{bool}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_ac437ce82fc4bab5de2b30b4ba1eca22e}


Sets the state of the draw icon. 


\begin{DoxyParams}{Parameters}
{\em True} & if the user is still drawing, False if he has finished \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+Erase\+Button@{set\+Erase\+Button}}
\index{set\+Erase\+Button@{set\+Erase\+Button}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+Erase\+Button(bool value)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+Erase\+Button (
\begin{DoxyParamCaption}
\item[{bool}]{value}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a95e24369c7f924b0e3f13308eabfe53c}


Sets the state of the erase icon. 


\begin{DoxyParams}{Parameters}
{\em True} & if the user is still erasing, False if he has finished \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+File\+Writer@{set\+File\+Writer}}
\index{set\+File\+Writer@{set\+File\+Writer}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+File\+Writer(\+File\+Writer $\ast$filewriter\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+File\+Writer (
\begin{DoxyParamCaption}
\item[{{\bf File\+Writer} $\ast$}]{filewriter\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_ad1855848ac7b00f7bc56e3cfbb9b9d6d}


Sets the Fiel\+Writer object. 


\begin{DoxyParams}{Parameters}
{\em filewriter\+\_\+1} & The \doxyref{File\+Writer}{p.}{class_file_writer} object \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+Id@{set\+Id}}
\index{set\+Id@{set\+Id}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+Id(int id)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+Id (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_abdab3061d1a3e22a8f52a289e7a908e2}


Sets the rectangle ID. 


\begin{DoxyParams}{Parameters}
{\em id} & The automatically computed ID \\
\hline
\end{DoxyParams}
\index{Image\+Graphics\+Scene@{Image\+Graphics\+Scene}!set\+List@{set\+List}}
\index{set\+List@{set\+List}!Image\+Graphics\+Scene@{Image\+Graphics\+Scene}}
\subsubsection[{set\+List(\+Q\+List$<$ Rectangle\+Draw $\ast$ $>$ list\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}void Image\+Graphics\+Scene\+::set\+List (
\begin{DoxyParamCaption}
\item[{Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$}]{list\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_image_graphics_scene_a136d0f18c194c5640a368cceedfb02a6}


Sets the list of the rectangles drawn in th scene. 


\begin{DoxyParams}{Parameters}
{\em list\+\_\+1} & The rectangles list \\
\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/imagegraphicsscene.\+h\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/imagegraphicsscene.\+cpp\end{DoxyCompactItemize}
