1
<html><head><TITLE>Scaler</TITLE></head>
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class Scaler </H2><BLOCKQUOTE>
4
class for scaling coordinates
10
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.289.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>Scaler</B> (<!1><A HREF="Config.html">Config</A> *c, <!1><A HREF="Viewer.html">Viewer</A> *v, <!1><A HREF="DrawWindow.html">DrawWindow</A> *d)<br>
12
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.2"> <IMG BORDER=0 SRC=icon1.gif></A> virtual </TD><TD><B>~Scaler</B> ()<br>
14
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.3"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>MakeLarger</B> ()<br>
15
<I> Make larger. Change scale value.</I>
16
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>MakeSmaller</B> ()<br>
17
<I> Make smaller. Change scale value.</I>
18
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>ScaleFactor</B> ()<br>
19
<I> Popup scale factor dialog.</I>
20
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.6"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>NormalScale</B> ()<br>
21
<I> Return to normal scaling.</I>
22
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.7"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>WholeDrawing</B> ()<br>
23
<I> Calculate scale value such that whole document fits to one page.</I>
24
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.8"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>ScreenFit</B> ()<br>
26
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.9"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>Scale</B> (int x) const <br>
27
<I> scale coordinate x.</I>
28
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.10"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="Point.html">Point</A> </TD><TD><B>Scale</B> (const <!1><A HREF="Point.html">Point</A> *p) const <br>
30
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.11"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>ScaleCorrect</B> (int x) const <br>
31
<I> Correct X-window coordinate to the right scaled coordinate.</I>
32
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.12"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="Point.html">Point</A> </TD><TD><B>ScaleCorrect</B> (const <!1><A HREF="Point.html">Point</A> *p) const <br>
34
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.13"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetScaleValue</B> (double newValue)<br>
35
<I> Really do the scaling. Redraws the contents of the viewer.</I>
36
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.14"> <IMG BORDER=0 SRC=icon1.gif></A> double </TD><TD><B>GetScaleValue</B> () const <br>
38
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.15"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetScaleFactor</B> (double d)<br>
40
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.16"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="DrawWindow.html">DrawWindow</A>* </TD><TD><B>GetMainWindow</B> () const <br>
42
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.17"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="ScaleDialog.html">ScaleDialog</A>* </TD><TD><B>GetScaleDialog</B> () const <br>
44
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.18"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Save</B> (<!1><A HREF="OutputFile.html">OutputFile</A> *f)<br>
45
<I> Save scale value to file.</I>
46
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.19"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>Load</B> (<!1><A HREF="InputFile.html">InputFile</A> *f, double format)<br>
47
<I> Load scale value from file.</I>
48
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.289.20"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>Check</B> (<!1><A HREF="InputFile.html">InputFile</A> *f, double format)<br>
49
<I> Check (but not load) scale value from file.</I>
50
</TD></TR></TABLE></DL>
53
<h2> Documentation </h2>
55
class for scaling coordinates
62
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Scaler(<!1><A HREF="Config.html">Config</A> *c, <!1><A HREF="Viewer.html">Viewer</A> *v, <!1><A HREF="DrawWindow.html">DrawWindow</A> *d)</B></TT>
66
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual ~Scaler()</B></TT>
70
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void MakeLarger()</B></TT>
71
<DD> Make larger. Change scale value.
73
<A NAME="MakeSmaller">
75
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void MakeSmaller()</B></TT>
76
<DD> Make smaller. Change scale value.
78
<A NAME="ScaleFactor">
80
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void ScaleFactor()</B></TT>
81
<DD> Popup scale factor dialog.
83
<A NAME="NormalScale">
85
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void NormalScale()</B></TT>
86
<DD> Return to normal scaling.
88
<A NAME="WholeDrawing">
90
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void WholeDrawing()</B></TT>
91
<DD> Calculate scale value such that whole document fits to one page.
95
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void ScreenFit()</B></TT>
99
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int Scale(int x) const </B></TT>
100
<DD> scale coordinate x.
103
<A NAME ="DOC.289.10">
104
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="Point.html">Point</A> Scale(const <!1><A HREF="Point.html">Point</A> *p) const </B></TT>
106
<A NAME="ScaleCorrect">
107
<A NAME ="DOC.289.11">
108
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int ScaleCorrect(int x) const </B></TT>
109
<DD> Correct X-window coordinate to the right scaled coordinate.
111
<A NAME="ScaleCorrect">
112
<A NAME ="DOC.289.12">
113
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="Point.html">Point</A> ScaleCorrect(const <!1><A HREF="Point.html">Point</A> *p) const </B></TT>
115
<A NAME="SetScaleValue">
116
<A NAME ="DOC.289.13">
117
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetScaleValue(double newValue)</B></TT>
118
<DD> Really do the scaling. Redraws the contents of the viewer.
120
<A NAME="GetScaleValue">
121
<A NAME ="DOC.289.14">
122
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> double GetScaleValue() const </B></TT>
124
<A NAME="SetScaleFactor">
125
<A NAME ="DOC.289.15">
126
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetScaleFactor(double d)</B></TT>
128
<A NAME="GetMainWindow">
129
<A NAME ="DOC.289.16">
130
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="DrawWindow.html">DrawWindow</A>* GetMainWindow() const </B></TT>
132
<A NAME="GetScaleDialog">
133
<A NAME ="DOC.289.17">
134
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="ScaleDialog.html">ScaleDialog</A>* GetScaleDialog() const </B></TT>
137
<A NAME ="DOC.289.18">
138
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Save(<!1><A HREF="OutputFile.html">OutputFile</A> *f)</B></TT>
139
<DD> Save scale value to file.
142
<A NAME ="DOC.289.19">
143
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool Load(<!1><A HREF="InputFile.html">InputFile</A> *f, double format)</B></TT>
144
<DD> Load scale value from file.
147
<A NAME ="DOC.289.20">
148
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool Check(<!1><A HREF="InputFile.html">InputFile</A> *f, double format)</B></TT>
149
<DD> Check (but not load) scale value from file.
152
<DL><DT><B>This class has no child classes.</B></DL>
153
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
154
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
155
<P Align=Center><I>this page has been generated automatically by doc++</I>
156
<P Align=Center><I>(c)opyright by <A HREF="http://www.zib.de/zoeckler/"> Malte Zöckler</A>, <A HREF="mailto:wunderling@zib.de"> Roland Wunderling </A><br>contact: <A HREF="mailto:doc++@zib.de"> doc++@zib.de</a></I>