1
<html><head><TITLE>Grid</TITLE></head>
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class Grid </H2><BLOCKQUOTE>
4
class for showing the grid and snapping points to discrete point positions.
10
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.195.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>Grid</B> (<!1><A HREF="Config.html">Config</A> *c, <!1><A HREF="DrawWindow.html">DrawWindow</A> *d, <!1><A HREF="Viewer.html">Viewer</A> *v)<br>
12
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.2"> <IMG BORDER=0 SRC=icon1.gif></A> virtual </TD><TD><B>~Grid</B> ()<br>
14
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.3"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetSnap</B> (bool set)<br>
15
<I> set snapping to continuous or discrete.</I>
16
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>PointDistance</B> ()<br>
17
<I> make popup for asking the point distance.</I>
18
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>GridSize</B> ()<br>
19
<I> make popup for asking the grid size.</I>
20
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.6"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetShowGrid</B> (bool set)<br>
21
<I> set showing of grid.</I>
22
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.7"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsShowGrid</B> () const <br>
24
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.8"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Snap</B> (<!1><A HREF="Point.html">Point</A> *)<br>
25
<I> Snap point to point-position.</I>
26
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.9"> <IMG BORDER=0 SRC=icon1.gif></A> int </TD><TD><B>Snap</B> (int)<br>
27
<I> Snap int to point-position.</I>
28
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.10"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>DrawGrid</B> ()<br>
30
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.11"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetPointDistance</B> (int i)<br>
31
<I> set point distance to i.</I>
32
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.12"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetGridSize</B> (int i)<br>
33
<I> set grid size to i.</I>
34
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.13"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="DrawWindow.html">DrawWindow</A>* </TD><TD><B>GetMainWindow</B> () const <br>
36
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.14"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="Config.html">Config</A>* </TD><TD><B>GetConfig</B> () const <br>
38
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.195.15"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="ScaleDialog.html">ScaleDialog</A>* </TD><TD><B>GetScaleDialog</B> () const <br>
40
</TD></TR></TABLE></DL>
43
<h2> Documentation </h2>
45
class for showing the grid and snapping points to discrete point positions.
52
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> Grid(<!1><A HREF="Config.html">Config</A> *c, <!1><A HREF="DrawWindow.html">DrawWindow</A> *d, <!1><A HREF="Viewer.html">Viewer</A> *v)</B></TT>
56
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual ~Grid()</B></TT>
60
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetSnap(bool set)</B></TT>
61
<DD> set snapping to continuous or discrete.
63
<A NAME="PointDistance">
65
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void PointDistance()</B></TT>
66
<DD> make popup for asking the point distance.
70
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void GridSize()</B></TT>
71
<DD> make popup for asking the grid size.
73
<A NAME="SetShowGrid">
75
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetShowGrid(bool set)</B></TT>
76
<DD> set showing of grid.
80
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsShowGrid() const </B></TT>
84
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Snap(<!1><A HREF="Point.html">Point</A> *)</B></TT>
85
<DD> Snap point to point-position.
89
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> int Snap(int)</B></TT>
90
<DD> Snap int to point-position.
93
<A NAME ="DOC.195.10">
94
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void DrawGrid()</B></TT>
97
<A NAME="SetPointDistance">
98
<A NAME ="DOC.195.11">
99
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetPointDistance(int i)</B></TT>
100
<DD> set point distance to i.
102
<A NAME="SetGridSize">
103
<A NAME ="DOC.195.12">
104
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetGridSize(int i)</B></TT>
105
<DD> set grid size to i.
107
<A NAME="GetMainWindow">
108
<A NAME ="DOC.195.13">
109
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="DrawWindow.html">DrawWindow</A>* GetMainWindow() const </B></TT>
112
<A NAME ="DOC.195.14">
113
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="Config.html">Config</A>* GetConfig() const </B></TT>
115
<A NAME="GetScaleDialog">
116
<A NAME ="DOC.195.15">
117
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="ScaleDialog.html">ScaleDialog</A>* GetScaleDialog() const </B></TT>
120
<DL><DT><B>This class has no child classes.</B></DL>
121
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
122
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
123
<P Align=Center><I>this page has been generated automatically by doc++</I>
124
<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>