00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef __LINE3_H
00035 #define __LINE3_H
00036
00037 #include "OFELI_Config.h"
00038 #include "FEShape.h"
00039
00040 namespace OFELI {
00041
00042 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00043 struct ErrorInLine3 {
00044 void Message(const char *file, size_t line, int code, int p1) const;
00045 };
00046 #endif
00047
00066 class Line3 : public FEShape
00067 {
00068
00069 public :
00070
00072 Line3();
00073
00075 Line3(const Element *element);
00076
00078 Line3(const Side *side);
00079
00081 ~Line3()
00082 {
00083 #ifdef _OFELI_DEBUG
00084 std::clog << "An instance of class Line3 is destructed.\n";
00085 std::clog << "File: " << __FILE__ << ", Line: " << __LINE__ << endl;
00086 #endif
00087 }
00088
00090 void setLocal(double s);
00091
00093 double DSh(size_t i) const { return _dsh[i-1].x; }
00094
00096 Point<double> getLocalPoint() const { return (_sh[0]*_x[0] + _sh[1]*_x[1]); }
00097
00105 double check() const;
00106
00107 private :
00108 const Element *_el;
00109 const Side *_sd;
00110 ErrorInLine3 _e;
00111 };
00112
00113 }
00114
00115 #endif