ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkFEMLoadEdge.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 
00019 #ifndef __itkFEMLoadEdge_h
00020 #define __itkFEMLoadEdge_h
00021 
00022 #include "itkFEMLoadElementBase.h"
00023 #include "vnl/vnl_matrix.h"
00024 
00025 namespace itk
00026 {
00027 namespace fem
00028 {
00039 class LoadEdge : public LoadElement
00040 {
00041 public:
00042 
00044   typedef LoadEdge                 Self;
00045   typedef LoadElement              Superclass;
00046   typedef SmartPointer<Self>       Pointer;
00047   typedef SmartPointer<const Self> ConstPointer;
00048 
00050   itkSimpleNewMacro(Self);
00051 
00053   itkTypeMacro(LoadEdge, LoadElement);
00054 
00057   virtual::itk::LightObject::Pointer CreateAnother(void) const;
00058 
00062   void SetEdge(int edge);
00063 
00067   int GetEdge() const;
00068 
00072   void SetForce(const vnl_matrix<itk::fem::Element::Float> force);
00073 
00077   const vnl_matrix<itk::fem::Element::Float> & GetForce() const;
00078   vnl_matrix<itk::fem::Element::Float> & GetForce();
00080 
00082   virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe);
00083 
00084 protected:
00085   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00086 
00091   int m_Edge;
00092 
00109   vnl_matrix<Float> m_Force;
00110 };
00112 
00113 }
00114 }  // end namespace itk::fem
00115 
00116 #endif // #ifndef __itkFEMLoadEdge_h
00117