\hypertarget{a01317}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Trackball\+Node Class Reference}
\label{a01317}\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\+C\+G\+:\+:Scene\+Graph\+:\+:Trackball\+Node\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a01317}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01317_ab35938f32ecf50993bced6a07a8e86d9}{\hyperlink{a01317_ab35938f32ecf50993bced6a07a8e86d9}{Trackball\+Node} (\hyperlink{a00327}{Base\+Node} $\ast$\+\_\+parent=0, const std\+::string \&\+\_\+name=\char`\"{}$<$Trackball\+Node$>$\char`\"{})}\label{a01317_ab35938f32ecf50993bced6a07a8e86d9}

\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hypertarget{a01317_a90e446d81b440c0423d4f868d7e0c9d4}{\hyperlink{a01317_a90e446d81b440c0423d4f868d7e0c9d4}{$\sim$\+Trackball\+Node} ()}\label{a01317_a90e446d81b440c0423d4f868d7e0c9d4}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a01317_a4561335a152647a3b38d06326fec8ffc}{\hyperlink{a01317_a4561335a152647a3b38d06326fec8ffc}{A\+C\+G\+\_\+\+C\+L\+A\+S\+S\+N\+A\+M\+E} (\hyperlink{a01317}{Trackball\+Node})}\label{a01317_a4561335a152647a3b38d06326fec8ffc}

\begin{DoxyCompactList}\small\item\em Class name macro. \end{DoxyCompactList}\item 
\hypertarget{a01317_acd4b65619be8f768f7b2fc03c28c0cd6}{void \hyperlink{a01317_acd4b65619be8f768f7b2fc03c28c0cd6}{set\+\_\+radius} (double \+\_\+r)}\label{a01317_acd4b65619be8f768f7b2fc03c28c0cd6}

\begin{DoxyCompactList}\small\item\em Set trackball radius. \end{DoxyCompactList}\item 
\hypertarget{a01317_a78b4570312e641cd4b8c86f7a7d25ef4}{double \hyperlink{a01317_a78b4570312e641cd4b8c86f7a7d25ef4}{radius} () const }\label{a01317_a78b4570312e641cd4b8c86f7a7d25ef4}

\begin{DoxyCompactList}\small\item\em Get trackball radius. \end{DoxyCompactList}\item 
\hypertarget{a01317_a21b905f368464c909f72d47ce75fab16}{virtual void \hyperlink{a01317_a21b905f368464c909f72d47ce75fab16}{set\+Identity} ()}\label{a01317_a21b905f368464c909f72d47ce75fab16}

\begin{DoxyCompactList}\small\item\em override \hyperlink{a01320_a03c77db3e04b239e622a4bc8dfb19c5e}{Transform\+Node\+::set\+Identity()} (update radius\+\_\+) \end{DoxyCompactList}\item 
\hypertarget{a01317_a66e7046af285c85e14e7ca9c2f10c758}{void \hyperlink{a01317_a66e7046af285c85e14e7ca9c2f10c758}{set\+\_\+draw\+\_\+trackball} (bool \+\_\+b)}\label{a01317_a66e7046af285c85e14e7ca9c2f10c758}

\begin{DoxyCompactList}\small\item\em Turn on/off drawing of the trackball. \end{DoxyCompactList}\item 
\hypertarget{a01317_a0dd929b7ee0ef3b2b76e6af8d1dc30fc}{bool \hyperlink{a01317_a0dd929b7ee0ef3b2b76e6af8d1dc30fc}{draw\+\_\+trackball} () const }\label{a01317_a0dd929b7ee0ef3b2b76e6af8d1dc30fc}

\begin{DoxyCompactList}\small\item\em Is trackball-\/drawing on? \end{DoxyCompactList}\item 
\hypertarget{a01317_ae82240c9d05035f5f273a20adb2911a3}{void \hyperlink{a01317_ae82240c9d05035f5f273a20adb2911a3}{set\+\_\+draw\+\_\+axes} (bool \+\_\+b)}\label{a01317_ae82240c9d05035f5f273a20adb2911a3}

\begin{DoxyCompactList}\small\item\em Turn drawing the axes on/off. \end{DoxyCompactList}\item 
\hypertarget{a01317_af04c5674ca5804dcd269053d980dc65e}{bool \hyperlink{a01317_af04c5674ca5804dcd269053d980dc65e}{draw\+\_\+axes} () const }\label{a01317_af04c5674ca5804dcd269053d980dc65e}

\begin{DoxyCompactList}\small\item\em Is axes-\/drawing on? \end{DoxyCompactList}\item 
\hypertarget{a01317_af5e5fbc40b2eb99cb2c132063e24bb22}{void \hyperlink{a01317_af5e5fbc40b2eb99cb2c132063e24bb22}{draw} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, const \hyperlink{a00509}{Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+draw\+Mode)}\label{a01317_af5e5fbc40b2eb99cb2c132063e24bb22}

\begin{DoxyCompactList}\small\item\em Draw the trackball + axes (if enabled) \end{DoxyCompactList}\item 
\hypertarget{a01317_aeb110fb5c374bf56648ca7a9677c5244}{virtual void \hyperlink{a01317_aeb110fb5c374bf56648ca7a9677c5244}{mouse\+Event} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, Q\+Mouse\+Event $\ast$\+\_\+event)}\label{a01317_aeb110fb5c374bf56648ca7a9677c5244}

