#include "Component/ModelManager.H"
#include "Image/Image.H"
#include "Psycho/PsychoDisplay.H"
#include "Psycho/EyeTrackerConfigurator.H"
#include "Psycho/EyeTracker.H"
#include "Psycho/PsychoOpts.H"
#include "Component/EventLog.H"
#include "Component/ComponentOpts.H"
#include "Raster/Raster.H"
#include "Util/MathFunctions.H"
#include "Util/Types.H"
#include "GameBoard/basic-graphics.H"
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <vector>
#include <string>
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <SDL/SDL_mixer.h>
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <time.h>
#include "Image/DrawOps.H"
#include "GameBoard/resize.h"
#include <fstream>
#include <set>
#include <algorithm>
#include <ctime>
Go to the source code of this file.
Functions | |
nub::soft_ref< PsychoDisplay > | d (new PsychoDisplay(manager)) |
template<class T > | |
std::string | stringify (T i) |
int | pickOne (int l) |
double | getAvarage (vector< long > v) |
double | getVariance (vector< long > v) |
bool | itIsInThere (int x, vector< int > bag) |
string | ascSort (string st) |
string | desSort (string st) |
string | getARandomString (uint l, string alphabet="0123456789") |
string | digitMemorizationTask (uint l, string alphabet="0123456789", int displayFrame=10) |
void | scramble (vector< string > &v) |
void | scramble (vector< int > &v) |
SDL_Surface * | getButtonImage (string label, PixRGB< byte > txtcolor=PixRGB< byte >(0, 0, 0), PixRGB< byte > bgcolor=PixRGB< byte >(255, 255, 255), Point2D< int > size=Point2D< int >(100, 100), PixRGB< byte > bordercolor=PixRGB< byte >(0, 0, 0), int border=3) |
SDL_Surface * | getKeyPad (string alphabet, map< string, SDL_Rect > &buttmap) |
string | getPressedButtonCommand (map< string, SDL_Rect > &buttmap, Point2D< int > offset=Point2D< int >(0, 0)) |
string | getDigitSequenceFromSubject (string alphabet="0123456789", uint maxl=7, string message="") |
bool | isAnswerCorrect (string test, string answer, int mode) |
int | addArgument (const string st, const string delim="=") |
std::string | getArgumentValue (string arg) |
vector< int > | spatial_memory_task (int onsetTime, int isd, int rad=100, int ma=45, int Ma=90) |
vector< int > | getA2NonRepeatingSeqence (int numOfElements, int lenght) |
vector< int > | getA2RepeatingSequence (int numOfElements, int length) |
vector< int > | getA1NonRepeatingSeqence (int numOfElements, int lenght) |
vector< int > | getA1RepeatingSequence (int numOfElements, int length) |
vector< int > | getNonRepeatingSeqenceForPassiveTest (int numOfElements, int lenght) |
vector< int > | getRepeatingSeqenceForPassiveTest (int numOfElements, int lenght) |
int | playTone (Mix_Music *tone) |
int | spatial_memory_retrival (vector< int > angles, int rad=100) |
std::string | getUsageComment () |
int | main (const int argc, char **argv) |
Variables | |
ModelManager | manager ("Psycho-Spatial-nback") |
map< uint, uint > | testMap |
map< string, string > | argMap |
map< string, vector< SDL_Rect * > * > | clipsmap |
Psychophysics test to measure the effect of executive tasks on spatial memory
Definition in file psycho-spatial-nback.C.