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.

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 | |
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.
| 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.
| 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
1.7.1