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 #ifndef _ELLIPSOIDAL_ANOMALY_H_
00032 #define _ELLIPSOIDAL_ANOMALY_H_
00033
00034 #include "Anomaly3D.h"
00035 #include "CartesianNode3D.h"
00036 #include "Property.h"
00037 #include <string>
00038 #include "DenseMatrix.h"
00039
00040 namespace FDDlib {
00041
00045 class EllipsoidalAnomaly: public Anomaly3D
00046 {
00047 protected:
00048
00050 Location3D center_;
00051
00053 double xlen_;
00054
00056 double ylen_;
00057
00059 double zlen_;
00060
00062 double theta1_;
00063
00065 double theta2_;
00066
00068 double theta3_;
00069
00071 DenseMatrix<double> D;
00072
00074 DenseMatrix<double> U;
00075
00077 DenseMatrix<double> UD_neg2U_t;
00078
00080 void updateData();
00081
00082 public:
00083
00094 EllipsoidalAnomaly(const Location3D& center,
00095 double xlen, double ylen, double zlen,
00096 double theta1, double theta2, double theta3,
00097 Property* prop) throw(std::string);
00098
00100 Location3D getCenter() const;
00101
00103 void setCenter(const Location3D& center);
00104
00106 std::vector<double> getLengths() const;
00107
00114 void setLengths(double xlen, double ylen, double zlen) throw(std::string);
00115
00117 std::vector<double> getEulerAngles() const;
00118
00124 void setEulerAngles(double theta1, double theta2, double theta3);
00125
00131 bool encloses(const CartesianNode3D& node) const;
00132
00133 };
00134 }
00135 #endif