Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes

itk::fem::LoadTest< TClass > Class Template Reference

Example to show how to define templated load classes. More...

#include <itkFEMLoadTest.h>

Inheritance diagram for itk::fem::LoadTest< TClass >:
Inheritance graph
[legend]
Collaboration diagram for itk::fem::LoadTest< TClass >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef FEMPArray< SelfArrayType
typedef Self Baseclass
typedef const SelfConstPointer
typedef std::vector
< Element::ConstPointer
ElementPointersVectorType
typedef Element::Float Float
typedef SelfPointer
typedef LoadTest Self
typedef LoadElement Superclass

Public Member Functions

virtual int ClassID () const
virtual Baseclass::Pointer Clone () const
 LoadTest ()
virtual void Read (std::istream &f, void *info)
void Write (std::ostream &f) const

virtual void SetSolution (Solution::ConstPointer)
virtual Solution::ConstPointer GetSolution ()

Static Public Member Functions

static FEMLightObject::Pointer CreateFromStream (std::istream &f, void *info)
static Self::Pointer New ()
static void SkipWhiteSpace (std::istream &f)

Public Attributes

TClass data
int GN

Static Public Attributes

static const int CLID
static const std::string whitespaces

Detailed Description

template<class TClass>
class itk::fem::LoadTest< TClass >

Example to show how to define templated load classes.

Note:
The class must be instantiated, before the object factory can produce more objects of this class. Instantiate the specific derived classes with: "template class LoadTest<...>;" where required.

Definition at line 35 of file itkFEMLoadTest.h.


Member Typedef Documentation

Array class that holds special pointers to the load objects

Definition at line 42 of file itkFEMLoadBase.h.

Store the base class typedef for easy access from derived classes. FEM_CLASS macro also expects this for the FEMOF...

Definition at line 64 of file itkFEMLightObject.h.

template<class TClass >
typedef const Self* itk::fem::LoadTest< TClass >::ConstPointer

Const pointer or SmartPointer to an object.

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

Type of array of pointers to element objects

Definition at line 54 of file itkFEMLoadElementBase.h.

Float type used in Element and derived classes

Reimplemented in itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >, and itk::fem::ImageMetricLoad< TMoving, TFixed >.

Definition at line 49 of file itkFEMLoadElementBase.h.

template<class TClass >
typedef Self* itk::fem::LoadTest< TClass >::Pointer

Pointer or SmartPointer to an object.

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

template<class TClass >
typedef LoadTest itk::fem::LoadTest< TClass >::Self

Standard Self typedef.

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

template<class TClass >
typedef LoadElement itk::fem::LoadTest< TClass >::Superclass

Standard Superclass typedef.

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.


Constructor & Destructor Documentation

template<class TClass >
itk::fem::LoadTest< TClass >::LoadTest (  )  [inline]

Default constructor

Definition at line 43 of file itkFEMLoadTest.h.


Member Function Documentation

template<class TClass >
virtual int itk::fem::LoadTest< TClass >::ClassID (  )  const [inline, virtual]

Virtual function to access the class ID

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

template<class TClass >
virtual Baseclass::Pointer itk::fem::LoadTest< TClass >::Clone (  )  const [virtual]

Create a new object from the existing one

Reimplemented from itk::fem::LoadElement.

static FEMLightObject::Pointer itk::fem::FEMLightObject::CreateFromStream ( std::istream &  f,
void *  info 
) [static, inherited]

Read object of any derived type from stream.

This static function creates an object of a class, which is derived from FEMLightObject. The class of object is first determined from the stream, then the object of that class is constructed using the FEMObjectFactory. Finally the data for this object is read from the stream, by calling the Read() member function.

virtual Solution::ConstPointer itk::fem::Load::GetSolution (  )  [inline, virtual, inherited]

Sets the pointer to solution vector. This function is automatically called by the Solver class on every load object.

Some types of external Loads may need access to previous values of solution vector. If a derived class needs that, it should implement this function, and store the passed pointer accordingly. If the result vector is not required, the functionn should be left unimplemented, so that only the dummy implementation in base class is called.

Parameters:
ptr Pointer to the object of Solution class.

Reimplemented in itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >, itk::fem::ImageMetricLoad< TMoving, TFixed >, and itk::fem::LoadLandmark.

Definition at line 57 of file itkFEMLoadBase.h.

template<class TClass >
static Self::Pointer itk::fem::LoadTest< TClass >::New ( void   )  [inline, static]

Object creation in an itk compatible way

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

template<class TClass >
virtual void itk::fem::LoadTest< TClass >::Read ( std::istream &  f,
void *  info 
) [inline, virtual]

pointers to element objects on which the load acts

Reimplemented from itk::fem::LoadElement.

Definition at line 50 of file itkFEMLoadTest.h.

References itk::fem::LoadElement::Read().

virtual void itk::fem::Load::SetSolution ( Solution::ConstPointer   )  [inline, virtual, inherited]

Sets the pointer to solution vector. This function is automatically called by the Solver class on every load object.

Some types of external Loads may need access to previous values of solution vector. If a derived class needs that, it should implement this function, and store the passed pointer accordingly. If the result vector is not required, the functionn should be left unimplemented, so that only the dummy implementation in base class is called.

Parameters:
ptr Pointer to the object of Solution class.

Reimplemented in itk::fem::FiniteDifferenceFunctionLoad< TMoving, TFixed >, itk::fem::ImageMetricLoad< TMoving, TFixed >, and itk::fem::LoadLandmark.

Definition at line 56 of file itkFEMLoadBase.h.

static void itk::fem::FEMLightObject::SkipWhiteSpace ( std::istream &  f  )  [static, inherited]

Helper function that skips all the whitespace and comments in an input stream.

template<class TClass >
void itk::fem::LoadTest< TClass >::Write ( std::ostream &  f  )  const [inline, virtual]

Write an object to the output stream. Call this member to write the data members in the current object to the output stream. Here we also need to know which derived class we actually are, so that we can write the class name. The class name is obtained by calling the virtual ClassID() member function and passing the result to the FEMObjectFactory.

Implementations of Write member funtion in derived classes should first call the parent's implementation of Write and finaly write whatever they need.

Reimplemented from itk::fem::LoadElement.

Definition at line 54 of file itkFEMLoadTest.h.

References itk::fem::LoadElement::Write().


Member Data Documentation

template<class TClass >
int itk::fem::LoadTest< TClass >::CLID [static]

Class ID for FEM object factory

Reimplemented from itk::fem::LoadElement.

Definition at line 37 of file itkFEMLoadTest.h.

template<class TClass >
TClass itk::fem::LoadTest< TClass >::data

Some data that this load defines.

Definition at line 48 of file itkFEMLoadTest.h.

Global number of an object (ID of an object) In general the ID's are required to be unique only within a specific type of derived classes (Elements, Nodes, ...) If the GN is not required, it can be ignored. (normally you need the GN when writing or reading objects to/from stream.

Definition at line 165 of file itkFEMLightObject.h.

Referenced by itk::fem::FEMLightObject::FEMLightObject().

const std::string itk::fem::FEMLightObject::whitespaces [static, inherited]

Const string of all whitespace characters. This string is used by SkipWhiteSpace function.

Definition at line 135 of file itkFEMLightObject.h.


The documentation for this class was generated from the following file:

Generated at Tue Jul 13 2010 03:59:15 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000