Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Modules/SpecialVision/DefaultSpecialVision.cpp

Go to the documentation of this file.

    00001 /**
    00002 * @file DefaultSpecialVision.cpp
    00003 *
    00004 * Implementation of class DefaultSpecialVision
    00005 *
    00006 * @author <A href=mailto:juengel@informatik.hu-berlin.de>Matthias Juengel</A>
    00007 */
    00008
    00009 #include "DefaultSpecialVision.h"
    00010
    00011 DefaultSpecialVision::DefaultSpecialVision(const SpecialVisionInterfaces& interfaces)
    00012 : SpecialVision(interfaces), barCodeReader(interfaces), autoShutter(interfaces), challengeSpecialVision(interfaces), imageBrightnessEstimator(interfaces)
    00013 {
    00014 }
    00015
    00016 void DefaultSpecialVision::execute()
    00017 {
    00018
    00019
    00020  switch(specialVisionRequest.specialVisionRequest)
    00021   {
    00022   case SpecialVisionRequest::none:
    00023     break;
    00024   case SpecialVisionRequest::barCode:
    00025     barCodeReader.execute();
    00026     break;
    00027   case SpecialVisionRequest::autoShutter:
    00028     autoShutter.execute();
    00029     break;
    00030   case SpecialVisionRequest::challengeGetOrientation:
    00031   case SpecialVisionRequest::challengeLearnOrientation:
    00032   case SpecialVisionRequest::challengeFindOrientation:
    00033     challengeSpecialVision.execute();
    00034     break;
    00035   case SpecialVisionRequest::imageBrightness:
    00036     imageBrightnessEstimator.execute();
    00037   default:
    00038     break;
    00039   }
    00040
    00041 }