COM1370 - Graphics

Group 301

Students:

Scott Pestana's version of final project here
Status for 5/25/2003's 80%: here

Several Class Prospecti have been laid out for this project.

Some specific code has been written for this code, please see the private page for that information.
Object Class Prospectus:
members:
 
  • "Object" parent 
  •  
  • Pointer to "parent" Object.
  •  
  • "Geometry" geometric 
  •  
  • Pointer to geometric data.
  •  
  • "Object_list" childObjects 
  •  
  • Pointer to linked list of "child" objects.
  •  
  • int fill_color
  •  
  • Data for color of object, possibly null.
  •  
  • int line_thickness
    .
  •  
  • Data for thickness of object's line border.
  • methods: 
     
  •  boolean add_Child ( "Object" newchild ) 
  •  
  • Adds newchild to childObjects.
  •  
  •  boolean transform_by ( "TransfMatr" trans ) 
  •  
  • Modifies gemoetric member by trans, then modifies members of childObjects.
  •  
  •  boolean refresh ( ) 
  •  
  • Updates information for screen.
  • Geometry Class Prospectus:
    members:
     
  •  - 
  •  
  • -
  • methods: 
     
  •  - 
  •  
  • -
  • Polygon Class (Extending Geometry) Prospectus:
    members:
     
  •  int[]_list list_of_points 
  •  
  • Linked list of gemoetric points.
  • methods: 
     
  •  boolean add_point ( int x, int y ) 
  •  
  • Adds a point with x value and y value to list_of_points.
  •  
  •  boolean transform_by ( "TransfMatr" trans ) 
  •  
  • Transforms data using the appropriate means.
  •  
  •  boolean redraw ( int fill_color, int line_thickness ) 
  •  
  • Draws the geometric data using the (possibly null) fill_color and line_thickness.
  • Circle Class (Extending Geometry) Prospectus:
    members:
     
  •  int center 
  •  
  • Defines center of circle.
  •  
  •  int radius 
  •  
  • Defines radius of circle.
  • methods: 
     
  •  boolean define_radius_and_center ( int radius, int center ) 
  •  
  • Adds a point with radius value and center value to list_of_points.
  •  
  •  boolean transform_by ( "TransfMatr" trans ) 
  •  
  • Transforms data using the appropriate means.
  •  
  •  boolean redraw ( int fill_color, int line_thickness ) 
  •  
  • Draws the specific geometric data using the (possibly null) fill_color and line_thickness.
  • TransfMatr Class Prospectus:
    members:
     
  •  int[][] data 
  •  
  • A three-element two-dimensional list of mathematical transforms.
  • methods: 
     
  •  - - ( - - ) 
  •  
  • -