ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkFEMLoadEdge.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 itkFEMLoadEdge_h
20 #define itkFEMLoadEdge_h
21 
22 #include "itkFEMLoadElementBase.h"
23 #include "ITKFEMExport.h"
24 #include "vnl/vnl_matrix.h"
25 
26 namespace itk
27 {
28 namespace fem
29 {
40 class ITKFEM_EXPORT LoadEdge : public LoadElement
41 {
42 public:
43 
45  typedef LoadEdge Self;
49 
51  itkSimpleNewMacro(Self);
52 
54  itkTypeMacro(LoadEdge, LoadElement);
55 
58  virtual::itk::LightObject::Pointer CreateAnother(void) const ITK_OVERRIDE;
59 
63  void SetEdge(int edge);
64 
68  int GetEdge() const;
69 
73  void SetForce(const vnl_matrix<itk::fem::Element::Float> force);
74 
78  const vnl_matrix<itk::fem::Element::Float> & GetForce() const;
79  vnl_matrix<itk::fem::Element::Float> & GetForce();
81 
83  virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe) ITK_OVERRIDE;
84 
85 protected:
86  virtual void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
87 
92  int m_Edge;
93 
110  vnl_matrix<Float> m_Force;
111 };
113 
114 }
115 } // end namespace itk::fem
116 
117 #endif // #ifndef itkFEMLoadEdge_h
SmartPointer< Self > Pointer
Light weight base class for most itk classes.
LoadElement Superclass
SmartPointer< const Self > ConstPointer
A generic load that can be applied to an edge of the element.
Virtual element load base class.
Abstract base element class.
Control indentation during Print() invocation.
Definition: itkIndent.h:49