\hypertarget{classCRL_1_1GraphicTool}{\section{C\-R\-L\-:\-: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 \hyperlink{classCRL_1_1GraphicTool_a63941f6c930c08087935ea3e276ee9a9}{add\-To\-Menu} ({\bf Cell\-Viewer} $\ast$)=0
\item 
virtual const {\bf Name} \& \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 \hyperlink{classCRL_1_1ToolEngine}{Tool\-Engine}. It is designed to work with the {\bf Unicorn} G\-U\-I, to insert new menus and possibly define new graphical overlays (that are {\itshape not} associated to {\bf Hurricane\-::\-Basic\-Layer}).

Derived classes should provide a method that returns a new \hyperlink{classCRL_1_1GraphicTool}{Graphic\-Tool} to be passed to the {\bf 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}
\hypertarget{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}!CRL::GraphicTool@{C\-R\-L\-::\-Graphic\-Tool}}
\subsubsection[{add\-To\-Menu}]{\setlength{\rightskip}{0pt plus 5cm}void C\-R\-L\-::\-Graphic\-Tool\-::add\-To\-Menu (
\begin{DoxyParamCaption}
\item[{{\bf Cell\-Viewer} $\ast$}]{viewer}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}}\label{classCRL_1_1GraphicTool_a63941f6c930c08087935ea3e276ee9a9}
Callback function that should insert the menus related to the tool in the Cell\-Viewer hierarchy. \hypertarget{classCRL_1_1GraphicTool_a4420ce085389f1f9111735031467848d}{\index{C\-R\-L\-::\-Graphic\-Tool@{C\-R\-L\-::\-Graphic\-Tool}!get\-Name@{get\-Name}}
\index{get\-Name@{get\-Name}!CRL::GraphicTool@{C\-R\-L\-::\-Graphic\-Tool}}
\subsubsection[{get\-Name}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Hurricane\-::\-Name} \& C\-R\-L\-::\-Graphic\-Tool\-::get\-Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [pure virtual]}}}\label{classCRL_1_1GraphicTool_a4420ce085389f1f9111735031467848d}
{\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}
