ResPkModel.h
Go to the documentation of this file.00001 #ifndef CRESPKMODEL_H
00002 #define CRESPKMODEL_H
00003
00004 #include <vector>
00005 #include "SeismicModel.h"
00006
00007 namespace gplib
00008 {
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 class ResPkModel: public SeismicModel
00019 {
00020 private:
00021 double slowness;
00022 trealdata Strike;
00023 trealdata Dip;
00024 public:
00025
00026 double GetSlowness() const
00027 {
00028 return slowness;
00029 }
00030
00031 void SetSlowness(const double s)
00032 {
00033 slowness = s;
00034 }
00035
00036 const trealdata &GetStrike() const
00037 {
00038 return Strike;
00039 }
00040
00041 trealdata &SetStrike()
00042 {
00043 return Strike;
00044 }
00045
00046 const trealdata &GetDip() const
00047 {
00048 return Dip;
00049 }
00050
00051 trealdata &SetDip()
00052 {
00053 return Dip;
00054 }
00055
00056 virtual void ReadModel(const std::string filename);
00057
00058 virtual void WriteModel(const std::string filename);
00059
00060 virtual void WriteRunFile(const std::string &filename);
00061 ResPkModel();
00062 ResPkModel(const int nlayers);
00063 ResPkModel(const SeismicModel& source);
00064 ResPkModel(const ResPkModel& source);
00065 ResPkModel& operator=(const ResPkModel& source);
00066 virtual ~ResPkModel();
00067 };
00068
00069 }
00070 #endif // CRESPKMODEL_H