/usr/include/odinpara/seqpars.h is in libodin-dev 1.8.5-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | /***************************************************************************
seqpars.h - description
-------------------
begin : Mon Mar 3 2003
copyright : (C) 2001 by Thies H. Jochimsen
email : jochimse@cns.mpg.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef SEQPARS_H
#define SEQPARS_H
#include <odinpara/jdxblock.h>
#include <odinpara/jdxtypes.h>
#include <odinpara/jdxnumbers.h>
#include <odinpara/jdxarrays.h>
#include <odinpara/odinpara.h>
/**
* @ingroup odinpara
*
* \brief Sequence Parameter proxy
*
* This class is used to hold all common sequence parameters
*/
class SeqPars : public JcampDxBlock {
public:
/**
* Constructs a SeqPars with the given label
*/
SeqPars(const STD_string& label="unnamedSeqPars");
/**
* Constructs a copy of 'sp'
*/
SeqPars(const SeqPars& sp) {SeqPars::operator = (sp);}
/**
* Specifies the size of the image in the given direction 'dir' to 'size'
*/
SeqPars& set_MatrixSize(direction dir,unsigned int size, parameterMode parmode=edit);
/**
* Returns the size of the image in the given direction
*/
unsigned int get_MatrixSize(direction dir) const;
/**
* Specifies the repetition time of the sequence
*/
SeqPars& set_RepetitionTime(double time, parameterMode parmode=edit);
/**
* Returns the repetition time of the sequence
*/
double get_RepetitionTime() const {return RepetitionTime;}
/**
* Specifies the number of times the sequence will be repeated
*/
SeqPars& set_NumOfRepetitions(unsigned int times, parameterMode parmode=edit);
/**
* Returns the number of times the sequence will be repeated
*/
unsigned int get_NumOfRepetitions() const {return NumOfRepetitions;}
/**
* Specifies the echo time of the sequence
*/
SeqPars& set_EchoTime(double time, parameterMode parmode=edit);
/**
* Returns the echo time of the sequence
*/
double get_EchoTime() const {return EchoTime;}
/**
* Specifies the sweep width of the acquisition window
*/
SeqPars& set_AcqSweepWidth(double sw, parameterMode parmode=edit);
/**
* Returns the sweep width of the acquisition window
*/
double get_AcqSweepWidth() const {return AcqSweepWidth;}
/**
* Specifies the flip angle of the excitation pulse
*/
SeqPars& set_FlipAngle(double fa, parameterMode parmode=edit);
/**
* Returns the flip angle of the excitation pulse
*/
double get_FlipAngle() const {return FlipAngle;}
/**
* Specifies the reduction factor for parallel imaging
*/
SeqPars& set_ReductionFactor(unsigned int factor, parameterMode parmode=edit);
/**
* Returns the reduction factor for parallel imaging
*/
unsigned int get_ReductionFactor() const {return ReductionFactor;}
/**
* Specifies the partial Fourier factor (0.0 = full k-space, 1.0 = half k-space)
*/
SeqPars& set_PartialFourier(float factor, parameterMode parmode=edit);
/**
* Returns the partial Fourier factor (0.0 = full k-space, 1.0 = half k-space)
*/
float get_PartialFourier() const {return PartialFourier;}
/**
* Specifies whether RF spoiling is used
*/
SeqPars& set_RFSpoiling(bool flag, parameterMode parmode=edit);
/**
* Returns whether RF spoiling is used
*/
bool get_RFSpoiling() const {return RFSpoiling;}
/**
* Specifies whether gradient intro will be played out prior to sequence
*/
SeqPars& set_GradientIntro(bool flag, parameterMode parmode=edit);
/**
* Returns whether gradient intro will be played out prior to sequence
*/
bool get_GradientIntro() const {return GradientIntro;}
/**
* Specifies whether a physiological trigger is used
*/
SeqPars& set_PhysioTrigger(bool flag, parameterMode parmode=edit);
/**
* Returns whether a physiological trigger is used
*/
bool get_PhysioTrigger() const {return PhysioTrigger;}
/**
* Sets the label of the sequence used
*/
SeqPars& set_Sequence(const STD_string& seqid) {Sequence=seqid; return *this;}
/**
* Returns the label of the sequence used
*/
const STD_string& get_Sequence() const {return Sequence;}
/**
* Sets the total duration of the sequence in minutes
*/
SeqPars& set_ExpDuration(double dur) {ExpDuration=dur; return *this;}
/**
* Returns the total duration of the sequence in minutes
*/
double get_ExpDuration() const {return ExpDuration;}
/**
* Sets the starting time point of the sequence
*/
SeqPars& set_AcquisitionStart(double time) {AcquisitionStart=time; return *this;}
/**
* Returns the starting time point of the sequence
*/
double get_AcquisitionStart() const {return AcquisitionStart;}
/**
* Assignment operator
*/
SeqPars& operator = (const SeqPars& pars2);
private:
void append_all_members();
JDXdouble ExpDuration;
JDXstring Sequence;
JDXdouble AcquisitionStart;
JDXint MatrixSizeRead;
JDXint MatrixSizePhase;
JDXint MatrixSizeSlice;
JDXdouble RepetitionTime;
JDXint NumOfRepetitions;
JDXdouble EchoTime;
JDXdouble AcqSweepWidth;
JDXdouble FlipAngle;
JDXint ReductionFactor;
JDXfloat PartialFourier;
JDXbool RFSpoiling;
JDXbool GradientIntro;
JDXbool PhysioTrigger;
};
#endif
|