mp_traversals
Terrible Traversals
ColorPicker Class Referenceabstract

The base class for different color picking algorithms All color picking classes inherit from this class. More...

#include <ColorPicker.h>

Inheritance diagram for ColorPicker:
[legend]

Public Member Functions

virtual ~ColorPicker ()
 Class destructor. More...
 
virtual HSLAPixel getColor (unsigned x, unsigned y)=0
 Select a color for the given point (x, y) All derived classes needs to implement this. More...
 

Detailed Description

The base class for different color picking algorithms All color picking classes inherit from this class.

Constructor & Destructor Documentation

◆ ~ColorPicker()

virtual ColorPicker::~ColorPicker ( )
inlinevirtual

Class destructor.

Member Function Documentation

◆ getColor()

virtual HSLAPixel ColorPicker::getColor ( unsigned  x,
unsigned  y 
)
pure virtual

Select a color for the given point (x, y) All derived classes needs to implement this.

Implemented in SolidColorPicker, RainbowColorPicker, MyColorPicker, GridColorPicker, and GradientColorPicker.


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