go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Namespaces | Defines
elxElastixTemplate.h File Reference

Go to the source code of this file.

Data Structures

class  elastix::ElastixTemplate< TFixedImage, TMovingImage >
 The main elastix class, which connects components and invokes the BeforeRegistration(), BeforeEachResolution(), etc. methods. More...

Namespaces

namespace  elastix

Defines

#define elxGetBaseMacro(_name, _elxbasetype)

Define Documentation

#define elxGetBaseMacro (   _name,
  _elxbasetype 
)
Value:
virtual _elxbasetype * GetElx##_name##Base (void) const \
  { \
    return this->GetElx##_name##Base( 0 );\
  }\
  _elxbasetype * GetElx##_name##Base ( unsigned int idx ) const \
  { \
    if ( idx < this->GetNumberOf##_name##s() ) \
    { \
      return dynamic_cast<_elxbasetype *>( \
        this->Get##_name##Container()->ElementAt(idx).GetPointer() );\
    } \
    return 0; \
  }

Macro that defines to functions. In the case of _name = Metric and _elxBaseType = MetricBaseType this results in: MetricBaseType * GetElxMetricBase(void) const; MetricBaseType * GetElxMetricBase(unsigned int idx) const;

The first function simply calls the second with argument = 0. The second retrieves the metric component from the MetricContainer and casts it to a MetricBaseType*;

This macro is #undef'ed at the end of this header file.

Definition at line 57 of file elxElastixTemplate.h.



Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo