#include <DebugKeyTable.h>
Martin Lötzsch
Definition at line 70 of file DebugKeyTable.h.
IDs for Debug Keys. enter new Debug Keys here and add the corresponding string in getDebugKeyName
Definition at line 77 of file DebugKeyTable.h.
DebugKeyTable::DebugKeyTable | ( | ) |
void DebugKeyTable::activate | ( | ) |
Determines for all keys if they are active in the current frame
Definition at line 70 of file DebugKeyTable.cpp.
References DebugKey::active, DebugKey::always, debugKeys, DebugKey::disabled, DebugKey::every_n_ms, DebugKey::every_n_times, SystemCall::getCurrentSystemTime(), DebugKey::last, DebugKey::n, DebugKey::n_times, and numOfDebugKeys.
Referenced by Process::processMain().
static char* DebugKeyTable::getDebugKeyName | ( | debugKeyID | aID | ) | [inline, static] |
returns the DebugKey's name
Definition at line 205 of file DebugKeyTable.h.
References learnWalking, printCBBRules, printPixelUsage, printRobotStatus, send_ballLocatorField_drawing, send_behavior_aStarSearch_drawing, send_behavior_CBBVector_drawing, send_behavior_CBBWay_drawing, send_behavior_kickAngles_drawing, send_behavior_kickAnglesRadar_drawing, send_classificationU_image, send_classificationV_image, send_classificationY_image, send_colorFrequency_image, send_dribbleBall_drawing, send_goaliePositionField_drawing, send_headControlField_drawing, send_imageMotionRecognition_image, send_imageProcessor_ball1_drawing, send_imageProcessor_ball2_drawing, send_imageProcessor_ball3_drawing, send_imageProcessor_ball4_drawing, send_imageProcessor_calibration1_drawing, send_imageProcessor_calibration2_drawing, send_imageProcessor_coloredSegments1_drawing, send_imageProcessor_coloredSegments2_drawing, send_imageProcessor_coloredSegments3_drawing, send_imageProcessor_edges_drawing, send_imageProcessor_flagsAndGoals_drawing, send_imageProcessor_general_drawing, send_imageProcessor_gradients_drawing, send_imageProcessor_ground_drawing, send_imageProcessor_horizon_drawing, send_imageProcessor_obstacles_drawing, send_imageProcessor_scanLines_drawing, send_imageProcessorBall_image, send_imageProcessorFlags_image, send_imageProcessorGeneral_image, send_imageProcessorGoals_image, send_imageProcessorGradients_image, send_imageProcessorPlayers_image, send_imageProcessorScanLines_image, send_models_corridorsRadar_drawing, send_segmentedImage1_image, send_segmentedImage2_image, send_segmentedImage3_image, send_selfLocator_drawing, send_selfLocatorField_drawing, send_sketch_drawing, send_teamBallLocatorField_drawing, sendBallLocatorTime, sendBehaviorControlTime, sendBodyPosture, sendCollisionDetectorTime, sendColorTable64, sendColorTableCuboids, sendColorTableReferenceColor, sendDDPInfo, sendGameControlData, sendHeadControlTime, sendHistogram_colorFrequency, sendHistogram_imageIntensityU, sendHistogram_imageIntensityV, sendHistogram_imageIntensityY, sendHistogram_lengthOfSegments, sendHistogram_scanLineIntensityU, sendHistogram_scanLineIntensityV, sendHistogram_scanLineIntensityY, sendImage, sendImageProcessorTime, sendJointData, sendJPEGImage, sendKickEngineInfo, sendKickRecords, sendLowResImage, sendMotionControlTime, sendMotionInfo, sendObstaclesLocatorTime, sendOdometryData, sendOptionRatings, sendPerceptBehaviorControlTime, sendPercepts, sendPlayerConfig, sendPlayersLocatorTime, sendRobotStateDetectorTime, sendSelfLocatorTime, sendSensorBehaviorControlTime, sendSensorData, sendSensorDataProcessorTime, sendSoundControlTime, sendSoundRequest, sendSpecialPercept, sendSpecialVisionTime, sendTeamBallLocatorTime, sendTimeOffsets, sendWalkingEngineInfo, sendWorldState, sendXabsl2DebugMessagesForBehaviorControl, and sendXabsl2DebugMessagesForHeadControl.
Referenced by ConsoleRoboCupCtrl::createCompletion(), RobotConsole::debugKey(), and CDebugKeysToolBar::Init().
DebugKey::modes DebugKeyTable::getMode | ( | debugKeyID | id | ) | const |
returns the mode of a debug key
Definition at line 46 of file DebugKeyTable.cpp.
References debugKeys, and DebugKey::mode.
Referenced by RobotConsole::debugKey(), RobotConsole::handleMessage(), operator<<(), and CDebugKeysToolBar::updateUI().
unsigned int DebugKeyTable::getN | ( | debugKeyID | id | ) | const |
returns the parameter n of a debug key
Definition at line 51 of file DebugKeyTable.cpp.
References debugKeys, and DebugKey::n.
Referenced by operator<<().
bool DebugKeyTable::isActive | ( | debugKeyID | id | ) | const |
returns whether an debug Key is active in the current frame
Definition at line 56 of file DebugKeyTable.cpp.
References DebugKey::active, and debugKeys.
bool DebugKeyTable::operator!= | ( | const DebugKeyTable & | other | ) | [inline] |
the != operator
Definition at line 366 of file DebugKeyTable.h.
bool DebugKeyTable::operator== | ( | const DebugKeyTable & | other | ) |
the == operator
Definition at line 118 of file DebugKeyTable.cpp.
References debugKeys, DebugKey::mode, DebugKey::n, and numOfDebugKeys.
void DebugKeyTable::reset | ( | ) |
resets all debug keys to disabled
Definition at line 62 of file DebugKeyTable.cpp.
References DebugKey::disabled, numOfDebugKeys, and set().
Referenced by DebugKeyTable(), and CDebugKeysToolBar::handleCommand().
void DebugKeyTable::set | ( | debugKeyID | id, | |
DebugKey::modes | mode = DebugKey::always , |
|||
int | n = 0 | |||
) |
sets a debug key
Definition at line 31 of file DebugKeyTable.cpp.
References debugKeys, and DebugKey::set().
Referenced by RobotConsole::debugKey(), CDebugKeysToolBar::handleCommand(), CTimeDiagramDlgBar::loadSelection(), CRobotRemoteApp::onChangeConfiguration(), CTimeDiagramDlgBar::OnContextMenu(), CHistogramDlgBar::OnContextMenu(), CColorSpaceDlgBar::OnContextMenu(), CMofTesterDlgBar::OnReadButton(), operator>>(), PhysicalRobot::PhysicalRobot(), reset(), ImageDrawingManager::sendDebugKeysForSimulatedRobots(), DebugDrawingManager::sendDebugKeysForSimulatedRobots(), CXabsl2DlgBar::sendDebugRequest(), CTimeDiagramDlgBar::unselectAll(), and RobotConsole::xabslLoadBehavior().
void DebugKeyTable::setMode | ( | debugKeyID | id, | |
DebugKey::modes | mode | |||
) |
sets only the mode of a debug key
Definition at line 36 of file DebugKeyTable.cpp.
References debugKeys, and DebugKey::set().
void DebugKeyTable::setN | ( | debugKeyID | id, | |
unsigned int | n | |||
) |
sets only the parameter n of a debug key
Definition at line 41 of file DebugKeyTable.cpp.
References debugKeys, and DebugKey::set().
Referenced by CDebugKeysToolBar::handleEditChange().
DebugKey DebugKeyTable::debugKeys[numOfDebugKeys] [protected] |
The Debug Key Table
Definition at line 332 of file DebugKeyTable.h.
Referenced by activate(), getMode(), getN(), isActive(), operator==(), set(), setMode(), and setN().