1
<html><head><TITLE>GShape</TITLE></head>
3
<H2><A HREF ="#DOC.DOCU" > <IMG BORDER=0 SRC=down.gif></A> class GShape : public <!2><A HREF="Shape.html#DOC.296.1">Shape</A> </H2><BLOCKQUOTE>
4
(abstract) graphical shape class, superclass of box, ellipse, line etc.
8
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=155>
9
<param name=classes value="CThing,MThing.html,CShape,MShape.html,CGShape,MGShape.html,CNodeShape,MNodeShape.html,CLine,MLine.html">
10
<param name=before value="M,M,M,M|_,Mr_">
11
<param name=after value="Md_SP,Md_,M,M,M">
12
<param name=indent value="0,1,2,2,2">
13
<param name=arrowdir value="down">
19
<DT><h3>Public Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.196.1"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>GShape</B> (<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, int x, int y)<br>
20
<I> constructor, creates shape at position (x,y).</I>
21
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.2"> <IMG BORDER=0 SRC=icon1.gif></A> </TD><TD><B>GShape</B> (const <!2><A HREF="GShape.html#DOC.196.1">GShape</A> &)<br>
23
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.3"> <IMG BORDER=0 SRC=icon1.gif></A> virtual </TD><TD><B>~GShape</B> ()<br>
25
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.4"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Draw</B> ()<br>
27
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.5"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>Undraw</B> ()<br>
29
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.6"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>DrawShape</B> ()<br>
30
<I> draw the shape.</I>
31
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.7"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>UndrawShape</B> ()<br>
33
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.8"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>DrawTextShapes</B> ()<br>
35
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.9"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>UndrawTextShapes</B> ()<br>
37
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.10"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>UpdateNameString</B> (const <!1><A HREF="string.html">string</A> *s)<br>
38
<I> update string of name text shape and redraw.</I>
39
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.11"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetNameString</B> (const <!1><A HREF="string.html">string</A> *s)<br>
41
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.12"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetNameString</B> ()<br>
43
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.13"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="TextShape.html">TextShape</A>* </TD><TD><B>GetName</B> () const <br>
45
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.14"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetTextShape</B> ()<br>
47
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.15"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>SetSelect</B> (bool s)<br>
48
<I> select this shape and its text shapes are selected.</I>
49
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.16"> <IMG BORDER=0 SRC=icon1.gif></A> unsigned </TD><TD><B>GetLineWidth</B> () const <br>
51
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.17"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetLineWidth</B> (unsigned n)<br>
53
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.18"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateLineWidth</B> (unsigned n)<br>
55
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.19"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> </TD><TD><B>GetLineStyle</B> () const <br>
57
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.20"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetLineStyle</B> (<!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> x)<br>
59
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.21"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateLineStyle</B> (<!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> x)<br>
61
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.22"> <IMG BORDER=0 SRC=icon1.gif></A> const <!1><A HREF="string.html">string</A>* </TD><TD><B>GetTextColor</B> () const <br>
63
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.23"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>UpdateTextColor</B> (const <!1><A HREF="string.html">string</A> *c)<br>
65
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.24"> <IMG BORDER=0 SRC=icon1.gif></A> virtual <!1><A HREF="TextShape.html">TextShape</A>* </TD><TD><B>HitTextShape</B> (int x, int y)<br>
66
<I> Returns if (x,y) is in name, and if so returns name.</I>
67
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.25"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasTextShape</B> (<!1><A HREF="TextShape.html">TextShape</A> *t) const <br>
68
<I> return if it has t as one of the text shapes.</I>
69
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.26"> <IMG BORDER=0 SRC=icon1.gif></A> virtual int </TD><TD><B>GetLeftMost</B> () const <br>
70
<I> refinements of those shape members.</I>
71
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.27"> <IMG BORDER=0 SRC=icon1.gif></A> virtual int </TD><TD><B>GetTopMost</B> () const <br>
73
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.28"> <IMG BORDER=0 SRC=icon1.gif></A> virtual int </TD><TD><B>GetRightMost</B> () const <br>
75
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.29"> <IMG BORDER=0 SRC=icon1.gif></A> virtual int </TD><TD><B>GetBottomMost</B> () const <br>
77
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.30"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>IsFixedName</B> ()<br>
79
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.31"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetFixedName</B> (bool b)<br>
81
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.32"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetGrafport</B> (<!1><A HREF="Grafport.html">Grafport</A> *g)<br>
82
<I> set grafport of itself and its text shapes.</I>
83
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.33"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetView</B> (<!1><A HREF="ShapeView.html">ShapeView</A> *v)<br>
84
<I> set view of itself and its text shapes.</I>
85
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.34"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>UpdateFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
86
<I> update font and redraw.</I>
87
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.35"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>UpdateAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> alignment)<br>
88
<I> update text alignments and redraw.</I>
89
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.36"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="TextShape.html">TextShape</A>* </TD><TD><B>ChooseTextShape</B> (int, int)<br>
90
<I> return a text shape near (x,y).</I>
91
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.37"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>NotifyTextMove</B> (<!1><A HREF="TextShape.html">TextShape</A> *)<br>
92
<I> react on movement of some text shape.</I>
93
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.38"> <IMG BORDER=0 SRC=icon1.gif></A> <!1><A HREF="XFont.html">XFont</A>* </TD><TD><B>GetFont</B> () const <br>
94
<I> return font of the textshapes (all textshapes have same font).</I>
95
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.39"> <IMG BORDER=0 SRC=icon1.gif></A> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> </TD><TD><B>GetAlignment</B> () const <br>
97
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.40"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasNameString</B> (const <!1><A HREF="string.html">string</A> *s, bool c1, bool c2) const <br>
98
<I> return if name text shape contains 's'.</I>
99
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.41"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool c1, bool c2) const <br>
100
<I> return if some text shape contains 's'.</I>
101
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.42"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>HasString</B> (const <!1><A HREF="string.html">string</A> *s, bool cI, bool aS, <!1><A HREF="List.html">List</A><<!1><A HREF="TextShape.html">TextShape</A> *> *l)<br>
102
<I> put all textshapes containing 's' in the list l.</I>
103
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.43"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>CheckReferences</B> ()<br>
104
<I> Check also that name reference is ok.</I>
105
</TD></TR></TABLE><TABLE>
106
<DT><h3>Protected Methods</h3><DD><TR><TD VALIGN=top><A HREF="#DOC.196.44"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>SetFont</B> (<!1><A HREF="XFont.html">XFont</A> *ft)<br>
107
<I> set fonts of text shapes.</I>
108
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.45"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>SetTextColor</B> (const <!1><A HREF="string.html">string</A> *c)<br>
109
<I> set color of text shapes.</I>
110
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.46"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>WriteGraphicsPart</B> (<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)<br>
111
<I> write line width and style to file.</I>
112
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.47"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>ReadGraphicsPart</B> (<!1><A HREF="InputFile.html">InputFile</A> *ifile, double format)<br>
113
<I> read line width and style from file.</I>
114
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.48"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>WriteTextPart</B> (<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)<br>
115
<I> write font and alignment to file.</I>
116
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.49"> <IMG BORDER=0 SRC=icon1.gif></A> bool </TD><TD><B>ReadTextPart</B> (<!1><A HREF="InputFile.html">InputFile</A> *ifile, double format)<br>
117
<I> read and parse font and alignment from file.</I>
118
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.50"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SetDrawAttributes</B> ()<br>
120
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.51"> <IMG BORDER=0 SRC=icon1.gif></A> virtual void </TD><TD><B>SetAlignment</B> (<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> a)<br>
121
<I> set alignments of text shapes.</I>
122
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.52"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SnapPosition</B> ()<br>
123
<I> snap at position and text shapes are moved with.</I>
124
</TD></TR><TR><TD VALIGN=top><A HREF="#DOC.196.53"> <IMG BORDER=0 SRC=icon1.gif></A> void </TD><TD><B>SnapTopleft</B> ()<br>
125
<I> snap at topleft and text shapes are moved with.</I>
126
</TD></TR></TABLE></DL>
127
<hr><H3>Inherited from <A HREF="Shape.html">Shape:</A></h3>
131
<DT><h3>Public Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HEIGHT</B>
132
<DT><IMG SRC=icon2.gif> static const int <B>MIN_WIDTH</B>
133
<DT><IMG SRC=icon2.gif> static const int <B>HANDLE_WIDTH</B>
135
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> bool <B>IsShape</B>() const
136
<DT><IMG SRC=icon2.gif> virtual bool <B>IsTextShape</B>() const
137
<DT><IMG SRC=icon2.gif> virtual <!2><A HREF="Shape.html#DOC.296.1">Shape</A>* <B>Clone</B>()
138
<DT><IMG SRC=icon2.gif> virtual void <B>UpdatePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>, bool snap=True)
139
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSize</B>(int w, int h)
140
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateMove</B>(const <!1><A HREF="Point.html">Point</A> *delta)
141
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateSelect</B>(bool s)
142
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateFirstSelect</B>(bool s)
143
<DT><IMG SRC=icon2.gif> virtual void <B>UpdateColor</B>(<!1><A HREF="string.html">string</A> *<!2><A HREF="Shape.html#DOC.296.97">color</A>)
144
<DT><IMG SRC=icon2.gif> virtual void <B>SetFirstSelect</B>(bool s)
145
<DT><IMG SRC=icon2.gif> bool <B>IsFirstSelected</B>() const
146
<DT><IMG SRC=icon2.gif> void <B>SetVisible</B>(bool s)
147
<DT><IMG SRC=icon2.gif> void <B>SetSubject</B>(<!1><A HREF="Subject.html">Subject</A> *s)
148
<DT><IMG SRC=icon2.gif> <!1><A HREF="Subject.html">Subject</A>* <B>GetSubject</B>() const
149
<DT><IMG SRC=icon2.gif> <!1><A HREF="ShapeView.html">ShapeView</A>* <B>GetView</B>() const
150
<DT><IMG SRC=icon2.gif> void <B>SetColor</B>(const <!1><A HREF="string.html">string</A> *c)
151
<DT><IMG SRC=icon2.gif> const <!1><A HREF="string.html">string</A>* <B>GetColor</B>() const
152
<DT><IMG SRC=icon2.gif> virtual void <B>Move</B>(const <!1><A HREF="Point.html">Point</A> *delta)
153
<DT><IMG SRC=icon2.gif> virtual void <B>AdjustSize</B>()
154
<DT><IMG SRC=icon2.gif> virtual void <B>DrawOutLine</B>(const <!1><A HREF="Point.html">Point</A> *center)
155
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>) const
156
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveSnp</B>(<!1><A HREF="Point.html">Point</A>, int, int, int &)
157
<DT><IMG SRC=icon2.gif> virtual <!1><A HREF="Point.html">Point</A> <B>GiveOrthoSnp</B>(<!1><A HREF="Point.html">Point</A> to) const
158
<DT><IMG SRC=icon2.gif> void <B>SetHandles</B>(int n)
159
<DT><IMG SRC=icon2.gif> virtual int <B>HitHandles</B>(int x, int y)
160
<DT><IMG SRC=icon2.gif> virtual bool <B>ContainsPt</B>(int x, int y)
161
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetPosition</B>() const
162
<DT><IMG SRC=icon2.gif> const <!1><A HREF="Point.html">Point</A>* <B>GetTopLeft</B>() const
163
<DT><IMG SRC=icon2.gif> bool <B>IsSelected</B>() const
164
<DT><IMG SRC=icon2.gif> bool <B>IsVisible</B>() const
165
<DT><IMG SRC=icon2.gif> bool <B>IsDuplicate</B>() const
166
<DT><IMG SRC=icon2.gif> int <B>GetWidth</B>() const
167
<DT><IMG SRC=icon2.gif> int <B>GetHeight</B>() const
168
<DT><IMG SRC=icon2.gif> virtual void <B>DrawDuplicate</B>()
169
<DT><IMG SRC=icon2.gif> void <B>UndrawDuplicate</B>()
170
<DT><IMG SRC=icon2.gif> void <B>SetDuplicate</B>(bool b)
171
<DT><IMG SRC=icon2.gif> void <B>UpdateDuplicate</B>(bool b)
172
<DT><IMG SRC=icon2.gif> virtual bool <B>IsLine</B>() const
173
<DT><IMG SRC=icon2.gif> void <B>WriteMembers</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
174
<DT><IMG SRC=icon2.gif> bool <B>ReadMembers</B>(<!1><A HREF="InputFile.html">InputFile</A> *f, double format)
175
<DT><IMG SRC=icon2.gif> virtual bool <B>SetAssocSubject</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
176
<DT><IMG SRC=icon2.gif> bool <B>SetAssocView</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
177
<DT><IMG SRC=icon2.gif> virtual bool <B>InTextArea</B>(int x, int y)
178
<DT><IMG SRC=icon2.gif> virtual void <B>MoveRaw</B>(const <!1><A HREF="Point.html">Point</A> *delta)
180
<DT><h3>Protected Fields</h3><DD><DT><IMG SRC=icon2.gif> static const int <B>MIN_HANDLES</B>
182
<DT><h3>Protected Methods</h3><DD><DT><IMG SRC=icon2.gif> <!1><A HREF="Grafport.html">Grafport</A>* <B>GetGrafport</B>() const
183
<DT><IMG SRC=icon2.gif> void <B>SetOutlineAttributes</B>()
184
<DT><IMG SRC=icon2.gif> virtual void <B>SetSize</B>(int w, int h)
185
<DT><IMG SRC=icon2.gif> virtual void <B>SetPosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>, bool snap=True)
186
<DT><IMG SRC=icon2.gif> void <B>SetWidth</B>(int w)
187
<DT><IMG SRC=icon2.gif> void <B>SetHeight</B>(int h)
188
<DT><IMG SRC=icon2.gif> void <B>SetNrHandles</B>(int n)
189
<DT><IMG SRC=icon2.gif> <!1><A HREF="DiagramViewer.html">DiagramViewer</A>* <B>GetViewer</B>() const
190
<DT><IMG SRC=icon2.gif> void <B>PositiveCoord</B>(const <!1><A HREF="Point.html">Point</A>*)
191
<DT><IMG SRC=icon2.gif> virtual void <B>DrawSelect</B>()
192
<DT><IMG SRC=icon2.gif> virtual void <B>DrawGraySelect</B>()
193
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawSelect</B>()
194
<DT><IMG SRC=icon2.gif> virtual void <B>UndrawGraySelect</B>()
195
<DT><IMG SRC=icon2.gif> void <B>SetTopLeft</B>(const <!1><A HREF="Point.html">Point</A> *topLeft)
196
<DT><IMG SRC=icon2.gif> virtual void <B>SetPositionHandles</B>()
197
<DT><IMG SRC=icon2.gif> void <B>ForcePosition</B>(const <!1><A HREF="Point.html">Point</A> *<!2><A HREF="Shape.html#DOC.296.90">position</A>)
199
<hr><H3>Inherited from <A HREF = "Thing.html"> Thing:</A></h3>
203
<DT><h3>Public Classes</h3><DD><DT><IMG SRC=icon2.gif> enum <B>AssocType</B>
205
<DT><h3>Public Methods</h3><DD><DT><IMG SRC=icon2.gif> unsigned long <B>GetId</B>()
206
<DT><IMG SRC=icon2.gif> void <B>SetId</B>(unsigned long val)
207
<DT><IMG SRC=icon2.gif> virtual bool <B>IsSubject</B>() const
208
<DT><IMG SRC=icon2.gif> virtual bool <B>IsView</B>() const
209
<DT><IMG SRC=icon2.gif> virtual int <B>GetClassType</B>() const
210
<DT><IMG SRC=icon2.gif> void <B>Write</B>(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)
211
<DT><IMG SRC=icon2.gif> virtual bool <B>SetReferences</B>(<!1><A HREF="AssocList.html">AssocList</A> *)
215
<h2> Documentation </h2>
217
(abstract) graphical shape class, superclass of box, ellipse, line etc.
223
<A NAME ="DOC.196.1">
224
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> GShape(<!1><A HREF="ShapeView.html">ShapeView</A> *v, <!1><A HREF="Grafport.html">Grafport</A> *g, int x, int y)</B></TT>
225
<DD> constructor, creates shape at position (x,y).
228
<A NAME ="DOC.196.2">
229
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> GShape(const <!2><A HREF="GShape.html#DOC.196.1">GShape</A> &)</B></TT>
233
<A NAME ="DOC.196.3">
234
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual ~GShape()</B></TT>
237
<A NAME ="DOC.196.4">
238
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Draw()</B></TT>
241
<A NAME ="DOC.196.5">
242
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void Undraw()</B></TT>
245
<A NAME ="DOC.196.6">
246
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void DrawShape()</B></TT>
249
<A NAME="UndrawShape">
250
<A NAME ="DOC.196.7">
251
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void UndrawShape()</B></TT>
253
<A NAME="DrawTextShapes">
254
<A NAME ="DOC.196.8">
255
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void DrawTextShapes()</B></TT>
258
<A NAME="UndrawTextShapes">
259
<A NAME ="DOC.196.9">
260
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void UndrawTextShapes()</B></TT>
262
<A NAME="UpdateNameString">
263
<A NAME ="DOC.196.10">
264
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void UpdateNameString(const <!1><A HREF="string.html">string</A> *s)</B></TT>
265
<DD> update string of name text shape and redraw.
267
<A NAME="SetNameString">
268
<A NAME ="DOC.196.11">
269
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetNameString(const <!1><A HREF="string.html">string</A> *s)</B></TT>
272
<A NAME="GetNameString">
273
<A NAME ="DOC.196.12">
274
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetNameString()</B></TT>
278
<A NAME ="DOC.196.13">
279
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="TextShape.html">TextShape</A>* GetName() const </B></TT>
281
<A NAME="SetTextShape">
282
<A NAME ="DOC.196.14">
283
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetTextShape()</B></TT>
287
<A NAME ="DOC.196.15">
288
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void SetSelect(bool s)</B></TT>
289
<DD> select this shape and its text shapes are selected.
291
<A NAME="GetLineWidth">
292
<A NAME ="DOC.196.16">
293
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> unsigned GetLineWidth() const </B></TT>
295
<A NAME="SetLineWidth">
296
<A NAME ="DOC.196.17">
297
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetLineWidth(unsigned n)</B></TT>
299
<A NAME="UpdateLineWidth">
300
<A NAME ="DOC.196.18">
301
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateLineWidth(unsigned n)</B></TT>
304
<A NAME="GetLineStyle">
305
<A NAME ="DOC.196.19">
306
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> GetLineStyle() const </B></TT>
308
<A NAME="SetLineStyle">
309
<A NAME ="DOC.196.20">
310
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetLineStyle(<!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> x)</B></TT>
312
<A NAME="UpdateLineStyle">
313
<A NAME ="DOC.196.21">
314
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateLineStyle(<!2><A HREF="LineStyle.html#DOC.213.1">LineStyle::Type</A> x)</B></TT>
316
<A NAME="GetTextColor">
317
<A NAME ="DOC.196.22">
318
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> const <!1><A HREF="string.html">string</A>* GetTextColor() const </B></TT>
320
<A NAME="UpdateTextColor">
321
<A NAME ="DOC.196.23">
322
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void UpdateTextColor(const <!1><A HREF="string.html">string</A> *c)</B></TT>
324
<A NAME="HitTextShape">
325
<A NAME ="DOC.196.24">
326
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual <!1><A HREF="TextShape.html">TextShape</A>* HitTextShape(int x, int y)</B></TT>
327
<DD> Returns if (x,y) is in name, and if so returns name.
329
<A NAME="HasTextShape">
330
<A NAME ="DOC.196.25">
331
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasTextShape(<!1><A HREF="TextShape.html">TextShape</A> *t) const </B></TT>
332
<DD> return if it has t as one of the text shapes.
334
<A NAME="GetLeftMost">
335
<A NAME ="DOC.196.26">
336
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual int GetLeftMost() const </B></TT>
337
<DD> refinements of those shape members.
339
<A NAME="GetTopMost">
340
<A NAME ="DOC.196.27">
341
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual int GetTopMost() const </B></TT>
343
<A NAME="GetRightMost">
344
<A NAME ="DOC.196.28">
345
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual int GetRightMost() const </B></TT>
347
<A NAME="GetBottomMost">
348
<A NAME ="DOC.196.29">
349
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual int GetBottomMost() const </B></TT>
351
<A NAME="IsFixedName">
352
<A NAME ="DOC.196.30">
353
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool IsFixedName()</B></TT>
355
<A NAME="SetFixedName">
356
<A NAME ="DOC.196.31">
357
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetFixedName(bool b)</B></TT>
359
<A NAME="SetGrafport">
360
<A NAME ="DOC.196.32">
361
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetGrafport(<!1><A HREF="Grafport.html">Grafport</A> *g)</B></TT>
362
<DD> set grafport of itself and its text shapes.
365
<A NAME ="DOC.196.33">
366
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetView(<!1><A HREF="ShapeView.html">ShapeView</A> *v)</B></TT>
367
<DD> set view of itself and its text shapes.
369
<A NAME="UpdateFont">
370
<A NAME ="DOC.196.34">
371
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void UpdateFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
372
<DD> update font and redraw.
374
<A NAME="UpdateAlignment">
375
<A NAME ="DOC.196.35">
376
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void UpdateAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> alignment)</B></TT>
377
<DD> update text alignments and redraw.
379
<A NAME="ChooseTextShape">
380
<A NAME ="DOC.196.36">
381
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="TextShape.html">TextShape</A>* ChooseTextShape(int, int)</B></TT>
382
<DD> return a text shape near (x,y).
384
<A NAME="NotifyTextMove">
385
<A NAME ="DOC.196.37">
386
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void NotifyTextMove(<!1><A HREF="TextShape.html">TextShape</A> *)</B></TT>
387
<DD> react on movement of some text shape.
390
<A NAME ="DOC.196.38">
391
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!1><A HREF="XFont.html">XFont</A>* GetFont() const </B></TT>
392
<DD> return font of the textshapes (all textshapes have same font).
394
<A NAME="GetAlignment">
395
<A NAME ="DOC.196.39">
396
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> <!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> GetAlignment() const </B></TT>
398
<A NAME="HasNameString">
399
<A NAME ="DOC.196.40">
400
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasNameString(const <!1><A HREF="string.html">string</A> *s, bool c1, bool c2) const </B></TT>
401
<DD> return if name text shape contains 's'.
404
<A NAME ="DOC.196.41">
405
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool c1, bool c2) const </B></TT>
406
<DD> return if some text shape contains 's'.
409
<A NAME ="DOC.196.42">
410
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool HasString(const <!1><A HREF="string.html">string</A> *s, bool cI, bool aS, <!1><A HREF="List.html">List</A><<!1><A HREF="TextShape.html">TextShape</A> *> *l)</B></TT>
411
<DD> put all textshapes containing 's' in the list l.
413
<A NAME="CheckReferences">
414
<A NAME ="DOC.196.43">
415
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool CheckReferences()</B></TT>
416
<DD> Check also that name reference is ok.
419
<A NAME ="DOC.196.44">
420
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void SetFont(<!1><A HREF="XFont.html">XFont</A> *ft)</B></TT>
421
<DD> set fonts of text shapes.
423
<A NAME="SetTextColor">
424
<A NAME ="DOC.196.45">
425
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void SetTextColor(const <!1><A HREF="string.html">string</A> *c)</B></TT>
426
<DD> set color of text shapes.
428
<A NAME="WriteGraphicsPart">
429
<A NAME ="DOC.196.46">
430
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void WriteGraphicsPart(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)</B></TT>
431
<DD> write line width and style to file.
433
<A NAME="ReadGraphicsPart">
434
<A NAME ="DOC.196.47">
435
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool ReadGraphicsPart(<!1><A HREF="InputFile.html">InputFile</A> *ifile, double format)</B></TT>
436
<DD> read line width and style from file.
438
<A NAME="WriteTextPart">
439
<A NAME ="DOC.196.48">
440
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void WriteTextPart(<!1><A HREF="OutputFile.html">OutputFile</A> *ofile)</B></TT>
441
<DD> write font and alignment to file.
443
<A NAME="ReadTextPart">
444
<A NAME ="DOC.196.49">
445
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> bool ReadTextPart(<!1><A HREF="InputFile.html">InputFile</A> *ifile, double format)</B></TT>
446
<DD> read and parse font and alignment from file.
448
<A NAME="SetDrawAttributes">
449
<A NAME ="DOC.196.50">
450
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SetDrawAttributes()</B></TT>
452
<A NAME="SetAlignment">
453
<A NAME ="DOC.196.51">
454
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> virtual void SetAlignment(<!2><A HREF="TextAlign.html#DOC.374.1">TextAlign::Type</A> a)</B></TT>
455
<DD> set alignments of text shapes.
457
<A NAME="SnapPosition">
458
<A NAME ="DOC.196.52">
459
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SnapPosition()</B></TT>
460
<DD> snap at position and text shapes are moved with.
462
<A NAME="SnapTopleft">
463
<A NAME ="DOC.196.53">
464
<DT><IMG BORDER=0 SRC=icon2.gif><TT><B> void SnapTopleft()</B></TT>
465
<DD> snap at topleft and text shapes are moved with.
468
<DL><DT><B>Direct child classes:
469
</B><DD><A HREF="NodeShape.html"> NodeShape </A><br>
470
<A HREF="Line.html"> Line </A><br>
472
<DL></DL><P><I><A HREF="aindex.html"> alphabetic index</A></I> <I><A HREF="HIER.html"> hierarchy of classes</A></I><P><hr>
473
<A HREF="http://www.zib.de/Visual/software/doc++/index.html"><IMG BORDER=0 ALIGN=RIGHT SRC=logo.gif></A>
474
<P Align=Center><I>this page has been generated automatically by doc++</I>
475
<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>