7 #include "PlusConfigure.h" 57 LOG_TRACE(
"vtkPlusUsImagingParameters::~vtkPlusUsImagingParameters()");
83 return this->SetValue<double>(
KEY_DEPTH, aDepthMm);
89 return this->GetValue<double>(
KEY_DEPTH, aDepthMm);
96 this->GetValue<double>(
KEY_DEPTH, aValue);
123 return this->SetValue<double>(
KEY_GAIN, aGainPercent);
129 return this->GetValue<double>(
KEY_GAIN, aGainPercent);
136 this->GetValue<double>(
KEY_GAIN, aValue);
143 std::stringstream result;
144 std::copy(tgc.begin(), tgc.end(), std::ostream_iterator<double>(result,
" "));
159 std::vector<double> tgcVec(tgc, tgc + length);
167 if (keyIt != this->
Parameters.end() && keyIt->second.Set ==
false)
176 std::stringstream ss;
178 ss.str(it->second.Value);
179 std::vector<double> numbers((std::istream_iterator<double>(ss)), std::istream_iterator<double>());
187 std::vector<double> vec;
235 return this->SetValue<double>(
KEY_POWER, aPower);
241 return this->GetValue<double>(
KEY_POWER, aPower);
248 this->GetValue<double>(
KEY_POWER, aValue);
255 return this->SetValue<double>(
KEY_DYNRANGE, aDynRangeDb);
261 return this->GetValue<double>(
KEY_DYNRANGE, aDynRangeDb);
275 return this->SetValue<double>(
KEY_ZOOM, aZoomFactor);
281 return this->GetValue<double>(
KEY_ZOOM, aZoomFactor);
288 this->GetValue<double>(
KEY_ZOOM, aValue);
295 return this->SetValue<double>(
KEY_SECTOR, aSectorPercent);
301 return this->GetValue<double>(
KEY_SECTOR, aSectorPercent);
335 return this->SetValue<float>(
KEY_VOLTAGE, aVoltage);
341 return this->GetValue<float>(
KEY_VOLTAGE, aVoltage);
355 std::stringstream result;
356 std::copy(imageSize.begin(), imageSize.end(), std::ostream_iterator<double>(result,
" "));
372 FrameSizeType imageSize = {
x,
y, z };
380 if (keyIt != this->
Parameters.end() && keyIt->second.Set ==
false)
389 std::stringstream ss;
391 ss.str(it->second.Value);
392 std::vector<unsigned int> numbers((std::istream_iterator<unsigned int>(ss)), std::istream_iterator<unsigned int>());
394 imageSize[0] = numbers[0];
395 if (numbers.size() > 1)
397 imageSize[1] = numbers[1];
399 if (numbers.size() > 2)
401 imageSize[2] = numbers[2];
413 FrameSizeType imageSize;
static const char * KEY_DYNRANGE
double GetGainPercent() const
double GetFrequencyMhz() const
static const char * KEY_IMAGESIZE
double GetContrast() const
static const char * KEY_DEPTH
This class is used to store a configuration of the imaging parameters of an ultrasound video device....
static const char * KEY_FOCUS_DEPTH
static const char * KEY_FREQUENCY
This class is used as the basis to store a configuration of generic parameters for any device....
double GetSectorPercent() const
PlusStatus SetContrast(double aContrast)
double GetFocusDepthPercent() const
vtkPlusUsImagingParameters()
double GetDepthMm() const
static const char * KEY_GAIN
PlusStatus SetTimeGainCompensation(const std::vector< double > &tgc)
vtkStandardNewMacro(vtkPlusUsImagingParameters)
static const char * KEY_INTENSITY
PlusStatus SetPowerDb(double aPower)
float GetSoundVelocity() const
PlusStatus SetProbeVoltage(float aVoltage)
ParameterMap::const_iterator ParameterMapConstIterator
PlusStatus SetGainPercent(double aGainPercent)
static const char * KEY_SECTOR
static const char * KEY_POWER
PlusStatus SetImageSize(const FrameSizeType &imageSize)
virtual ~vtkPlusUsImagingParameters()
PlusStatus SetDynRangeDb(double aDynRangeDb)
PlusStatus SetSectorPercent(double aSectorPercent)
static const char * KEY_CONTRAST
double GetIntensity() const
FrameSizeType GetImageSize() const
float GetProbeVoltage() const
static const char * KEY_SOUNDVELOCITY
double GetPowerDb() const
static const char * KEY_VOLTAGE
double GetZoomFactor() const
static const char * KEY_ZOOM
std::vector< double > GetTimeGainCompensation() const
PlusStatus SetIntensity(double aIntensity)
PlusStatus SetFrequencyMhz(double aFrequencyMhz)
PlusStatus SetFocusDepthPercent(double aFocusDepthPercent)
Direction vectors of rods y
PlusStatus SetZoomFactor(double aZoomFactor)
double GetDynRangeDb() const
static const char * US_XML_ELEMENT_TAG
PlusStatus SetDepthMm(double aDepthMm)
PlusStatus SetSoundVelocity(float aSoundVelocity)
static const char * KEY_TGC