ITK  4.9.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 "ITKFEMExport.h"
24 #include "vnl/vnl_vector.h"
25 
26 namespace itk
27 {
28 namespace fem
29 {
36 class ITKFEM_EXPORT LoadPoint : public LoadElement
37 {
38 public:
39 
41  typedef LoadPoint Self;
45 
47  itkSimpleNewMacro(Self);
48 
50  itkTypeMacro(LoadPoint, LoadElement);
51 
54  virtual::itk::LightObject::Pointer CreateAnother(void) const ITK_OVERRIDE;
55 
60  m_Point(2), m_ForcePoint(2)
61  {
62 
64  }
65 
69  void SetPoint(const vnl_vector<Float> p);
70 
74  vnl_vector<Float> GetPoint();
75 
79  void SetForce(const vnl_vector<Float> f);
80 
84  vnl_vector<Float> GetForce();
85 
87  virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe) ITK_OVERRIDE;
88 
89 protected:
90 
91  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
92 
96  vnl_vector<Float> m_Point;
97 
101  vnl_vector<Float> m_ForcePoint;
102 
103 };
104 
105 }
106 } // end namespace itk::fem
107 
108 #endif // #ifndef itkFEMLoadPoint_h
This load is applied on a point in an element.
Light weight base class for most itk classes.
vnl_vector< Float > m_ForcePoint
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
vnl_vector< Float > VectorType
Virtual element load base class.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
LoadElement Superclass
vnl_vector< Float > m_Point