Download A Graphical Petri Nets Simulator - Rochester Institute of Technology

Transcript
objects.c
Display
"QUIT"
Remove
"QUIT"
void
disp
void
erase
void
set
void
draw
placeO
Draw
void
erase
placeO
Erase the
void
hilit
void
set
quitO
quit()
placeO
placeO
transO
menu.
menu.
Create the bitmaps for place manipulations.
a place on
area.
selected place.
Highlight the
Create
the working
selected place.
for
bitmaps
the
transition
manipulations.
void
draw
transO
Draws
void
erase
transO
Erase the
void
hilit
double
get_angle()
transO
a
transition
selected
Highlight the
Get the
angle
on
the working
area.
transition.
selected
transition.
between the drawn line
and
the
horizontal line.
void
rotateO
Rotate the
void
shiftO
Shift the
coordinates
void
draw
line()
Create
bitmap and draw a solid line on it.
void
draw
arrowO
Draw
a
a
coordinates
arrow
indicate the
Draw
on
by an
angle.
by a distance.
the
end
of
the line to
flowing direction of the token.
directed line to
void
draw
void
get
void
inter_y()
Calculate the
y-intercept.
void
inter
Calculate the
x-intercept.
void
get
c
point()
Get the
actual connect point of circle.
void
get
r
point()
Get the
actual connect point of rectangle.
arc()
code()
x()
a
Get the
represent an arc.
outcode of a point
60-
to
a rectangle.