VG101 RECITATION 5 By TAs
VG101 RECITATION 5 By TAs
CONTENTS o How to read Vg101Class.h o Samples about graphics o About assignment 5 o Array
CONTENTS How to read Vg101Class.h Samples about graphics About assignment 5 Array
HOW TO READ VG101CLASS.H o This file defines the following classes: o ConsoleT GwindowsT:represent the graphics window oGObjectT:base class for all geometric classes ·LineT ·TriangleT ·RectangleT ArcT:a circle is an arc with an angle of 360 degrees
HOW TO READ VG101CLASS.H This file defines the following classes: ConsoleT GwindowsT: represent the graphics window GObjectT: base class for all geometric classes LineT TriangleT RectangleT ArcT: a circle is an arc with an angle of 360 degrees
HOW TO READ VG101CLASS.H o RandomT:random numbers and colors o PointT:represent a point using (x,y) o PenT:record the current location and color of the pen o MouseT:detect the click event of the mouse,get mouse current location TextT:set text color,style,font...when printing a message to the graphics window (not console window)
HOW TO READ VG101CLASS.H RandomT: random numbers and colors PointT: represent a point using (x, y) PenT: record the current location and color of the pen MouseT: detect the click event of the mouse, get mouse current location TextT: set text color, style, font… when printing a message to the graphics window (not console window)
HOW TO READ VG101CLASS.H o Let's see what's the general structure of a class definition
HOW TO READ VG101CLASS.H Let’s see what’s the general structure of a class definition