UltraScan III
us_ramp.h
Go to the documentation of this file.
1 #ifndef US_RAMP_H
3 #define US_RAMP_H
4 
5 #include "us_extern.h"
6 #include "us_dataIO.h"
7 #include "us_solution.h"
8 #include "us_mwlramp.h"
9 #include <QtCore>
10 
11 
15 class US_Ramp
16 {
17  public:
21  static const uint format_version = 1;
22 
23  US_Ramp( );
24 
26  enum ioError
27  {
28  OK,
33  NODB,
40  };
41 
42 
45  class TripleInfo
46  {
47  public:
48  int tripleID;
49  QString tripleDesc;
50  QString description;
51  char tripleGUID[16];
52 // QVector<tripleGUID[16]> chanGUIDs; //! The GUIDs of the triples of this channel
53  QString tripleFilename;
54  bool excluded;
57  TripleInfo();
58  void clear( void );
59  void show( void );
60  };
61 
62 
63 
67 
68 
69 
70 
71 
88  static int saveToDisk(
89  QVector< US_mwlRamp::RampRawData* >& ,
90  QList< TripleInfo >& ,
91  QString ,
92  QString ,
93  QString,
94  bool );
95 
97  static int writeRawData(QString file,
99 
101  static int readUS3Disk(
102  QString dir,
103  QVector< US_mwlRamp::RampRawData >& rawConvertedData,
104  QList< TripleInfo >& cellchans,
105  QString& runType
106  );
107 
109  static int readRawData ( const QString file, US_mwlRamp::RampRawData& data );
110 
111  private:
112 
113 
114  static int setTriples (
115  QList< US_DataIO::BeckmanRawScan >& rawLegacyData,
116  QList< TripleInfo >& triples,
117  QString runType,
118  double tolerance );
119 
120  static void setCcwTriples (
121  QList< US_DataIO::BeckmanRawScan >& rawLegacyData,
122  QList< TripleInfo >& triples,
123  double tolerance );
124 
125  static void setCcrTriples (
126  QList< US_DataIO::BeckmanRawScan >& rawLegacyData,
127  QList< TripleInfo >& triples,
128  double tolerance );
129 
130  static void setInterpolated ( unsigned char*, int );
131 
132  static void write ( QDataStream&, const char*, int, quint32& );
133  static void read ( QDataStream&, char*, int, quint32& );
134 
135 
136 };
137 #endif