1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
<html><head><TITLE>Description of IndexedGsMixin</TITLE><BASE TARGET="_parent" ></head>
<body BGCOLOR=#FFFFFF>
<FONT FACE=Helvetica>
<DL><DT>
<FONT SIZE=4>
class
</FONT>
<FONT SIZE=5><B>IndexedGsMixin</B></FONT>
<A HREF="index.html">(Return to index)</A>
<br><br>
<DD><FONT FACE=Times SIZE=4>
mixin for graphic-state indexing mechanism used by <A HREF="OverlayIdrawComp.html" >OverlayIdrawComp</A>, etc..<br><br>
<B>Type:</B><br>
<UL>
Instantiable
</UL>
<br>
<A HREF=derivedclasses.html#IndexedGsMixin><B>Derived Classes</B></A>
<p>
<B>Include file:</B><br>
<UL><FONT FACE=Helvetica SIZE=3>
OverlayUnidraw/indexmixins.h
</FONT></UL>
<br>
<B>Description:</B><P> When a tree of graphical components is saved to disk (translated to ASCII), the
graphic states are output first as 'gs' records, to allow for replicated graphic
states to appear only once in a file. When reading these documents back in,
the istream constructor of <A HREF="OverlayIdrawComp.html" >OverlayIdrawComp</A> (and other top-level components) uses
this mixin to manage a table of graphic states, building it up as each 'gs'
record is read, and accessing entries for each ":gs id" field found in subsequent
records.
<br><br>
</DL></FONT>
<FONT FACE=Times SIZE=4><B>Public:</B></FONT><br><br><UL>
<DT><FONT FACE=Helvetica>
<A NAME="IndexedGsMixin()">
<B>IndexedGsMixin</B> () </FONT>
<DD><FONT FACE=Times SIZE=3><UL>
<br>
</UL></FONT><br>
<DT><FONT FACE=Helvetica><A HREF="Graphic.html" >Graphic</A>*
<A NAME="get_indexed_gs(intid)">
<B>get_indexed_gs</B> (int id) </FONT>
<DD><FONT FACE=Times SIZE=3><UL>
retrieve graphic state by 'id'.
<br>
<br>
</UL></FONT><br>
<DT><FONT FACE=Helvetica>void
<A NAME="grow_indexed_gs(Graphic*)">
<B>grow_indexed_gs</B> (<A HREF="Graphic.html" >Graphic</A>*) </FONT>
<DD><FONT FACE=Times SIZE=3><UL>
add graphic state to table.
<br>
<br>
</UL></FONT><br>
<DT><FONT FACE=Helvetica>void
<A NAME="reset_indexed_gs()">
<B>reset_indexed_gs</B> () </FONT>
<DD><FONT FACE=Times SIZE=3><UL>
reset graphic state table.
<br>
<br>
</UL></FONT><br>
</UL><br><br>
<FONT FACE=Times SIZE=4><B>Protected:</B></FONT><br><br><UL>
<DT><FONT FACE=Helvetica><A HREF="Picture.html" >Picture</A>*
<A NAME="_gslist">
<B>_gslist</B>
<DD><FONT FACE=Times SIZE=3><UL>
<br>
</UL></FONT><br>
</UL><br><br>
<A HREF="../index.html">(more documentation)</A>
<br><br>
</FONT>
</body>
</html>
|