\section{Stage\-Motion.c File Reference}
\label{StageMotion_8c}\index{StageMotion.c@{Stage\-Motion.c}}
{\tt \#include $<$tcl.h$>$}\par
{\tt \#include $<$tk.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}motion.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf rnd}(x)\ (short)((x) $>$ 0.0  ?  (x)+0.5 : (x)-0.5)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf Stage\-Motion\_\-Open\_\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Stage\-Motion\_\-Close\_\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Stage\-Motion\_\-Move\_\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Stage\-Motion\_\-Get\-State\_\-Cmd} (Client\-Data client\_\-data, Tcl\_\-Interp $\ast$interp, int argc, char $\ast$argv[$\,$])
\item 
int {\bf Stage\-Motion\_\-Init} (Tcl\_\-Interp $\ast$interp)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
{\bf ptraject} {\bf xy} = 0
\end{CompactItemize}


\subsection{Define Documentation}
\index{StageMotion.c@{Stage\-Motion.c}!rnd@{rnd}}
\index{rnd@{rnd}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define rnd(x)\ (short)((x) $>$ 0.0  ?  (x)+0.5 : (x)-0.5)}\label{StageMotion_8c_a0}




Definition at line 10 of file Stage\-Motion.c.

Referenced by BYTEDISK2IMG, CHAINCODE, CONTOUR, CREATETREESMOSAIC, FCONVL, FFT2D, FHT2D, FILTER, FINDBESTFOCUS, FOURIERDESC, GEOMWARP, HOUGH, IMG2ASCII, IMG2EPSF, LINK\_\-DOUBLETHRESH, LINK\_\-TREERINGS, MOSAIC\_\-BYTE\_\-INSERT, PERIODOGRAM, PLOT, PSPECT, PSPECT1D, RADIALAVG, RINGWIDTHS, RINGWIDTHS\_\-NOCHECK, Sadie\_\-Plot\_\-Plot\-Array\-Cmd, and SIZEFILTER.

\subsection{Function Documentation}
\index{StageMotion.c@{Stage\-Motion.c}!StageMotion_Close_Cmd@{StageMotion\_\-Close\_\-Cmd}}
\index{StageMotion_Close_Cmd@{StageMotion\_\-Close\_\-Cmd}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Stage\-Motion\_\-Close\_\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{StageMotion_8c_a3}




Definition at line 35 of file Stage\-Motion.c.

References closestage, disposestage, and err.

Referenced by Stage\-Motion\_\-Init.\index{StageMotion.c@{Stage\-Motion.c}!StageMotion_GetState_Cmd@{StageMotion\_\-GetState\_\-Cmd}}
\index{StageMotion_GetState_Cmd@{StageMotion\_\-GetState\_\-Cmd}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Stage\-Motion\_\-Get\-State\_\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{StageMotion_8c_a5}




Definition at line 89 of file Stage\-Motion.c.

References Traject::axis, Translation::goalpos, Traject::naxes, and Translation::pos.

Referenced by Stage\-Motion\_\-Init.\index{StageMotion.c@{Stage\-Motion.c}!StageMotion_Init@{StageMotion\_\-Init}}
\index{StageMotion_Init@{StageMotion\_\-Init}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Stage\-Motion\_\-Init (Tcl\_\-Interp $\ast$ {\em interp})}\label{StageMotion_8c_a6}




Definition at line 125 of file Stage\-Motion.c.

References Stage\-Motion\_\-Close\_\-Cmd, Stage\-Motion\_\-Get\-State\_\-Cmd, Stage\-Motion\_\-Move\_\-Cmd, and Stage\-Motion\_\-Open\_\-Cmd.

Referenced by Tcl\_\-App\-Init.\index{StageMotion.c@{Stage\-Motion.c}!StageMotion_Move_Cmd@{StageMotion\_\-Move\_\-Cmd}}
\index{StageMotion_Move_Cmd@{StageMotion\_\-Move\_\-Cmd}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Stage\-Motion\_\-Move\_\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{StageMotion_8c_a4}




Definition at line 51 of file Stage\-Motion.c.

References err, movestage, Motion::pos, Motion::relative, and Motion::vel.

Referenced by Stage\-Motion\_\-Init.\index{StageMotion.c@{Stage\-Motion.c}!StageMotion_Open_Cmd@{StageMotion\_\-Open\_\-Cmd}}
\index{StageMotion_Open_Cmd@{StageMotion\_\-Open\_\-Cmd}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int Stage\-Motion\_\-Open\_\-Cmd (Client\-Data {\em client\_\-data}, Tcl\_\-Interp $\ast$ {\em interp}, int {\em argc}, char $\ast$ {\em argv}[$\,$])}\label{StageMotion_8c_a2}




Definition at line 16 of file Stage\-Motion.c.

References err, newxystage, and openstage.

Referenced by Stage\-Motion\_\-Init.

\subsection{Variable Documentation}
\index{StageMotion.c@{Stage\-Motion.c}!xy@{xy}}
\index{xy@{xy}!StageMotion.c@{Stage\-Motion.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf ptraject} xy = 0}\label{StageMotion_8c_a1}




Definition at line 13 of file Stage\-Motion.c.