#include "Component/ModelManager.H"
#include "Image/CutPaste.H"
#include "Image/DrawOps.H"
#include "Image/FilterOps.H"
#include "Image/Image.H"
#include "Image/Kernels.H"
#include "Psycho/PsychoDisplay.H"
#include "GUI/GUIOpts.H"
#include "Psycho/Staircase.H"
#include "Raster/Raster.H"
#include "Util/MathFunctions.H"
#include "Util/Timer.H"
#include <deque>
#include <fstream>
Go to the source code of this file.
Classes | |
struct | PsychoTask |
A summary struct to handle task settings. More... | |
Defines | |
#define | GABORSD 15.0F |
#define | GABORPER 15.0F |
#define | NFSETUP 12*60 |
#define | NFINIT 36 |
#define | NFSTIM 37 |
#define | NFIPI 15 |
#define | NFISI 55 |
#define | NTRIAL 12 |
Enumerations | |
enum | TaskType { None = 0, Orientation = 1, Drift = 2, Blank = 3 } |
Types of tasks. More... | |
Functions | |
void | parseTaskDefinition (const std::string &arg, PsychoTask &p, const std::string name) |
Parse task definitions given at command line. | |
int | main (const int argc, char **argv) |
Psychophysics display. | |
Variables | |
const bool | blocking = false |
Set this to true if you want to block until responses are given. | |
bool | shadow = true |
Set this to true if you want to add drop shadows. |
Psychophysics display
Definition in file psycho-obfba2.C.
enum TaskType |
Types of tasks.
Definition at line 91 of file psycho-obfba2.C.
int main | ( | const int | argc, | |
char ** | argv | |||
) |
Psychophysics display.
Definition at line 166 of file psycho-obfba2.C.
References ModelComponent::addSubComponent(), blocking, Image< T >::clear(), drawCross(), Timer::get(), Image< T >::getDims(), ModelManager::getExtraArg(), Image< T >::getHeight(), Timer::getReset(), Image< T >::getWidth(), Point2D< T >::i, inplacePaste(), MC_RECURSE, MYLOGVERB, NO_INIT, ModelManager::parseCommandLine(), parseTaskDefinition(), randomDouble(), randomUpToIncluding(), Raster::ReadRGB(), REPORT_CURRENT_EXCEPTION, Timer::reset(), nub::soft_ref< T >::reset(), ModelManager::setOptionValString(), ModelComponent::start(), and ModelComponent::stop().
void parseTaskDefinition | ( | const std::string & | arg, | |
PsychoTask & | p, | |||
const std::string | name | |||
) |
Parse task definitions given at command line.
Definition at line 103 of file psycho-obfba2.C.
Referenced by main().
const bool blocking = false |
Set this to true if you want to block until responses are given.
Definition at line 85 of file psycho-obfba2.C.
Referenced by KeyBoard::getKey(), KeyBoard::getKeyAsChar(), KeyBoard::KeyBoard(), and main().
bool shadow = true |
Set this to true if you want to add drop shadows.
Definition at line 88 of file psycho-obfba2.C.