ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkFEMLoadBC.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkFEMLoadBC_h
19 #define itkFEMLoadBC_h
20 
21 #include "itkFEMLoadBase.h"
22 #include "ITKFEMExport.h"
23 
24 namespace itk
25 {
26 namespace fem
27 {
35 class ITKFEM_EXPORT LoadBC : public Load
36 {
37 public:
38 
40  typedef LoadBC Self;
41  typedef Load Superclass;
44 
46  itkSimpleNewMacro(Self);
47 
49  itkTypeMacro(LoadBC, Load);
50 
53  virtual::itk::LightObject::Pointer CreateAnother(void) const ITK_OVERRIDE;
54 
56  LoadBC() : m_DegreeOfFreedom(0), m_Value()
57  {
58  }
59 
61  void SetDegreeOfFreedom(int dof);
62 
64  int GetDegreeOfFreedom() const;
65 
67  void SetValue(const vnl_vector<Element::Float> val);
68 
70  vnl_vector<Element::Float> GetValue() const;
71 
72 protected:
73  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
74 
78  unsigned int m_DegreeOfFreedom;
79 
88  vnl_vector<Element::Float> m_Value;
89 };
90 
91 }
92 } // end namespace itk::fem
93 
94 #endif // #ifndef itkFEMLoadBC_h
Light weight base class for most itk classes.
Generic essential (Dirichlet) boundary conditions.
Definition: itkFEMLoadBC.h:35
unsigned int m_DegreeOfFreedom
Definition: itkFEMLoadBC.h:78
vnl_vector< Element::Float > m_Value
Definition: itkFEMLoadBC.h:88
Control indentation during Print() invocation.
Definition: itkIndent.h:49
General abstract load base class.
SmartPointer< const Self > ConstPointer
Definition: itkFEMLoadBC.h:43
SmartPointer< Self > Pointer
Definition: itkFEMLoadBC.h:42