7 #ifndef __vtkPlusUsImagingParameters_h 8 #define __vtkPlusUsImagingParameters_h 10 #include "vtkPlusDataCollectionExport.h" 48 ParameterInfo(std::string defaultValue) : Value(defaultValue), Set(false), Pending(false) {};
96 virtual PlusStatus ReadConfiguration(vtkXMLDataElement* deviceConfig);
103 virtual PlusStatus WriteConfiguration(vtkXMLDataElement* deviceConfig);
118 if (keyIt != this->Parameters.end() && keyIt->second.Set ==
false)
122 else if (keyIt == this->Parameters.end())
127 std::stringstream ss;
129 ss.str(it->second.Value);
142 std::stringstream ss;
144 if (this->Parameters[paramName].Value != ss.str())
146 this->Parameters[paramName].Pending =
true;
148 this->Parameters[paramName].Value = ss.str();
149 this->Parameters[paramName].Set =
true;
156 bool IsSet(
const std::string& paramName)
const;
161 bool IsPending(
const std::string& paramName)
const;
165 PlusStatus SetPending(
const std::string& paramName,
bool pending);
168 PlusStatus SetFrequencyMhz(
double aFrequencyMhz);
170 PlusStatus GetFrequencyMhz(
double& aFrequencyMhz)
const;
171 double GetFrequencyMhz()
const;
176 PlusStatus GetDepthMm(
double& aDepthMm)
const;
177 double GetDepthMm()
const;
180 PlusStatus SetFocusDepthPercent(
double aFocusDepthPercent);
182 PlusStatus GetFocusDepthPercent(
double& aFocusDepthPercent)
const;
183 double GetFocusDepthPercent()
const;
186 PlusStatus SetGainPercent(
double aGainPercent);
188 PlusStatus GetGainPercent(
double aGainPercent)
const;
189 double GetGainPercent()
const;
192 PlusStatus SetTimeGainCompensation(
const std::vector<double>& tgc);
193 PlusStatus SetTimeGainCompensation(
double* tgc,
int length);
195 PlusStatus GetTimeGainCompensation(std::vector<double>& tgc)
const;
196 std::vector<double> GetTimeGainCompensation()
const;
201 PlusStatus GetIntensity(
double& aIntensity)
const;
202 double GetIntensity()
const;
207 PlusStatus GetContrast(
double& aContrast)
const;
208 double GetContrast()
const;
214 double GetPowerDb()
const;
219 PlusStatus GetDynRangeDb(
double& aDynRangeDb)
const;
220 double GetDynRangeDb()
const;
225 PlusStatus GetZoomFactor(
double& aZoomFactor)
const;
226 double GetZoomFactor()
const;
229 PlusStatus SetSectorPercent(
double aSectorPercent);
231 PlusStatus GetSectorPercent(
double& aSectorPercent)
const;
232 double GetSectorPercent()
const;
235 PlusStatus SetSoundVelocity(
float aSoundVelocity);
237 PlusStatus GetSoundVelocity(
float& aSoundVelocity)
const;
238 float GetSoundVelocity()
const;
243 PlusStatus GetProbeVoltage(
float& aVoltage)
const;
244 float GetProbeVoltage()
const;
247 PlusStatus SetImageSize(
const FrameSizeType& imageSize);
248 PlusStatus SetImageSize(
unsigned int x,
unsigned int y,
unsigned int z);
250 PlusStatus GetImageSize(FrameSizeType& imageSize)
const;
251 FrameSizeType GetImageSize()
const;
254 virtual void PrintSelf(ostream& os, vtkIndent indent)
VTK_OVERRIDE;
268 DualCompoundMode = 10,
277 AnatomicalMMode = 19,
278 ElastoComparativeMode = 20,
290 DataTypeScreen = 0x00000001,
291 DataTypeBPre = 0x00000002,
292 DataTypeBPost = 0x00000004,
293 DataTypeBPost32 = 0x00000008,
294 DataTypeRF = 0x00000010,
295 DataTypeMPre = 0x00000020,
296 DataTypeMPost = 0x00000040,
297 DataTypePWRF = 0x00000080,
298 DataTypePWSpectrum = 0x00000100,
299 DataTypeColorRF = 0x00000200,
300 DataTypeColorCombined = 0x00000400,
301 DataTypeColorVelocityVariance = 0x00000800,
302 DataTypeContrast = 0x00001000,
303 DataTypeElastoCombined = 0x00002000,
304 DataTypeElastoOverlay = 0x00004000,
305 DataTypeElastoPre = 0x00008000,
306 DataTypeECG = 0x00010000,
307 DataTypeGPS1 = 0x00020000,
308 DataTypeGPS2 = 0x00040000,
309 DataTypeTimeStamp = 0x00080000,
310 DataTypeColorSpectrumRF = 0x00100000,
311 DataTypeMRF = 0x00200000,
312 DataTypeDAQRF = 0x00400000,
313 DataType3DPre = 0x00800000,
314 DataType3DPost = 0x01000000,
315 DataTypePNG = 0x10000000
static const char * KEY_DYNRANGE
ParameterMap::const_iterator ParameterMapConstIterator
static const char * KEY_IMAGESIZE
ParameterMap::iterator ParameterMapIterator
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
PlusStatus GetValue(const std::string ¶mName, T &outputValue) const
static const char * NAME_TAG
static const char * KEY_GAIN
static const char * KEY_INTENSITY
static const char * KEY_SECTOR
static const char * KEY_POWER
static const char * KEY_CONTRAST
static const char * KEY_SOUNDVELOCITY
static const char * KEY_VOLTAGE
static const char * KEY_ZOOM
static const char * US_PARAMETER_TAG
PlusStatus SetValue(const std::string ¶mName, T aValue)
std::map< std::string, ParameterInfo > ParameterMap
Direction vectors of rods y
static const char * VALUE_TAG
bool Pending
Flag indicating whether the parameter is changed but has not been set to device.
static const char * KEY_TGC
static const char * XML_ELEMENT_TAG