\begin{DoxyCompactList}\small\item\em get mouse events \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01317_a93a8eedee7f92d1c6d2f9c8198c00369}{bool \hyperlink{a01317_a93a8eedee7f92d1c6d2f9c8198c00369}{map\+To\+Sphere} (\hyperlink{a00643}{G\+L\+State} \&\+\_\+state, const \hyperlink{a03336_a72710dc6f55cd56f968f22bca0178e8c}{Vec2i} \&\+\_\+v2, \hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} \&\+\_\+v3)}\label{a01317_a93a8eedee7f92d1c6d2f9c8198c00369}

\begin{DoxyCompactList}\small\item\em Map 2\+D-\/screen-\/coords to trackball. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01317_a4ceaf303ddfd5647d9d178e197937ab4}{bool {\bfseries draw\+Trackball\+\_\+}}\label{a01317_a4ceaf303ddfd5647d9d178e197937ab4}

\item 
\hypertarget{a01317_a0024c6deeab0858aaea8fbf6626b5e6f}{bool {\bfseries draw\+Axes\+\_\+}}\label{a01317_a0024c6deeab0858aaea8fbf6626b5e6f}

\item 
\hypertarget{a01317_a3464f75f0631d54401194a39d8457ca1}{double {\bfseries radius\+\_\+}}\label{a01317_a3464f75f0631d54401194a39d8457ca1}

\item 
\hypertarget{a01317_a5c5087057dde82d4243edb085d406e8f}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries x\+Axis\+\_\+}}\label{a01317_a5c5087057dde82d4243edb085d406e8f}

\item 
\hypertarget{a01317_a6de9a68562323cfa0316a46c2e59ee0f}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries y\+Axis\+\_\+}}\label{a01317_a6de9a68562323cfa0316a46c2e59ee0f}

\item 
\hypertarget{a01317_a7d53b704374f95d978aa1a343754996c}{\hyperlink{a03336_ae4a56bb6b65d7f966934982a1e370213}{Vec3d} {\bfseries z\+Axis\+\_\+}}\label{a01317_a7d53b704374f95d978aa1a343754996c}

\item 
\hypertarget{a01317_a70956639a4e1c8f98569c8fb6c910273}{\hyperlink{a03336_a72710dc6f55cd56f968f22bca0178e8c}{Vec2i} {\bfseries old\+Point2\+D\+\_\+}}\label{a01317_a70956639a4e1c8f98569c8fb6c910273}

\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{a00788}{Manipulator\+Node}.

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


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



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