\hypertarget{a08084}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:Trackball\+Node Class Reference}
\label{a08084}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Trackball\+Node@{A\+C\+G\+::\+Scene\+Graph\+::\+Trackball\+Node}}


{\ttfamily \#include $<$A\+C\+G/\+Scenegraph/\+Trackball\+Node.\+hh$>$}

Inheritance diagram for A\+CG\+:\+:Scene\+Graph\+:\+:Trackball\+Node\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a08084}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08084_ab35938f32ecf50993bced6a07a8e86d9}\label{a08084_ab35938f32ecf50993bced6a07a8e86d9}} 
\hyperlink{a08084_ab35938f32ecf50993bced6a07a8e86d9}{Trackball\+Node} (\hyperlink{a07748}{Base\+Node} $\ast$\+\_\+parent=0, const std\+::string \&\+\_\+name=\char`\"{}$<$Trackball\+Node$>$\char`\"{})
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_a90e446d81b440c0423d4f868d7e0c9d4}\label{a08084_a90e446d81b440c0423d4f868d7e0c9d4}} 
\hyperlink{a08084_a90e446d81b440c0423d4f868d7e0c9d4}{$\sim$\+Trackball\+Node} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_a4561335a152647a3b38d06326fec8ffc}\label{a08084_a4561335a152647a3b38d06326fec8ffc}} 
\hyperlink{a08084_a4561335a152647a3b38d06326fec8ffc}{A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+ME} (\hyperlink{a08084}{Trackball\+Node})
\begin{DoxyCompactList}\small\item\em Class name macro. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_acd4b65619be8f768f7b2fc03c28c0cd6}\label{a08084_acd4b65619be8f768f7b2fc03c28c0cd6}} 
void \hyperlink{a08084_acd4b65619be8f768f7b2fc03c28c0cd6}{set\+\_\+radius} (double \+\_\+r)
\begin{DoxyCompactList}\small\item\em Set trackball radius. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_aa68541fee879f6b38e3d1ac0f453557d}\label{a08084_aa68541fee879f6b38e3d1ac0f453557d}} 
double \hyperlink{a08084_aa68541fee879f6b38e3d1ac0f453557d}{radius} () const
\begin{DoxyCompactList}\small\item\em Get trackball radius. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_a21b905f368464c909f72d47ce75fab16}\label{a08084_a21b905f368464c909f72d47ce75fab16}} 
virtual void \hyperlink{a08084_a21b905f368464c909f72d47ce75fab16}{set\+Identity} ()
\begin{DoxyCompactList}\small\item\em override \hyperlink{a08088_a03c77db3e04b239e622a4bc8dfb19c5e}{Transform\+Node\+::set\+Identity()} (update radius\+\_\+) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_a66e7046af285c85e14e7ca9c2f10c758}\label{a08084_a66e7046af285c85e14e7ca9c2f10c758}} 
void \hyperlink{a08084_a66e7046af285c85e14e7ca9c2f10c758}{set\+\_\+draw\+\_\+trackball} (bool \+\_\+b)
\begin{DoxyCompactList}\small\item\em Turn on/off drawing of the trackball. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_adc4fc75e7cadbfc2b19aa6e2d073bff8}\label{a08084_adc4fc75e7cadbfc2b19aa6e2d073bff8}} 
bool \hyperlink{a08084_adc4fc75e7cadbfc2b19aa6e2d073bff8}{draw\+\_\+trackball} () const
\begin{DoxyCompactList}\small\item\em Is trackball-\/drawing on? \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_ae82240c9d05035f5f273a20adb2911a3}\label{a08084_ae82240c9d05035f5f273a20adb2911a3}} 
void \hyperlink{a08084_ae82240c9d05035f5f273a20adb2911a3}{set\+\_\+draw\+\_\+axes} (bool \+\_\+b)
\begin{DoxyCompactList}\small\item\em Turn drawing the axes on/off. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_a64dbe1b606a2ae37bb922aa219f36eab}\label{a08084_a64dbe1b606a2ae37bb922aa219f36eab}} 
bool \hyperlink{a08084_a64dbe1b606a2ae37bb922aa219f36eab}{draw\+\_\+axes} () const
\begin{DoxyCompactList}\small\item\em Is axes-\/drawing on? \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_af5e5fbc40b2eb99cb2c132063e24bb22}\label{a08084_af5e5fbc40b2eb99cb2c132063e24bb22}} 
void \hyperlink{a08084_af5e5fbc40b2eb99cb2c132063e24bb22}{draw} (\hyperlink{a07452}{G\+L\+State} \&\+\_\+state, const \hyperlink{a07792}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode)
\begin{DoxyCompactList}\small\item\em Draw the trackball + axes (if enabled) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08084_aeb110fb5c374bf56648ca7a9677c5244}\label{a08084_aeb110fb5c374bf56648ca7a9677c5244}} 
virtual void \hyperlink{a08084_aeb110fb5c374bf56648ca7a9677c5244}{mouse\+Event} (\hyperlink{a07452}{G\+L\+State} \&\+\_\+state, Q\+Mouse\+Event $\ast$\+\_\+event)
\begin{DoxyCompactList}\small\item\em get mouse events \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08084_a93a8eedee7f92d1c6d2f9c8198c00369}\label{a08084_a93a8eedee7f92d1c6d2f9c8198c00369}} 
bool \hyperlink{a08084_a93a8eedee7f92d1c6d2f9c8198c00369}{map\+To\+Sphere} (\hyperlink{a07452}{G\+L\+State} \&\+\_\+state, const \hyperlink{a06176_a72710dc6f55cd56f968f22bca0178e8c}{Vec2i} \&\+\_\+v2, \hyperlink{a06176_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \&\+\_\+v3)
\begin{DoxyCompactList}\small\item\em Map 2\+D-\/screen-\/coords to trackball. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08084_a4ceaf303ddfd5647d9d178e197937ab4}\label{a08084_a4ceaf303ddfd5647d9d178e197937ab4}} 
bool {\bfseries draw\+Trackball\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a0024c6deeab0858aaea8fbf6626b5e6f}\label{a08084_a0024c6deeab0858aaea8fbf6626b5e6f}} 
bool {\bfseries draw\+Axes\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a3464f75f0631d54401194a39d8457ca1}\label{a08084_a3464f75f0631d54401194a39d8457ca1}} 
double {\bfseries radius\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a5c5087057dde82d4243edb085d406e8f}\label{a08084_a5c5087057dde82d4243edb085d406e8f}} 
\hyperlink{a06176_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries x\+Axis\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a6de9a68562323cfa0316a46c2e59ee0f}\label{a08084_a6de9a68562323cfa0316a46c2e59ee0f}} 
\hyperlink{a06176_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries y\+Axis\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a7d53b704374f95d978aa1a343754996c}\label{a08084_a7d53b704374f95d978aa1a343754996c}} 
\hyperlink{a06176_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries z\+Axis\+\_\+}
\item 
\mbox{\Hypertarget{a08084_a70956639a4e1c8f98569c8fb6c910273}\label{a08084_a70956639a4e1c8f98569c8fb6c910273}} 
\hyperlink{a06176_a72710dc6f55cd56f968f22bca0178e8c}{Vec2i} {\bfseries old\+Point2\+D\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Use a virtual trackball to rotate, translate and scale the children of this node. If you want to do translations use the \hyperlink{a07824}{Manipulator\+Node}.

\begin{DoxySeeAlso}{See also}
\hyperlink{a07824}{A\+C\+G\+::\+Scene\+Graph\+::\+Manipulator\+Node} 
\end{DoxySeeAlso}


Definition at line 96 of file Trackball\+Node.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Trackball\+Node.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Trackball\+Node.\+cc\end{DoxyCompactItemize}
