Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ProjectInterface.h File Reference


Detailed Description

Defines ProjectInterface namespace - a collection of the global variables which should be set by a project to use the Tekkotsu framework.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-4_0
Revision
1.19
State
Exp
Date
2007/06/13 18:14:14

Definition in file ProjectInterface.h.

#include "Vision/colors.h"
#include <string>

Include dependency graph for ProjectInterface.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  std
namespace  ProjectInterface

Functions

BehaviorBaseProjectInterface::startupBehavior ()
 REQUIRED: you must define a behavior which will be started when the boot is complete.
void(*) ProjectInterface::sendCommand (const std::string &cmd)
 sends a command to the project, allows GUI elements of the framework to send commands to the hardware abstraction layer
bool(*) ProjectInterface::uncaughtException (const char *file, int line, const char *message, const std::exception *ex)
 The exception handler for exceptions which have fallen through to base Tekkotsu functions.
bool ProjectInterface::displayException (const char *file, int line, const char *message, const std::exception *ex)
 Displays information about an exception on serr, provides a default value for uncaughtException.
color_index(*) ProjectInterface::lookupColorIndexByName (const std::string &name)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
color_index(*) ProjectInterface::lookupColorIndexByRgb (const rgb rgbval)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
rgb(*) ProjectInterface::lookupColorRGB (color_index cindex)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
const char *(*) ProjectInterface::lookupColorName (color_index cindex)
 allows you to override how colors are defined -- by default, this will be set to a function which passes the call to defSegmentedColorGenerator
color_index ProjectInterface::getColorIndex (const std::string &name)
 Returns the index corresponding to a color of specified name by calling lookupColorIndexByName().
color_index ProjectInterface::getColorIndex (const rgb rgbval)
 Returns the index corresponding to an rgb value by calling lookupColorIndexByRgb().
rgb ProjectInterface::getColorRGB (const std::string &name)
 Returns rgb value corresponding to a color of specified name by calling lookupColorRGB(lookupColorIndexByName()).
rgb ProjectInterface::getColorRGB (color_index cindex)
 Returns rgb value corresponding to a color of specified name by calling lookupColorRGB().
const char * ProjectInterface::getColorName (color_index cindex)
 Returns color name corresponding to specified color index by calling lookupColorName().
unsigned int(*) ProjectInterface::lookupNumColors ()
unsigned int ProjectInterface::getNumColors ()
 Returns the number of colors, obtained from defSegmentedColorGenerator.


Tekkotsu v4.0
Generated Thu Nov 22 00:56:51 2007 by Doxygen 1.5.4