NIREP

NIREPEvaluator Class Reference

NIREPEvalulator is responsible for communicating with the widgets and with the datamanager. More...

Collaboration diagram for NIREPEvaluator:

List of all members.

Public Member Functions

NIREPDataManagerGetDataManager ()
vtkImageData * GetImage (Panel *p, const std::string &command, DisplayDescription *displayDescription)
unsigned long GetMemoryUsage ()
gec::ObjectMap * GetObjectMap (Panel *p, const std::string &command, DisplayDescription *displayDescription)
 method for the widget to request an object map
gec::SpatialData * GetSpatialData (const std::string &command, DisplayDescription *displayDescription)
 method for the widget to request a generic SpatialData
 NIREPEvaluator (NIREPDataManager *dm)
 NIREPEvaluator (void)
 Class constructor.
gec::SpatialData * ReadSpatialData (const std::string &datasetID, const std::string &dataID, DisplayDescription *displayDescription)
 reads image data from database
gec::SpatialData * ReadTransformation (const std::string &source, const std::string &target, const std::string &transformation, DisplayDescription *displayDescription)
 reads transformation data from database
gec::SpatialData * TransformGrid (const std::string &transformID, DisplayDescription *displayDescription)
gec::SpatialData * VectorField (const std::string &transformID, DisplayDescription *displayDescription)
 ~NIREPEvaluator (void)
 Class destructor.

Detailed Description

NIREPEvalulator is responsible for communicating with the widgets and with the datamanager.

It also maintains several lists and tables vital to NIREP:

  • eList: the evaluator list (human-readable), stored as a map
  • pList: the processor list (non-human-readable and generated by the eList, on demand)
Notes
  • Work in progress
Dependencies
Bugs
  • None
Change Log
  • Cleaned up code, switched to evaluator list. -ker, 25/5/09
  • Added diff function. - ker, 23/5/09 -This is annoying, but I added a new constructor with the dataManager being passed in. - Jeffrey Hawley 04/20/2009
  • Split out EvaluatorList functionality. - ker, 26/3/09
  • Added unwrap(src) function, documentation. - ker, 24/2/09
  • Added parse(src, fcn, params) function. - ker, 20/2/09

Constructor & Destructor Documentation

NIREPEvaluator::NIREPEvaluator ( void  )

Class constructor.

Class constructor that initializes the data manager.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NIREPEvaluator::NIREPEvaluator ( NIREPDataManager dm)
NIREPEvaluator::~NIREPEvaluator ( void  )

Class destructor.


Member Function Documentation

NIREPDataManager* NIREPEvaluator::GetDataManager ( ) [inline]
vtkImageData* NIREPEvaluator::GetImage ( Panel p,
const std::string &  command,
DisplayDescription displayDescription 
) [inline]
unsigned long NIREPEvaluator::GetMemoryUsage ( ) [inline]
NIREPEvaluator::GetObjectMap ( Panel p,
const std::string &  command,
DisplayDescription displayDescription 
) [inline]

method for the widget to request an object map

Parameters:
exprstd::string containing the abbreviation or expression to be retrieved (ex: _A3)
Returns:
gec::ObjectMap* containing the desired object map data
Note:
Will be turned into a void when p->Update() has been created
NIREPEvaluator::GetSpatialData ( const std::string &  command,
DisplayDescription displayDescription 
) [inline]

method for the widget to request a generic SpatialData

Parameters:
exprstd::string containing the abbreviation or expression to be retrieved (ex: _A3)
Returns:
gec::SpatialData* containing the desired spatial data
NIREPEvaluator::ReadSpatialData ( const std::string &  datasetID,
const std::string &  dataID,
DisplayDescription displayDescription 
)

reads image data from database

Parameters:
datasetIDstd::string containing the ID of the dataset (ex: "1")
dataIDstd::string containing the ID of the data (ex: "MRI")
Return values:
gec::SpatialData*pointer of image data
gec::SpatialData * NIREPEvaluator::ReadTransformation ( const std::string &  source,
const std::string &  target,
const std::string &  transformation,
DisplayDescription displayDescription 
)

reads transformation data from database

Parameters:
sourcestd::string containing the name of the source (ex: "1")
targetstd::string containing the name of the target (ex: "2")
transformationstd::string containing the name of the transformation (ex: "SICLE_param1")
Return values:
gec::SpatialData*pointer of transformation data
gec::SpatialData * NIREPEvaluator::TransformGrid ( const std::string &  transformID,
DisplayDescription displayDescription 
)
gec::SpatialData * NIREPEvaluator::VectorField ( const std::string &  transformID,
DisplayDescription displayDescription 
)
 All Classes Functions Variables Typedefs Enumerations Enumerator