Orfeo Toolbox  3.16
Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
itk::fem::LoadImplementationGenericBodyLoad Class Reference

Class that holds a templated generic body load implementation. More...

#include <itkFEMLoadImplementationGenericBodyLoad.h>

Static Public Member Functions

template<class TElementClassConstPointer >
static void HandleLoad (TElementClassConstPointer e, Element::LoadPointer l, Element::VectorType &Fe)
 

Private Member Functions

 LoadImplementationGenericBodyLoad ()
 

Static Private Member Functions

static void Implementation (Element::ConstPointer element, LoadGrav::Pointer load, Element::VectorType &Fe)
 

Detailed Description

Class that holds a templated generic body load implementation.

The only accessable part of this class is a static function HandleLoad. This is the function that should be passed to the VisitorDispatcher when registering a load with the element class. The function is templated over the a pointer to an element class, and can therefore be registered with any element class.

Function HandleLoad is declared within a class only to avoid problems with MS compiler. The real gravity load implementation is in static member function Implementation, which is automatically called within HandleLoad function.

Note
Declare any additional general implementations of loads in a\ similar way as here.

Definition at line 45 of file itkFEMLoadImplementationGenericBodyLoad.h.

Constructor & Destructor Documentation

itk::fem::LoadImplementationGenericBodyLoad::LoadImplementationGenericBodyLoad ( )
private

Private constructor prohibits creation of objects of this class

Member Function Documentation

template<class TElementClassConstPointer >
static void itk::fem::LoadImplementationGenericBodyLoad::HandleLoad ( TElementClassConstPointer  e,
Element::LoadPointer  l,
Element::VectorType Fe 
)
inlinestatic

Template parameter should be a const pointer type pointing to a class that is derived from the Element base class. The template parameter is normally automatically determined.

FIXME: Add concept checking.

Definition at line 56 of file itkFEMLoadImplementationGenericBodyLoad.h.

References Implementation().

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

void itk::fem::LoadImplementationGenericBodyLoad::Implementation ( Element::ConstPointer  element,
LoadGrav::Pointer  load,
Element::VectorType Fe 
)
staticprivate

Handle LoadGrav in element by integrating over the element domain. This implementation requires that the element has the shape functions and integration routines defined.

It is also assumed, that element's local DOFs are numbered with respect to node ID. If this is not the case, you should not use this function.

Definition at line 38 of file itkFEMLoadImplementationGenericBodyLoad.cxx.

References itk::fem::Element::GetGlobalFromLocalCoordinates(), itk::fem::Element::GetIntegrationPointAndWeight(), itk::fem::Element::GetNumberOfDegreesOfFreedom(), itk::fem::Element::GetNumberOfDegreesOfFreedomPerNode(), itk::fem::Element::GetNumberOfIntegrationPoints(), itk::fem::Element::GetNumberOfNodes(), itk::fem::Element::JacobianDeterminant(), and itk::fem::Element::ShapeFunctions().

Referenced by HandleLoad().


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

Generated at Sun May 19 2013 03:02:16 for Orfeo Toolbox with doxygen 1.8.3.1