ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
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 __itkFEMLoadPoint_h 00020 #define __itkFEMLoadPoint_h 00021 00022 #include "itkFEMLoadElementBase.h" 00023 #include "vnl/vnl_vector.h" 00024 00025 namespace itk 00026 { 00027 namespace fem 00028 { 00035 class LoadPoint : public LoadElement 00036 { 00037 public: 00038 00040 typedef LoadPoint Self; 00041 typedef LoadElement Superclass; 00042 typedef SmartPointer<Self> Pointer; 00043 typedef SmartPointer<const Self> ConstPointer; 00044 00046 itkSimpleNewMacro(Self); 00047 00049 itkTypeMacro(LoadPoint, LoadElement); 00050 00053 virtual::itk::LightObject::Pointer CreateAnother(void) const; 00054 00058 LoadPoint() : 00059 m_Point(2), m_ForcePoint(2) 00060 { 00061 00063 } 00064 00068 void SetPoint(const vnl_vector<Float> p); 00069 00073 vnl_vector<Float> GetPoint(); 00074 00078 void SetForce(const vnl_vector<Float> f); 00079 00083 vnl_vector<Float> GetForce(); 00084 00086 virtual void ApplyLoad(Element::ConstPointer element, Element::VectorType & Fe); 00087 00088 protected: 00089 00090 virtual void PrintSelf(std::ostream& os, Indent indent) const; 00091 00095 vnl_vector<Float> m_Point; 00096 00100 vnl_vector<Float> m_ForcePoint; 00101 00102 }; 00103 00104 } 00105 } // end namespace itk::fem 00106 00107 #endif // #ifndef __itkFEMLoadPoint_h 00108