ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkFEMLoadNode.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 
00019 #ifndef __itkFEMLoadNode_h
00020 #define __itkFEMLoadNode_h
00021 
00022 #include "itkFEMLoadBase.h"
00023 #include "vnl/vnl_vector.h"
00024 
00025 namespace itk
00026 {
00027 namespace fem
00028 {
00040 class LoadNode : public Load
00041 {
00042 public:
00043 
00045   typedef LoadNode                 Self;
00046   typedef Load                     Superclass;
00047   typedef SmartPointer<Self>       Pointer;
00048   typedef SmartPointer<const Self> ConstPointer;
00049 
00051   itkSimpleNewMacro(Self);
00052 
00054   itkTypeMacro(LoadNode, Load);
00055 
00056   typedef Element::Node::Float Float;
00057 
00061   void SetForce(const vnl_vector<Float> force);
00062 
00066   vnl_vector<Float> GetForce() const;
00067 
00071   void SetNode(int num);
00072 
00076   int GetNode() const;
00077 
00078   LoadNode():
00079     m_Point(0)
00080   {
00081   }                             // default constructor
00082   LoadNode(Element::ConstPointer element_, unsigned int pt_, vnl_vector<Float> F_) :
00083     m_Point(pt_), m_Force(F_)
00084   {
00085     this->m_Element = element_;
00086   }
00087 
00090   virtual::itk::LightObject::Pointer CreateAnother(void) const;
00091 
00092 protected:
00093 
00094   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00095 
00099   unsigned int m_Point;
00100 
00105   vnl_vector<Float> m_Force;
00106 };
00107 
00108 }
00109 }  // end namespace itk::fem
00110 
00111 #endif // #ifndef __itkFEMLoadDOF_h
00112