ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkFEMLoadBC.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 #ifndef __itkFEMLoadBC_h
00019 #define __itkFEMLoadBC_h
00020 
00021 #include "itkFEMLoadBase.h"
00022 
00023 namespace itk
00024 {
00025 namespace fem
00026 {
00034 class LoadBC : public Load
00035 {
00036 public:
00037 
00039   typedef LoadBC                   Self;
00040   typedef Load                     Superclass;
00041   typedef SmartPointer<Self>       Pointer;
00042   typedef SmartPointer<const Self> ConstPointer;
00043 
00045   itkSimpleNewMacro(Self);
00046 
00048   itkTypeMacro(LoadBC, Load);
00049 
00052   virtual::itk::LightObject::Pointer CreateAnother(void) const;
00053 
00055   LoadBC() : m_DegreeOfFreedom(0), m_Value()
00056   {
00057   }
00058 
00060   void SetDegreeOfFreedom(int dof);
00061 
00063   int GetDegreeOfFreedom() const;
00064 
00066   void SetValue(const vnl_vector<Element::Float> val);
00067 
00069   vnl_vector<Element::Float> GetValue() const;
00070 
00071 protected:
00072   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00073 
00077   unsigned int m_DegreeOfFreedom;
00078 
00087   vnl_vector<Element::Float> m_Value;
00088 };
00089 
00090 }
00091 }  // end namespace itk::fem
00092 
00093 #endif // #ifndef __itkFEMLoadBC_h
00094