ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkFEMElement2DC0LinearLineStress.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 __itkFEMElement2DC0LinearLineStress_h
00020 #define __itkFEMElement2DC0LinearLineStress_h
00021 
00022 #include "itkFEMElement2DC0LinearLine.h"
00023 #include "itkFEMElement1DStress.h"
00024 
00025 namespace itk
00026 {
00027 namespace fem
00028 {
00034 class Element2DC0LinearLineStress : public Element1DStress<Element2DC0LinearLine>
00035 {
00036 public:
00037 
00039   typedef Element2DC0LinearLineStress            Self;
00040   typedef Element1DStress<Element2DC0LinearLine> Superclass;
00041   typedef SmartPointer<Self>                     Pointer;
00042   typedef SmartPointer<const Self>               ConstPointer;
00043 
00045   itkSimpleNewMacro(Self);
00046 
00048   itkTypeMacro(Element2DC0LinearLineStress, Element1DStress<Element2DC0LinearLine> );
00049 
00052   virtual::itk::LightObject::Pointer CreateAnother(void) const;
00053 
00057   Element2DC0LinearLineStress();
00058 
00063   Element2DC0LinearLineStress(NodeIDType n1_, NodeIDType n2_, Material::ConstPointer p_);
00064 
00069   virtual void GetMassMatrix(MatrixType & Me) const;
00070 
00071 protected:
00072   virtual void PrintSelf(std::ostream& os, Indent indent) const;
00073 
00074 };  // class Element2DC0LinearLineStress
00075 
00076 }
00077 }  // end namespace itk::fem
00078 
00079 #endif  // #ifndef __itkFEMElement2DC0LinearLineStress_h
00080