ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkFEMLoadPoint.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 
19 #ifndef __itkFEMLoadPoint_h
20 #define __itkFEMLoadPoint_h
21 
22 #include "itkFEMLoadElementBase.h"
23 #include "vnl/vnl_vector.h"
24 
25 namespace itk
26 {
27 namespace fem
28 {
35 class LoadPoint : public LoadElement
36 {
37 public:
38 
40  typedef LoadPoint Self;
44 
46  itkSimpleNewMacro(Self);
47 
49  itkTypeMacro(LoadPoint, LoadElement);
50 
53  virtual::itk::LightObject::Pointer CreateAnother(void) const;
54 
59  m_Point(2), m_ForcePoint(2)
60  {
61 
63  }
64 
68  void SetPoint(const vnl_vector<Float> p);
69 
74 
78  void SetForce(const vnl_vector<Float> f);
79 
84 
86  virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe);
87 
88 protected:
89 
90  virtual void PrintSelf(std::ostream& os, Indent indent) const;
91 
96 
101 
102 };
103 
104 }
105 } // end namespace itk::fem
106 
107 #endif // #ifndef __itkFEMLoadPoint_h
108