Public Slots | Public Member Functions | Protected Member Functions

Canvas2D Class Reference

2D canvas that students will implement in the Brush and Filter assignments. The same canvas will be used to display raytraced images in the Intersect and Ray assignments. More...

#include <Canvas2D.h>

Inherits SupportCanvas2D.

Collaboration diagram for Canvas2D:
Collaboration graph
[legend]

List of all members.

Public Slots

void cancelRender ()
 UI will call this from the button on the "Ray" dock.
void filterImage ()
 UI will call this from the button on the "Filter" dock.

Public Member Functions

 Canvas2D ()
void renderImage (Camera *camera, int width, int height)
 UI will call this from the button on the "Ray" dock.

Protected Member Functions

virtual void mouseDown (int x, int y)
 overridden from SupportCanvas2D
virtual void mouseDragged (int x, int y)
 called when the left mouse button is pressed down on the canvas
virtual void mouseUp (int x, int y)
 called when the left mouse button is dragged on the canvas
virtual void notifySizeChanged (int w, int h)
 called when the left mouse button is released

Detailed Description

2D canvas that students will implement in the Brush and Filter assignments. The same canvas will be used to display raytraced images in the Intersect and Ray assignments.


Constructor & Destructor Documentation

Canvas2D::Canvas2D (  ) 

CS123 2-dimensional canvas. Contains support code necessary for Brush, Filter, Intersect, and Ray.

YOU WILL NEED TO FILL THIS IN!

Please contact the authors if there are any bugs.

Date:
2010-08-24
Author:
Evan Wallace (edwallac)
Ben Herila (ben@herila.net)

Member Function Documentation

void Canvas2D::notifySizeChanged ( int  w,
int  h 
) [protected, virtual]

called when the left mouse button is released

This will be called when the size of the canvas has been changed


The documentation for this class was generated from the following files: