go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Static Public Member Functions
elastix::InstallFunctions< TAnyItkObject > Class Template Reference

#include <elxInstallFunctions.h>

Detailed Description

template<class TAnyItkObject>
class elastix::InstallFunctions< TAnyItkObject >

A class with functions that are used to install elastix components.

In elastix the metric/transform/dimension/pixeltype etc. are all selected at runtime. To make this possible, all components (metric/transform etc) have to compiled for different dimension/pixeltype. The elx::ComponentDatabase stores for each instance and each pixeltype/dimension a pointers to a function that creates a component of the specific type. The InstallFunctions class provides functions that aid in filling the elx::ComponentDatabase. The functions are called when elastix is started. Do not do this directly. Use the elxInstallMacro instead (see elxMacro.h).

See also
ComponentDatabase

Definition at line 46 of file elxInstallFunctions.h.

Public Types

typedef TAnyItkObject AnyItkObjectType
 
typedef ComponentDatabase::ComponentDescriptionType ComponentDescriptionType
 
typedef ComponentDatabase::IndexType IndexType
 
typedef ComponentDatabase::ObjectPointer ObjectPointer
 
typedef ComponentDatabase::ObjectType ObjectType
 
typedef InstallFunctions Self
 

Static Public Member Functions

static ObjectPointer Creator (void)
 
static int InstallComponent (const ComponentDescriptionType &name, IndexType i, ComponentDatabase *cdb)
 

Member Typedef Documentation

◆ AnyItkObjectType

template<class TAnyItkObject >
typedef TAnyItkObject elastix::InstallFunctions< TAnyItkObject >::AnyItkObjectType

Definition at line 52 of file elxInstallFunctions.h.

◆ ComponentDescriptionType

template<class TAnyItkObject >
typedef ComponentDatabase::ComponentDescriptionType elastix::InstallFunctions< TAnyItkObject >::ComponentDescriptionType

The type of the key in the component database (=string)

Definition at line 64 of file elxInstallFunctions.h.

◆ IndexType

template<class TAnyItkObject >
typedef ComponentDatabase::IndexType elastix::InstallFunctions< TAnyItkObject >::IndexType

The type of the index in the component database. Each combination of pixeltype/dimension corresponds a specific number, the index (unsigned int).

Definition at line 61 of file elxInstallFunctions.h.

◆ ObjectPointer

template<class TAnyItkObject >
typedef ComponentDatabase::ObjectPointer elastix::InstallFunctions< TAnyItkObject >::ObjectPointer

Definition at line 56 of file elxInstallFunctions.h.

◆ ObjectType

template<class TAnyItkObject >
typedef ComponentDatabase::ObjectType elastix::InstallFunctions< TAnyItkObject >::ObjectType

The baseclass of all objects that are returned by the Creator.

Definition at line 55 of file elxInstallFunctions.h.

◆ Self

template<class TAnyItkObject >
typedef InstallFunctions elastix::InstallFunctions< TAnyItkObject >::Self

Standard.

Definition at line 51 of file elxInstallFunctions.h.

Member Function Documentation

◆ Creator()

template<class TAnyItkObject >
static ObjectPointer elastix::InstallFunctions< TAnyItkObject >::Creator ( void  )
inlinestatic

A wrap around the New() functions of itkObjects.

Definition at line 67 of file elxInstallFunctions.h.

◆ InstallComponent()

template<class TAnyItkObject >
static int elastix::InstallFunctions< TAnyItkObject >::InstallComponent ( const ComponentDescriptionType name,
IndexType  i,
ComponentDatabase cdb 
)
inlinestatic

This function places the address of the New() function of AnyItkObjectType in the ComponentDatabase. Returns 0 in case of no errors.

Definition at line 76 of file elxInstallFunctions.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo