ITK  4.13.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 
58  m_Point(2, NumericTraits<Float>::ZeroValue() ),
59  m_ForcePoint(2, NumericTraits<Float>::ZeroValue() )
60  {
61  // Default initialization of 2D point and force vector
62  }
63 
65  void SetPoint(const vnl_vector<Float> p);
66 
68  vnl_vector<Float> GetPoint();
69 
71  void SetForce(const vnl_vector<Float> f);
72 
74  vnl_vector<Float> GetForce();
75 
78  virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe) ITK_OVERRIDE;
79 
80 protected:
81 
82  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
83 
85  vnl_vector<Float> m_Point;
86 
88  vnl_vector<Float> m_ForcePoint;
89 
90 };
91 
92 }
93 } // end namespace itk::fem
94 
95 #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
Define additional traits for native types such as int or float.
LoadElement Superclass
vnl_vector< Float > m_Point