\hypertarget{classCRL_1_1GraphicTool}{}\section{C\+RL\+:\+:Graphic\+Tool Class Reference}
\label{classCRL_1_1GraphicTool}\index{C\+R\+L\+::\+Graphic\+Tool@{C\+R\+L\+::\+Graphic\+Tool}}


Base Class to Hook Tool\+Engines into the Cell\+Viewer.  




Inherits Q\+Object.

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{classCRL_1_1GraphicTool_a63941f6c930c08087935ea3e276ee9a9}{add\+To\+Menu}} (\textbf{ Cell\+Viewer} $\ast$)=0
\item 
virtual const \textbf{ Name} \& \mbox{\hyperlink{classCRL_1_1GraphicTool_a4420ce085389f1f9111735031467848d}{get\+Name}} () const =0
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base Class to Hook Tool\+Engines into the Cell\+Viewer. 

This class implement the graphical conterpart of a \mbox{\hyperlink{classCRL_1_1ToolEngine}{Tool\+Engine}}. It is designed to work with the \textbf{ Unicorn} G\+UI, to insert new menus and possibly define new graphical overlays (that are {\itshape not} associated to \textbf{ Hurricane\+::\+Basic\+Layer}).

Derived classes should provide a method that returns a new \mbox{\hyperlink{classCRL_1_1GraphicTool}{Graphic\+Tool}} to be passed to the \textbf{ Unicorn\+::\+Unicorn\+Gui\+::register\+Tool()} method. For our tools, we choose to systematically implement a {\ttfamily static} method which we name {\itshape grab()}. 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{classCRL_1_1GraphicTool_a63941f6c930c08087935ea3e276ee9a9}\label{classCRL_1_1GraphicTool_a63941f6c930c08087935ea3e276ee9a9}} 
\index{C\+R\+L\+::\+Graphic\+Tool@{C\+R\+L\+::\+Graphic\+Tool}!add\+To\+Menu@{add\+To\+Menu}}
\index{add\+To\+Menu@{add\+To\+Menu}!C\+R\+L\+::\+Graphic\+Tool@{C\+R\+L\+::\+Graphic\+Tool}}
\subsubsection{\texorpdfstring{add\+To\+Menu()}{addToMenu()}}
{\footnotesize\ttfamily void C\+R\+L\+::\+Graphic\+Tool\+::add\+To\+Menu (\begin{DoxyParamCaption}\item[{\textbf{ Cell\+Viewer} $\ast$}]{viewer }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}}

Callback function that should insert the menus related to the tool in the Cell\+Viewer hierarchy. \mbox{\Hypertarget{classCRL_1_1GraphicTool_a4420ce085389f1f9111735031467848d}\label{classCRL_1_1GraphicTool_a4420ce085389f1f9111735031467848d}} 
\index{C\+R\+L\+::\+Graphic\+Tool@{C\+R\+L\+::\+Graphic\+Tool}!get\+Name@{get\+Name}}
\index{get\+Name@{get\+Name}!C\+R\+L\+::\+Graphic\+Tool@{C\+R\+L\+::\+Graphic\+Tool}}
\subsubsection{\texorpdfstring{get\+Name()}{getName()}}
{\footnotesize\ttfamily const \textbf{ Hurricane\+::\+Name} \& C\+R\+L\+::\+Graphic\+Tool\+::get\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [pure virtual]}}

{\bfseries Returns\+:} An unique identifier for the tool. 

The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Graphic\+Tool\+Engine.\+h\item 
Graphic\+Tool.\+dox\end{DoxyCompactItemize}
