ODIN
seqpars.h
1 /***************************************************************************
2  seqpars.h - description
3  -------------------
4  begin : Mon Mar 3 2003
5  copyright : (C) 2000-2021 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef SEQPARS_H
19 #define SEQPARS_H
20 
21 #include <odinpara/ldrblock.h>
22 #include <odinpara/ldrtypes.h>
23 #include <odinpara/ldrnumbers.h>
24 #include <odinpara/ldrarrays.h>
25 #include <odinpara/odinpara.h>
26 
27 
35 class SeqPars : public LDRblock {
36 
37  public:
38 
42  SeqPars(const STD_string& label="unnamedSeqPars");
43 
48 
49 
53  SeqPars& set_MatrixSize(direction dir,unsigned int size, parameterMode parmode=edit);
54 
58  unsigned int get_MatrixSize(direction dir) const;
59 
63  SeqPars& set_RepetitionTime(double time, parameterMode parmode=edit);
64 
68  double get_RepetitionTime() const {return RepetitionTime;}
69 
73  SeqPars& set_NumOfRepetitions(unsigned int times, parameterMode parmode=edit);
74 
78  unsigned int get_NumOfRepetitions() const {return NumOfRepetitions;}
79 
80 
84  SeqPars& set_EchoTime(double time, parameterMode parmode=edit);
85 
89  double get_EchoTime() const {return EchoTime;}
90 
91 
92 
96  SeqPars& set_AcqSweepWidth(double sw, parameterMode parmode=edit);
97 
101  double get_AcqSweepWidth() const {return AcqSweepWidth;}
102 
106  SeqPars& set_FlipAngle(double fa, parameterMode parmode=edit);
107 
111  double get_FlipAngle() const {return FlipAngle;}
112 
116  SeqPars& set_ReductionFactor(unsigned int factor, parameterMode parmode=edit);
117 
121  unsigned int get_ReductionFactor() const {return ReductionFactor;}
122 
126  SeqPars& set_PartialFourier(float factor, parameterMode parmode=edit);
127 
131  float get_PartialFourier() const {return PartialFourier;}
132 
136  SeqPars& set_RFSpoiling(bool flag, parameterMode parmode=edit);
137 
141  bool get_RFSpoiling() const {return RFSpoiling;}
142 
146  SeqPars& set_GradientIntro(bool flag, parameterMode parmode=edit);
147 
151  bool get_GradientIntro() const {return GradientIntro;}
152 
156  SeqPars& set_PhysioTrigger(bool flag, parameterMode parmode=edit);
157 
161  bool get_PhysioTrigger() const {return PhysioTrigger;}
162 
166  SeqPars& set_Sequence(const STD_string& seqid) {Sequence=seqid; return *this;}
167 
171  const STD_string& get_Sequence() const {return Sequence;}
172 
173 
177  SeqPars& set_ExpDuration(double dur) {ExpDuration=dur; return *this;}
178 
182  double get_ExpDuration() const {return ExpDuration;}
183 
187  SeqPars& set_AcquisitionStart(double time) {AcquisitionStart=time; return *this;}
188 
192  double get_AcquisitionStart() const {return AcquisitionStart;}
193 
197  SeqPars& operator = (const SeqPars& pars2);
198 
199 
200 
201  private:
202  void append_all_members();
203 
204  LDRdouble ExpDuration;
205  LDRstring Sequence;
206  LDRdouble AcquisitionStart;
207 
208  LDRint MatrixSizeRead;
209  LDRint MatrixSizePhase;
210  LDRint MatrixSizeSlice;
211  LDRdouble RepetitionTime;
212  LDRint NumOfRepetitions;
213  LDRdouble EchoTime;
214  LDRdouble AcqSweepWidth;
215  LDRdouble FlipAngle;
216  LDRint ReductionFactor;
217  LDRfloat PartialFourier;
218  LDRbool RFSpoiling;
219  LDRbool GradientIntro;
220  LDRbool PhysioTrigger;
221 };
222 
223 #endif
unsigned int size() const
Definition: tjlist.h:145
Sequence Parameter proxy.
Definition: seqpars.h:35
SeqPars & set_AcquisitionStart(double time)
Definition: seqpars.h:187
bool get_RFSpoiling() const
Definition: seqpars.h:141
SeqPars & set_RFSpoiling(bool flag, parameterMode parmode=edit)
bool get_GradientIntro() const
Definition: seqpars.h:151
SeqPars(const SeqPars &sp)
Definition: seqpars.h:47
SeqPars & set_ReductionFactor(unsigned int factor, parameterMode parmode=edit)
unsigned int get_ReductionFactor() const
Definition: seqpars.h:121
SeqPars & set_RepetitionTime(double time, parameterMode parmode=edit)
double get_EchoTime() const
Definition: seqpars.h:89
const STD_string & get_Sequence() const
Definition: seqpars.h:171
SeqPars & set_GradientIntro(bool flag, parameterMode parmode=edit)
unsigned int get_MatrixSize(direction dir) const
SeqPars & set_MatrixSize(direction dir, unsigned int size, parameterMode parmode=edit)
SeqPars & set_EchoTime(double time, parameterMode parmode=edit)
SeqPars & operator=(const SeqPars &pars2)
SeqPars & set_PhysioTrigger(bool flag, parameterMode parmode=edit)
SeqPars & set_FlipAngle(double fa, parameterMode parmode=edit)
SeqPars & set_NumOfRepetitions(unsigned int times, parameterMode parmode=edit)
float get_PartialFourier() const
Definition: seqpars.h:131
SeqPars & set_ExpDuration(double dur)
Definition: seqpars.h:177
SeqPars & set_Sequence(const STD_string &seqid)
Definition: seqpars.h:166
SeqPars(const STD_string &label="unnamedSeqPars")
double get_FlipAngle() const
Definition: seqpars.h:111
bool get_PhysioTrigger() const
Definition: seqpars.h:161
SeqPars & set_PartialFourier(float factor, parameterMode parmode=edit)
double get_ExpDuration() const
Definition: seqpars.h:182
double get_AcqSweepWidth() const
Definition: seqpars.h:101
double get_AcquisitionStart() const
Definition: seqpars.h:192
unsigned int get_NumOfRepetitions() const
Definition: seqpars.h:78
SeqPars & set_AcqSweepWidth(double sw, parameterMode parmode=edit)
double get_RepetitionTime() const
Definition: seqpars.h:68
parameterMode
Definition: ldrbase.h:44
direction
Definition: odinpara.h:41