mial::Beh_TranslateAll< Type, nDims > Class Template Reference

#include <Beh_TranslateAll.h>

Inheritance diagram for mial::Beh_TranslateAll< Type, nDims >:

mial::Behavior< Type, nDims > List of all members.

Public Types

typedef Beh_TranslateAll Self
typedef itk::SmartPointer<
Self
Pointer
typedef itk::SmartPointer<
const Self
ConstPointer
typedef itk::WeakPointer<
const Self
ConstWeakPointer
typedef Behavior< Type, nDims
>::Error 
Error

Public Member Functions

virtual bool run (typename Behavior< Type, nDims >::behaviorIn *i, std::stringstream *s)
bool isFinished ()
virtual bool update ()
 Public pure virtual function. This method allows behaviors to run in multiple stages.
virtual void cleanUp ()
 Public pure virtual function. Method of cleaning up after the behavior.

Public Attributes

double startTime
 Internal recording of when the behavior started running.
double endTime
 Internal recording of when the behavior is set to end.

Protected Member Functions

 Beh_TranslateAll ()

Protected Attributes

behaviorIn::Pointer input
 A pointer for the input.

Classes

struct  behaviorIn
 A structure defining the inputs for the behavior. More...

Detailed Description

template<class Type, int nDims>
class mial::Beh_TranslateAll< Type, nDims >

A derived class of the behavioral ABC this class performs a translation with user provided direction and magnitude of the organism. The power of the framework is demonstrated here in that by eliciting its attached physics layer's translate deformation this behavior may be performed on any physics layer providing that deformation.

This behavior does not have any sub-behaviors.

Parameters:
Type the internal type used for storage
nDims the number of dimensions

Definition at line 26 of file Beh_TranslateAll.h.


Member Function Documentation

template<class Type, int nDims>
void mial::Beh_TranslateAll< Type, nDims >::cleanUp (  )  [virtual]

Public pure virtual function. Method of cleaning up after the behavior.

Since behaviors may be ran multiple times before being destructed they must provide a method to clean up for the next run. This method will be ran after the behavior asserts itself as finished.

Implements mial::Behavior< Type, nDims >.

Definition at line 71 of file Beh_TranslateAll.cxx.

References mial::Beh_TranslateAll< Type, nDims >::endTime, and mial::Beh_TranslateAll< Type, nDims >::startTime.

template<class Type, int nDims>
bool mial::Beh_TranslateAll< Type, nDims >::update (  )  [virtual]

Public pure virtual function. This method allows behaviors to run in multiple stages.

This method will be ran after the run method, until the isFinished() returns true.

Implements mial::Behavior< Type, nDims >.

Definition at line 58 of file Beh_TranslateAll.cxx.

References mial::Beh_TranslateAll< Type, nDims >::input, mial::Behavior< Type, nDims >::physLayer, and mial::Physics< Type, nDims, MType, VType >::runDeformation().


The documentation for this class was generated from the following files:
Generated on Wed Jul 19 13:05:22 2006 for IDO by  doxygen 1.4.7