class
OverlaysScript
: public
OverlayScript
(Return to index)
composite version of
OverlayScript
.
Type:
Instantiable
Base Classes:
public
OverlayScript
Derived Classes
Include file:
OverlayUnidraw/scriptview.h
Description:
a serialized view of
OverlaysComp
.
Public:
virtual boolean
Definition
(ostream&)
output variable-length ASCII record that defines the component.
virtual boolean
Done
(
Iterator
)
return true if
Iterator
points off the front or end of list of sub-views.
virtual boolean
EmitGS
(ostream&,
Clipboard
*, boolean)
iterate over sub-views, outputting decriptions of each unique graphic state.
virtual boolean
EmitPic
(ostream&,
Clipboard
*,
Clipboard
*, boolean)
iterate over sub-views, outputting decriptions of each unique composite graphic. This is not yet fully generalized, because there are questions as to what that would mean.
virtual boolean
EmitPts
(ostream&,
Clipboard
*, boolean)
iterate over sub-views, outputting decriptions of each unique point list.
virtual void
First
(
Iterator
&)
set
Iterator
to point to first sub-view.
virtual ClassId
GetClassId
()
OverlaysComp
*
GetOverlaysComp
()
return pointer to associated component.
virtual
OverlayScript
*
GetScript
(
Iterator
)
get sub-view pointed to by the
Iterator
.
virtual
ExternView
*
GetView
(
Iterator
)
get sub-view pointed to by the
Iterator
.
virtual boolean
IsA
(ClassId)
virtual void
Last
(
Iterator
&)
set
Iterator
to point to last sub-view.
virtual void
Next
(
Iterator
&)
set
Iterator
to point to next sub-view.
OverlaysScript
(
OverlaysComp
* = nil)
virtual void
Prev
(
Iterator
&)
set
Iterator
to point to prev sub-view.
static int
ReadChildren
(istream&, void*, void*, void*, void*)
static method to read a list of arbitrary objects when de-serializing.
static int
ReadPic
(istream&, void*, void*, void*, void*)
static method to read a composite graphic id (a pic), and substitute the corresponding component from a list.
virtual void
SetCompactions
(boolean gs = false, boolean pts = false, boolean pic=false)
set flags to indicate what should be compacted when serialized, graphic state ('gs'), point lists ('pts'), or composite graphics ('pic').
virtual void
SetScript
(
OverlayScript
*,
Iterator
&)
set sub-view pointed to by the
Iterator
.
virtual void
SetView
(
ExternView
*,
Iterator
&)
set sub-view pointed to by the
Iterator
.
virtual void
Update
()
construct all sub-views.
static int
read_gsptspic
(const char* name, istream&,
OverlaysComp
* comps)
static method to read either a graphic state, a point list, or a compound graphic when de-serializing.
static int
read_name
(istream&, char* buf, int bufsiz)
static method to read the name of an object when de-serializing.
static
OverlayComp
*
read_obj
(const char* name, istream&,
OverlaysComp
* comps)
static method to read an arbitrary object when de-serializing.
virtual
~OverlaysScript
()
Protected:
void
DeleteView
(
Iterator
&)
void
DeleteViews
()
UList
*
Elem
(
Iterator
)
UList
*
_views
(more documentation)