ot::SpeechTransformation Class Reference

#include <SpeechTransformation.h>

Inheritance diagram for ot::SpeechTransformation:

Inheritance graph
[legend]
Collaboration diagram for ot::SpeechTransformation:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Command {
  RESET = 0, UP, DOWN, LEFT,
  RIGHT, FORWARD, BACKWARD, MOVE_UP,
  MOVE_DOWN, MOVE_LEFT, MOVE_RIGHT, MOVE_FORWARD,
  MOVE_BACKWARD, ROTATE_UP, ROTATE_DOWN, ROTATE_UP_FAST,
  ROTATE_DOWN_FAST, AXIAL, SAGITTAL, CORONAL,
  RESTORE_ONE, RESTORE_TWO, RESTORE_THREE, RESTORE_FOUR,
  RESTORE_FIVE, UNDOABLE_CMDS_FLAG, SAVE_ONE, SAVE_TWO,
  SAVE_THREE, SAVE_FOUR, SAVE_FIVE, SAVE_STATE,
  UNDO, REDO, SCALE_UP, SCALE_DOWN,
  SET_ROTATION_AXIS_TO_AXIAL_CORONAL, SET_ROTATION_AXIS_TO_SAGITTAL_CORONAL, SET_ROTATION_AXIS_TO_AXIAL_SAGITTAL, PERFORMABLE_CMDS_FLAG,
  LISTEN, QUIT, YES, NO,
  LAST_CMD_FLAG
}
enum  RecoEvent { IDLE = -1, WAIT_FOR_COMMAND = 0, WAIT_FOR_CONFIRMATION }
enum  RotationAxis { INVALID = -1, AXIAL_CORONAL = 0, SAGITTAL_CORONAL, AXIAL_SAGITTAL }

Public Member Functions

 SpeechTransformation (const std::string logFile_="", const bool useListeningMode=false, const bool useConfirmation_=true, const std::string voice_="Mary")
 ~SpeechTransformation ()

Protected Member Functions

virtual EventtransformEvent (Event *event)
virtual bool performCommand (const int commandId, bool &explained)
void reset (Event &event)
bool undo ()
bool redo ()
bool rotate (bool moveUp, bool fast)
std::string getCommandName (int commandId)

Protected Attributes

int commandToBeConfirmed
int undoCommand
int redoCommand
int logCount
bool useConfirmation
bool useListeningMode
bool savedEventAvailable [5]
double scale
double startTime
double lastCmdTime
double minDelay
double maxDelay
CSpeechVoice tts
RecoEvent recoEvent
RotationAxis rotationAxis
FilelogFile
Event undoEvent
Event redoEvent
Event savedEvents [5]

Friends

class CommonNodeFactory

Member Enumeration Documentation

enum ot::SpeechTransformation::Command
 

Enumerator:
RESET 
UP 
DOWN 
LEFT 
RIGHT 
FORWARD 
BACKWARD 
MOVE_UP 
MOVE_DOWN 
MOVE_LEFT 
MOVE_RIGHT 
MOVE_FORWARD 
MOVE_BACKWARD 
ROTATE_UP 
ROTATE_DOWN 
ROTATE_UP_FAST 
ROTATE_DOWN_FAST 
AXIAL 
SAGITTAL 
CORONAL 
RESTORE_ONE 
RESTORE_TWO 
RESTORE_THREE 
RESTORE_FOUR 
RESTORE_FIVE 
UNDOABLE_CMDS_FLAG 
SAVE_ONE 
SAVE_TWO 
SAVE_THREE 
SAVE_FOUR 
SAVE_FIVE 
SAVE_STATE 
UNDO 
REDO 
SCALE_UP 
SCALE_DOWN 
SET_ROTATION_AXIS_TO_AXIAL_CORONAL 
SET_ROTATION_AXIS_TO_SAGITTAL_CORONAL 
SET_ROTATION_AXIS_TO_AXIAL_SAGITTAL 
PERFORMABLE_CMDS_FLAG 
LISTEN 
QUIT 
YES 
NO 
LAST_CMD_FLAG 

enum ot::SpeechTransformation::RecoEvent
 

Enumerator:
IDLE 
WAIT_FOR_COMMAND 
WAIT_FOR_CONFIRMATION 

enum ot::SpeechTransformation::RotationAxis
 

Enumerator:
INVALID 
AXIAL_CORONAL 
SAGITTAL_CORONAL 
AXIAL_SAGITTAL 


Constructor & Destructor Documentation

ot::SpeechTransformation::SpeechTransformation const std::string  logFile_ = "",
const bool  useListeningMode = false,
const bool  useConfirmation_ = true,
const std::string  voice_ = "Mary"
 

ot::SpeechTransformation::~SpeechTransformation  ) 
 


Member Function Documentation

std::string ot::SpeechTransformation::getCommandName int  commandId  )  [protected]
 

virtual bool ot::SpeechTransformation::performCommand const int  commandId,
bool &  explained
[protected, virtual]
 

bool ot::SpeechTransformation::redo  )  [protected]
 

void ot::SpeechTransformation::reset Event event  )  [protected]
 

bool ot::SpeechTransformation::rotate bool  moveUp,
bool  fast
[protected]
 

virtual Event* ot::SpeechTransformation::transformEvent Event event  )  [protected, virtual]
 

transforms a event. Simplifies implementing other Transformations as it is only needed to override this method. It stores the transformed event in the localEvent member variable and returns a pointer to it.

Parameters:
event pointer to original event
Returns:
pointer to localEvent member

Implements ot::Transformation.

bool ot::SpeechTransformation::undo  )  [protected]
 


Friends And Related Function Documentation

friend class CommonNodeFactory [friend]
 


Member Data Documentation

int ot::SpeechTransformation::commandToBeConfirmed [protected]
 

double ot::SpeechTransformation::lastCmdTime [protected]
 

int ot::SpeechTransformation::logCount [protected]
 

File* ot::SpeechTransformation::logFile [protected]
 

double ot::SpeechTransformation::maxDelay [protected]
 

double ot::SpeechTransformation::minDelay [protected]
 

RecoEvent ot::SpeechTransformation::recoEvent [protected]
 

int ot::SpeechTransformation::redoCommand [protected]
 

Event ot::SpeechTransformation::redoEvent [protected]
 

RotationAxis ot::SpeechTransformation::rotationAxis [protected]
 

bool ot::SpeechTransformation::savedEventAvailable[5] [protected]
 

Event ot::SpeechTransformation::savedEvents[5] [protected]
 

double ot::SpeechTransformation::scale [protected]
 

double ot::SpeechTransformation::startTime [protected]
 

CSpeechVoice ot::SpeechTransformation::tts [protected]
 

int ot::SpeechTransformation::undoCommand [protected]
 

Event ot::SpeechTransformation::undoEvent [protected]
 

bool ot::SpeechTransformation::useConfirmation [protected]
 

bool ot::SpeechTransformation::useListeningMode [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:33:09 2007 for NaviTrack by  doxygen 1.4.6