ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFEMLoadNode.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 itkFEMLoadNode_h
20 #define itkFEMLoadNode_h
21 
22 #include "itkFEMLoadBase.h"
23 #include "ITKFEMExport.h"
24 #include "vnl/vnl_vector.h"
25 
26 namespace itk
27 {
28 namespace fem
29 {
41 class ITKFEM_EXPORT LoadNode : public Load
42 {
43 public:
44 
46  typedef LoadNode Self;
47  typedef Load Superclass;
50 
52  itkSimpleNewMacro(Self);
53 
55  itkTypeMacro(LoadNode, Load);
56 
58 
62  void SetForce(const vnl_vector<Float> force);
63 
67  vnl_vector<Float> GetForce() const;
68 
72  void SetNode(int num);
73 
77  int GetNode() const;
78 
80  m_Point(0)
81  {
82  } // default constructor
83  LoadNode(Element::ConstPointer element_, unsigned int pt_, vnl_vector<Float> F_) :
84  m_Point(pt_), m_Force(F_)
85  {
86  this->m_Element = element_;
87  }
88 
91  virtual::itk::LightObject::Pointer CreateAnother(void) const ITK_OVERRIDE;
92 
93 protected:
94 
95  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
96 
100  unsigned int m_Point;
101 
106  vnl_vector<Float> m_Force;
107 };
108 
109 }
110 } // end namespace itk::fem
111 
112 #endif // #ifndef itkFEMLoadDOF_h
Light weight base class for most itk classes.
SmartPointer< const Self > ConstPointer
Element::Node::Float Float
SmartPointer< Self > Pointer
LoadNode(Element::ConstPointer element_, unsigned int pt_, vnl_vector< Float > F_)
Control indentation during Print() invocation.
Definition: itkIndent.h:49
General abstract load base class.
This load is applied on a specific point within the system.