#include <Neuro/SimulationViewer.H>
Public Member Functions | |
Constructors and destructors | |
SimulationViewerAdapter (OptionManager &mgr, const std::string &descrName="Simulation Viewer", const std::string &tagName="SimulationViewerAdapter") | |
Constructor. See ModelComponent.H. | |
virtual | ~SimulationViewerAdapter () |
Destructor. | |
Protected Member Functions | |
SIMCALLBACK_DECLARE (SimulationViewerAdapter, SimEventRetinaImage) | |
Callback for when a new retina image is available. | |
SIMCALLBACK_DECLARE (SimulationViewerAdapter, SimEventWTAwinner) | |
Callback for when a new attention shift occurs. | |
virtual void | reset1 () |
Reset SimulationViewerStd. | |
virtual void | doEventRetinaImage (SimEventQueue &q, rutz::shared_ptr< SimEventRetinaImage > &e) |
so derived classes can process retinal images | |
virtual void | doEventWTAwinner (SimEventQueue &q, rutz::shared_ptr< SimEventWTAwinner > &e) |
Image< float > | inverseRetinal (const Image< float > &ret_image) const |
inverse a space variant transformed retinal image | |
virtual Image< float > | inverseMap (const Image< float > &map_image) const |
inverse a space variant transformed map | |
void | toRetinal (Point2D< int > &point) const |
put a point in retinal coords | |
void | fromRetinal (Point2D< int > &point) const |
get a point from retinal coords | |
void | fromRetinalMap (Point2D< int > &point) const |
get a point from retinal coords at the map level | |
Protected Attributes | |
OModelParam< bool > | itsInverseRetinal |
should we inverse our transforms for display | |
Image< PixRGB< byte > > | itsInput |
WTAwinner | itsCurrFOA |
WTAwinner | itsPrevFOA |
nub::ref< SpaceVariantModule > | itsTransform |
hold potential transforms |
Its simulation viewer that implements some basic catching of events and inverse transforms non-cartesian retinal images for display if necessary
Definition at line 105 of file SimulationViewer.H.
SimulationViewerAdapter::SimulationViewerAdapter | ( | OptionManager & | mgr, | |
const std::string & | descrName = "Simulation Viewer" , |
|||
const std::string & | tagName = "SimulationViewerAdapter" | |||
) |
Constructor. See ModelComponent.H.
mgr | our ModelManager (see ModelManager.H) | |
descrName | descriptive name for human usage | |
tagName | name for ParamMap usage |
Definition at line 124 of file SimulationViewer.C.
References ModelComponent::addSubComponent(), and itsTransform.
virtual SimulationViewerAdapter::~SimulationViewerAdapter | ( | ) | [inline, virtual] |
Destructor.
Definition at line 120 of file SimulationViewer.H.
virtual void SimulationViewerAdapter::doEventRetinaImage | ( | SimEventQueue & | q, | |
rutz::shared_ptr< SimEventRetinaImage > & | e | |||
) | [inline, protected, virtual] |
so derived classes can process retinal images
Reimplemented in SimulationViewerEyeMvtNeuro, and SimulationViewerStd.
Definition at line 142 of file SimulationViewer.H.
void SimulationViewerAdapter::fromRetinal | ( | Point2D< int > & | point | ) | const [protected] |
get a point from retinal coords
Definition at line 217 of file SimulationViewer.C.
References OModelParam< T >::getVal(), itsInverseRetinal, and itsTransform.
void SimulationViewerAdapter::fromRetinalMap | ( | Point2D< int > & | point | ) | const [protected] |
get a point from retinal coords at the map level
Definition at line 224 of file SimulationViewer.C.
References OModelParam< T >::getVal(), itsInverseRetinal, and itsTransform.
Image< float > SimulationViewerAdapter::inverseMap | ( | const Image< float > & | map_image | ) | const [protected, virtual] |
inverse a space variant transformed map
Reimplemented from SimulationViewer.
Definition at line 188 of file SimulationViewer.C.
References OModelParam< T >::getVal(), itsInverseRetinal, and itsTransform.
Referenced by SimulationViewerStd::drawMegaCombo(), SimulationViewerStd::getMegaComboMaps(), and SimulationViewerStd::getTraj().
Image< float > SimulationViewerAdapter::inverseRetinal | ( | const Image< float > & | ret_image | ) | const [protected] |
inverse a space variant transformed retinal image
Definition at line 199 of file SimulationViewer.C.
References OModelParam< T >::getVal(), itsInverseRetinal, and itsTransform.
void SimulationViewerAdapter::reset1 | ( | ) | [protected, virtual] |
Reset SimulationViewerStd.
See the base function in ModelComponent.H for info.
Reimplemented from ModelComponent.
Reimplemented in SimulationViewerStd.
Definition at line 140 of file SimulationViewer.C.
References Image< T >::freeMem(), and itsTransform.
SimulationViewerAdapter::SIMCALLBACK_DECLARE | ( | SimulationViewerAdapter | , | |
SimEventWTAwinner | ||||
) | [protected] |
Callback for when a new attention shift occurs.
SimulationViewerAdapter::SIMCALLBACK_DECLARE | ( | SimulationViewerAdapter | , | |
SimEventRetinaImage | ||||
) | [protected] |
Callback for when a new retina image is available.
void SimulationViewerAdapter::toRetinal | ( | Point2D< int > & | point | ) | const [protected] |
put a point in retinal coords
Definition at line 210 of file SimulationViewer.C.
References itsTransform.
OModelParam<bool> SimulationViewerAdapter::itsInverseRetinal [protected] |
should we inverse our transforms for display
Definition at line 131 of file SimulationViewer.H.
Referenced by fromRetinal(), fromRetinalMap(), inverseMap(), and inverseRetinal().
hold potential transforms
Definition at line 163 of file SimulationViewer.H.
Referenced by fromRetinal(), fromRetinalMap(), inverseMap(), inverseRetinal(), reset1(), SimulationViewerAdapter(), and toRetinal().