\hypertarget{classDviFilePosition}{\section{Dvi\-File\-Position Class Reference}
\label{classDviFilePosition}\index{Dvi\-File\-Position@{Dvi\-File\-Position}}
}


Represents a location within the \hyperlink{classDviFile}{Dvi\-File}.  




{\ttfamily \#include $<$Dvi\-File\-Position.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classDviFilePosition_acdc7e84c08afbc1a9b99079666609c62}{Dvi\-File\-Position} (\hyperlink{classDviFile}{Dvi\-File} $\ast$, double x, double y, \hyperlink{classDviFile_a7ff390c8c958d5280a1a96c3ad659982}{Dvi\-File\-::\-Dvi\-Units})
\begin{DoxyCompactList}\small\item\em Create a new marked position in a D\-V\-I file. \end{DoxyCompactList}\item 
\hyperlink{classDviFilePosition_a1b10b5b5999476685c015569cef70c91}{Dvi\-File\-Position} (\hyperlink{classDviFilePosition}{Dvi\-File\-Position} $\ast$, double x, double y, \hyperlink{classDviFile_a7ff390c8c958d5280a1a96c3ad659982}{Dvi\-File\-::\-Dvi\-Units})
\begin{DoxyCompactList}\small\item\em Create a new marked position in a D\-V\-I file. \end{DoxyCompactList}\item 
double \hyperlink{classDviFilePosition_aee2afae6091c0558b744846ae23861c0}{get\-X} (const \hyperlink{classDviFile_a7ff390c8c958d5280a1a96c3ad659982}{Dvi\-File\-::\-Dvi\-Units} u)
\begin{DoxyCompactList}\small\item\em Retrieve the x-\/coordinate of this position. \end{DoxyCompactList}\item 
double \hyperlink{classDviFilePosition_aa2220d231c0c13e5bbc8dc38f26ec053}{get\-Y} (const \hyperlink{classDviFile_a7ff390c8c958d5280a1a96c3ad659982}{Dvi\-File\-::\-Dvi\-Units} u)
\begin{DoxyCompactList}\small\item\em Retrieve the y-\/coordinate of this position. \end{DoxyCompactList}\item 
void \hyperlink{classDviFilePosition_ac88139ea7ce1508e6b002d629bc2506c}{shift} (double dx, double dy, \hyperlink{classDviFile_a7ff390c8c958d5280a1a96c3ad659982}{Dvi\-File\-::\-Dvi\-Units} u)
\begin{DoxyCompactList}\small\item\em Shift the mark position by the given amount. \end{DoxyCompactList}\item 
void \hyperlink{classDviFilePosition_a801ac274dcb7a1e0277e3b15f0b02ed3}{scale} (double factor)
\begin{DoxyCompactList}\small\item\em Scale the position by the given factor. \end{DoxyCompactList}\item 
\hyperlink{classDviFilePosition}{Dvi\-File\-Position} $\ast$ \hyperlink{classDviFilePosition_a3b720c2a46c375a666db355296534ad7}{copy} ()
\begin{DoxyCompactList}\small\item\em Return a copy of the object. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{verbosity_8h_a886df075e73fd6d54e018791f87fa071}{verbosities} \hyperlink{classDviFilePosition_a0245cd42de6184d6c7a86baa7536ca7f}{verbosity} (const \hyperlink{verbosity_8h_a886df075e73fd6d54e018791f87fa071}{verbosities} level)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Represents a location within the \hyperlink{classDviFile}{Dvi\-File}. 

Coordinates {\ttfamily x} and {\ttfamily y} are relative to the top-\/left corner of the `page', with the pixel in the top-\/left corner having coordinates (0,0). Note that this is different from D\-V\-I coordinates, which have their origin at a point one inch in and one inch down from the top-\/left of the `paper'. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classDviFilePosition_acdc7e84c08afbc1a9b99079666609c62}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!Dvi\-File\-Position@{Dvi\-File\-Position}}
\index{Dvi\-File\-Position@{Dvi\-File\-Position}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{Dvi\-File\-Position}]{\setlength{\rightskip}{0pt plus 5cm}Dvi\-File\-Position\-::\-Dvi\-File\-Position (
\begin{DoxyParamCaption}
\item[{{\bf Dvi\-File} $\ast$}]{f, }
\item[{double}]{x, }
\item[{double}]{y, }
\item[{{\bf Dvi\-File\-::\-Dvi\-Units}}]{u}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_acdc7e84c08afbc1a9b99079666609c62}


Create a new marked position in a D\-V\-I file. 


\begin{DoxyParams}{Parameters}
{\em f} & the D\-V\-I file of interest \\
\hline
{\em x} & the x-\/coordinate of the position \\
\hline
{\em y} & the y-\/coordinate of the position \\
\hline
{\em u} & the units of the (x,y) position \\
\hline
\end{DoxyParams}


References Dvi\-File\-::convert\-From\-Scaled\-Points(), Dvi\-File\-::convert\-To\-Scaled\-Points(), normal, and Dvi\-File\-::unit\-\_\-pixels.



Referenced by copy().

\hypertarget{classDviFilePosition_a1b10b5b5999476685c015569cef70c91}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!Dvi\-File\-Position@{Dvi\-File\-Position}}
\index{Dvi\-File\-Position@{Dvi\-File\-Position}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{Dvi\-File\-Position}]{\setlength{\rightskip}{0pt plus 5cm}Dvi\-File\-Position\-::\-Dvi\-File\-Position (
\begin{DoxyParamCaption}
\item[{{\bf Dvi\-File\-Position} $\ast$}]{dvifp, }
\item[{double}]{x, }
\item[{double}]{y, }
\item[{{\bf Dvi\-File\-::\-Dvi\-Units}}]{u}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_a1b10b5b5999476685c015569cef70c91}


Create a new marked position in a D\-V\-I file. 


\begin{DoxyParams}{Parameters}
{\em dvifp} & use the D\-V\-I file referred to by this class \\
\hline
{\em x} & the x-\/coordinate of the position \\
\hline
{\em y} & the y-\/coordinate of the position \\
\hline
{\em u} & the units of the (x,y) position \\
\hline
\end{DoxyParams}


References Dvi\-File\-::convert\-To\-Scaled\-Points().



\subsection{Member Function Documentation}
\hypertarget{classDviFilePosition_a3b720c2a46c375a666db355296534ad7}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!copy@{copy}}
\index{copy@{copy}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{copy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Dvi\-File\-Position} $\ast$ Dvi\-File\-Position\-::copy (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_a3b720c2a46c375a666db355296534ad7}


Return a copy of the object. 



References Dvi\-File\-Position(), and Dvi\-File\-::unit\-\_\-sp.



Referenced by Bitmap\-::get\-Mark().

\hypertarget{classDviFilePosition_aee2afae6091c0558b744846ae23861c0}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!get\-X@{get\-X}}
\index{get\-X@{get\-X}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{get\-X}]{\setlength{\rightskip}{0pt plus 5cm}double Dvi\-File\-Position\-::get\-X (
\begin{DoxyParamCaption}
\item[{const {\bf Dvi\-File\-::\-Dvi\-Units}}]{u}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_aee2afae6091c0558b744846ae23861c0}


Retrieve the x-\/coordinate of this position. 


\begin{DoxyParams}{Parameters}
{\em u} & express the answer in these units \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the x-\/coordinate in the required units 
\end{DoxyReturn}


References Dvi\-File\-::convert\-From\-Scaled\-Points().



Referenced by Bitmap\-::mark(), and Bitmap\-::write().

\hypertarget{classDviFilePosition_aa2220d231c0c13e5bbc8dc38f26ec053}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!get\-Y@{get\-Y}}
\index{get\-Y@{get\-Y}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{get\-Y}]{\setlength{\rightskip}{0pt plus 5cm}double Dvi\-File\-Position\-::get\-Y (
\begin{DoxyParamCaption}
\item[{const {\bf Dvi\-File\-::\-Dvi\-Units}}]{u}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_aa2220d231c0c13e5bbc8dc38f26ec053}


Retrieve the y-\/coordinate of this position. 


\begin{DoxyParams}{Parameters}
{\em u} & express the answer in these units \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
the y-\/coordinate in the required units 
\end{DoxyReturn}


References Dvi\-File\-::convert\-From\-Scaled\-Points().



Referenced by Bitmap\-::mark(), and Bitmap\-::write().

\hypertarget{classDviFilePosition_a801ac274dcb7a1e0277e3b15f0b02ed3}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!scale@{scale}}
\index{scale@{scale}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{scale}]{\setlength{\rightskip}{0pt plus 5cm}void Dvi\-File\-Position\-::scale (
\begin{DoxyParamCaption}
\item[{double}]{factor}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_a801ac274dcb7a1e0277e3b15f0b02ed3}


Scale the position by the given factor. 

The scaling is done in such a way that the coordinate {\itshape (0,0)} remains `fixed'. 
\begin{DoxyParams}{Parameters}
{\em factor} & a scaling factor, by which all distances are multiplied \\
\hline
\end{DoxyParams}


References Dvi\-File\-::convert\-From\-Scaled\-Points(), normal, and Dvi\-File\-::unit\-\_\-pixels.

\hypertarget{classDviFilePosition_ac88139ea7ce1508e6b002d629bc2506c}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!shift@{shift}}
\index{shift@{shift}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{shift}]{\setlength{\rightskip}{0pt plus 5cm}void Dvi\-File\-Position\-::shift (
\begin{DoxyParamCaption}
\item[{double}]{dx, }
\item[{double}]{dy, }
\item[{{\bf Dvi\-File\-::\-Dvi\-Units}}]{u}
\end{DoxyParamCaption}
)}}\label{classDviFilePosition_ac88139ea7ce1508e6b002d629bc2506c}


Shift the mark position by the given amount. 


\begin{DoxyParams}{Parameters}
{\em dx} & the amount to shift in the x direction \\
\hline
{\em dy} & the amount to shift in the y direction \\
\hline
{\em u} & the units in which dx and dy are expressed \\
\hline
\end{DoxyParams}


References Dvi\-File\-::convert\-From\-Scaled\-Points(), Dvi\-File\-::convert\-To\-Scaled\-Points(), normal, and Dvi\-File\-::unit\-\_\-pixels.



Referenced by Bitmap\-::get\-Mark().

\hypertarget{classDviFilePosition_a0245cd42de6184d6c7a86baa7536ca7f}{\index{Dvi\-File\-Position@{Dvi\-File\-Position}!verbosity@{verbosity}}
\index{verbosity@{verbosity}!DviFilePosition@{Dvi\-File\-Position}}
\subsubsection[{verbosity}]{\setlength{\rightskip}{0pt plus 5cm}static {\bf verbosities} Dvi\-File\-Position\-::verbosity (
\begin{DoxyParamCaption}
\item[{const {\bf verbosities}}]{level}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [static]}}}\label{classDviFilePosition_a0245cd42de6184d6c7a86baa7536ca7f}


Referenced by main().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\hyperlink{DviFilePosition_8h}{Dvi\-File\-Position.\-h}\item 
\hyperlink{DviFilePosition_8cc}{Dvi\-File\-Position.\-cc}\end{DoxyCompactItemize}
