#include <RasterStrategy.h>
Inheritance diagram for RasterStrategy:


Public Types | |
| typedef const unsigned char * | I_Pin |
| enum | ActivationKeys { preScan = 0, postScan, ball, flag, goal, lines, foes, numberOfActivationKeys } |
| Keys for the several activities can be made by strategies. More... | |
Public Member Functions | |
| RasterStrategy (RasterImageProcessor &iProcessor) | |
| Constructor. | |
| virtual | ~RasterStrategy () |
| Destructor. | |
| virtual void | init ()=0 |
| Initializes a strategy and the related specialists. | |
| virtual void | execute ()=0 |
| Executes the strategy. | |
Public Attributes | |
| bool | insideBall |
| True if the strategy scans over a ball. | |
| bool | insideBox |
| True if the strategy scans over a box. | |
| bool | insideBridge |
| True if the strategy scans over a bridge beacon. | |
| bool | insidePlayer |
| True if the strategy scans over a player. | |
| bool | insideField |
| True if the strategy scans over the field. | |
| bool | insideLM |
| True if the strategy scans over a landmark. | |
Protected Member Functions | |
| colorClass | getColor (Vector2< int > v) |
| Implemented with ColorTable interface. | |
| colorClass | getColor (int x, int y) |
| Implemented with ColorTable interface. | |
| bool | checkColor (int x, int y, colorClass color) |
| Implemented with ColorTable interface. | |
| bool | checkColor (Vector2< int > v, colorClass color) |
| Implemented with ColorTable interface. | |
| double | theta (int dx, int dy) |
| The theta function. | |
Protected Attributes | |
| RasterImageProcessor * | rip |
| The image processor interfaces. | |
A RasterStrategy is a object that delegates a collection of specialists. And decides what pixels are scanned on the image. First the image has to be scanned, than the several post-processings of the specialists have to be executed.
Definition at line 30 of file RasterStrategy.h.
|
|
Definition at line 46 of file RasterStrategy.h. |
|
|
Keys for the several activities can be made by strategies.
Definition at line 35 of file RasterStrategy.h. |
|
|
Constructor.
Definition at line 10 of file RasterStrategy.cpp. |
|
|
Destructor.
Definition at line 16 of file RasterStrategy.cpp. |
|
|
Initializes a strategy and the related specialists. Call this before execute(). Implemented in RDefaultStrategy. Referenced by RasterImageProcessor::init(). |
|
|
Executes the strategy.
Implemented in RDefaultStrategy. Referenced by RasterImageProcessor::execute(). |
|
|
Implemented with ColorTable interface. Corrects the color before classifying.
Definition at line 84 of file RasterStrategy.h. References colorClass, Vector2< V >::x, and Vector2< V >::y. Referenced by checkColor(), and RDefaultStrategy::preScan(). |
|
||||||||||||
|
Implemented with ColorTable interface. Corrects the color before classifying.
Definition at line 92 of file RasterStrategy.h. References colorClass, ImageProcessorInterfaces::colorTable, ColorCorrector::correct(), ColorTable::getColorClass(), Image::image, and ImageProcessorInterfaces::image. |
Here is the call graph for this function:

|
||||||||||||||||
|
Implemented with ColorTable interface.
Definition at line 105 of file RasterStrategy.h. References getColor(). |
Here is the call graph for this function:

|
||||||||||||
|
Implemented with ColorTable interface.
Definition at line 113 of file RasterStrategy.h. References getColor(), Vector2< V >::x, and Vector2< V >::y. |
Here is the call graph for this function:

|
||||||||||||
|
The theta function.
Definition at line 120 of file RasterStrategy.h. |
|
|
True if the strategy scans over a ball.
Definition at line 49 of file RasterStrategy.h. Referenced by RBallSpecialist2::invokeOnPreScan(). |
|
|
True if the strategy scans over a box.
Definition at line 51 of file RasterStrategy.h. Referenced by BoxSpecialist::invokeOnPreScan(). |
|
|
True if the strategy scans over a bridge beacon.
Definition at line 53 of file RasterStrategy.h. Referenced by RBridgeSpecialist::invokeOnPreScan(). |
|
|
True if the strategy scans over a player.
Definition at line 55 of file RasterStrategy.h. Referenced by REnemySpecialist::invokeOnPostScan(), and REnemySpecialist::invokeOnPreScan(). |
|
|
True if the strategy scans over the field.
Definition at line 57 of file RasterStrategy.h. Referenced by RFieldSpecialist::invokeOnPreScan(). |
|
|
True if the strategy scans over a landmark.
Definition at line 59 of file RasterStrategy.h. |
|
|
The image processor interfaces.
Definition at line 77 of file RasterStrategy.h. |
1.3.6