view2D.spad line 1 [edit on github]
TwoDimensionalGraph creates virtual two dimensional graphs (to be displayed on TwoDimensionalViewports).
appendPoint(
appends the point gi
, pt)pt
to the end of the list of points component for the graph,
, which is of the domain GraphImage.gi
coerce(llp)
creates and returns a graph of the domain GraphImage which is composed of the list of list of points given by llp
, and whose point colors, line colors and point sizes are determined by the default functions pointColorDefault, lineColorDefault, and pointSizeDefault. The graph data is then sent to the viewport manager where it waits to be included in a two-dimensional viewport window.
coerce(
returns the indicated graph, gi
)
, of domain GraphImage as output of the domain OutputForm.gi
component(
sets the components of the graph, gi
, lp, pal1, pal2, p)
of the domain GraphImage, to the values given. The point list for gi
is set to the list gi
lp
, the color of the points in lp
is set to the palette color pal1
, the color of the lines which connect the points lp
is set to the palette color pal2
, and the size of the points in lp
is given by the integer p
.
component(
modifies the graph gi
, pt)
of the domain GraphImage to contain one point component, gi
pt
whose point color, line color and point size are determined by the default functions pointColorDefault, lineColorDefault, and pointSizeDefault.
component(
modifies the graph gi
, pt, pal1, pal2, ps)
of the domain GraphImage to contain one point component, gi
pt
whose point color is set to the palette color pal1
, line color is set to the palette color pal2
, and point size is set to the positive integer ps
.
graphImage()
returns an empty graph with 0 point lists of the domain GraphImage. A graph image contains the graph data component of a two dimensional viewport.
key(
returns the process ID of the given graph, gi
)
, of the domain GraphImage.gi
makeGraphImage(llp)
returns a graph of the domain GraphImage which is composed of the points and lines from the list of lists of points, llp
, with default point size and default point and line colours.
makeGraphImage(llp, lpal1, lpal2, lp)
returns a graph of the domain GraphImage which is composed of the points and lines from the list of lists of points, llp
, whose point colors are indicated by the list of palette colors, lpal1
, and whose lines are colored according to the list of palette colors, lpal2
. The parameter lp
is a list of integers which denote the size of the data points.
makeGraphImage(llp, lpal1, lpal2, lp, lopt)
returns a graph of the domain GraphImage which is composed of the points and lines from the list of lists of points, llp
, whose point colors are indicated by the list of palette colors, lpal1
, and whose lines are colored according to the list of palette colors, lpal2
. The parameter lp
is a list of integers which denote the size of the data points, and lopt
is the list of draw command options.
point(
modifies the graph gi
, pt, pal)
of the domain GraphImage to contain one point component, gi
pt
whose point color is set to be the palette color pal
, and whose line color and point size are determined by the default functions lineColorDefault and pointSizeDefault.
pointLists(
returns the list of lists of points which compose the given graph, gi
)
, of the domain GraphImage.gi
putColorInfo(llp, lpal)
takes a list of list of points, llp
, and returns the points with their hue and shade components set according to the list of palette colors, lpal
.
ranges(
returns the list of ranges of the point components from the indicated graph, gi
)
, of the domain GraphImage.gi
ranges(
modifies the list of ranges for the given graph, gi
, lr)
of the domain GraphImage, to be that of the list of range segments, gi
lr
, and returns the new range list for
.gi
sendGraphImage(
takes the given graph, gi
)
of the domain GraphImage, and sends itgi
's
data to the viewport manager where it waits to be included in a two-dimensional viewport window.
cannot be an empty graph.gi
units(
returns the list of unit increments for the gi
)x
and y
axes of the indicated graph,
, of the domain GraphImage.gi
units(
modifies the list of unit increments for the gi
, lu)x
and y
axes of the given graph,
of the domain GraphImage, to be that of the list of unit increments, gi
lu
, and returns the new list of units for
.gi