MP4
Stacks and Queues
solidColorPicker Class Reference

solidColorPicker: a functor that determines the color that should be used given an x and y coordinate using a solid pattern. More...

#include "solidColorPicker.h"

+ Inheritance diagram for solidColorPicker:
+ Collaboration diagram for solidColorPicker:

Public Member Functions

 solidColorPicker (RGBAPixel fillColor)
 Constructs a new solidColorPicker. More...
 
virtual RGBAPixel operator() (int x, int y)
 Picks the color for pixel (x, y). More...
 
- Public Member Functions inherited from colorPicker
virtual ~colorPicker ()
 Destructor: does nothing, but as it is virtual, you may overload it in derived classes if needed. More...
 

Detailed Description

solidColorPicker: a functor that determines the color that should be used given an x and y coordinate using a solid pattern.

You can create private helper functions inside this class, as well as local storage, if necessary. Remember to overload a destructor if you need to.

Author
CS 225 Staff
Date
Fall 2010

Constructor & Destructor Documentation

solidColorPicker::solidColorPicker ( RGBAPixel  fillColor)

Constructs a new solidColorPicker.

Parameters
fillColorThe color for this color picker.
Todo:
Initialize a new solidColorPicker here!

Member Function Documentation

RGBAPixel solidColorPicker::operator() ( int  x,
int  y 
)
virtual

Picks the color for pixel (x, y).

Simply returns the same color (used to construct the picker) all of the time.

Todo:
Return the appropriate color here! You will have to replace the following line.

Implements colorPicker.


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