Orfeo Toolbox
3.16
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
OTB
Utilities
ITK
Code
Numerics
FEM
itkFEMElement2DC0LinearQuadrilateralMembrane.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Insight Segmentation & Registration Toolkit
4
Module: $RCSfile: itkFEMElement2DC0LinearQuadrilateralMembrane.cxx,v $
5
Language: C++
6
Date: $Date: 2009-01-28 21:25:49 $
7
Version: $Revision: 1.3 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
10
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
15
16
=========================================================================*/
17
18
// disable debug warnings in MS compiler
19
#ifdef _MSC_VER
20
#pragma warning(disable: 4786)
21
#endif
22
23
#include "
itkFEMElement2DC0LinearQuadrilateralMembrane.h
"
24
25
namespace
itk {
26
namespace
fem {
27
28
Element2DC0LinearQuadrilateralMembrane
29
::Element2DC0LinearQuadrilateralMembrane
() :
Superclass
()
30
{
31
}
32
33
Element2DC0LinearQuadrilateralMembrane
34
::Element2DC0LinearQuadrilateralMembrane
(
35
NodeIDType
n1_,
36
NodeIDType
n2_,
37
NodeIDType
n3_,
38
NodeIDType
n4_,
39
Material::ConstPointer
m_) :
Superclass
()
40
{
41
// Set the geometrical points
42
this->SetNode( 0, n1_ );
43
this->SetNode( 1, n2_ );
44
this->SetNode( 2, n3_ );
45
this->SetNode( 3, n4_ );
46
47
/*
48
* Initialize the pointer to material object and check that
49
* we were given the pointer to the right class.
50
* If the material class was incorrect an exception is thrown.
51
*/
52
if
( (m_mat=dynamic_cast<const MaterialLinearElasticity*>(&*m_)) == 0 )
53
{
54
throw
FEMExceptionWrongClass
(__FILE__,__LINE__,
"Element2DC0LinearQuadrilateralMembrane::Element2DC0LinearQuadrilateralMembrane()"
);
55
}
56
}
57
58
FEM_CLASS_REGISTER
(
Element2DC0LinearQuadrilateralMembrane
)
59
}}
// end namespace itk::fem
Generated at Sat Feb 2 2013 23:36:38 for
Orfeo Toolbox
with
doxygen 1.8.1.1