UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-12-03)
usAcquisitionParameters.cpp
1 /****************************************************************************
2  *
3  * This file is part of the ustk software.
4  * Copyright (C) 2016 - 2017 by Inria. All rights reserved.
5  *
6  * This software is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * ("GPL") version 2 as published by the Free Software Foundation.
9  * See the file LICENSE.txt at the root directory of this source
10  * distribution for additional information about the GNU GPL.
11  *
12  * For using ustk with software that can not be combined with the GNU
13  * GPL, please contact Inria about acquiring a ViSP Professional
14  * Edition License.
15  *
16  * This software was developed at:
17  * Inria Rennes - Bretagne Atlantique
18  * Campus Universitaire de Beaulieu
19  * 35042 Rennes Cedex
20  * France
21  *
22  * If you have questions regarding the use of this file, please contact
23  * Inria at ustk@inria.fr
24  *
25  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
26  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27  *
28  * Authors:
29  * Marc Pouliquen
30  *
31  *****************************************************************************/
32 
33 #include <visp3/core/vpException.h>
34 #include <visp3/ustk_grabber/usAcquisitionParameters.h>
35 
40  : m_transmitFrequency(0), m_samplingFrequency(0), m_imagingMode(0), m_postScanMode(false), m_postScanHeigh(0),
41  m_postScanWidth(0), m_imageDepth(0), m_sector(0), m_activateMotor(false), m_motorPosition(0), m_framesPerVolume(0),
42  m_motorSteps(US_STATIC_MOTOR), m_transmitFrequencyMin(0), m_samplingFrequencyMin(0), m_imagingModeMin(0),
43  m_imageDepthMin(0), m_sectorMin(0), m_motorPositionMin(0), m_framesPerVolumeMin(0),
44  m_motorStepsMin(US_STATIC_MOTOR), m_transmitFrequencyMax(0), m_samplingFrequencyMax(0), m_imagingModeMax(0),
45  m_imageDepthMax(0), m_sectorMax(0), m_motorPositionMax(0), m_framesPerVolumeMax(0), m_motorStepsMax(US_STATIC_MOTOR)
46 {
47 }
48 
53 
58 void usAcquisitionParameters::setActivateMotor(bool activateMotor) { m_activateMotor = activateMotor; }
59 
64 void usAcquisitionParameters::setSepsPerFrame(usMotorStep anglePerFrame) { m_motorSteps = anglePerFrame; }
65 
70 void usAcquisitionParameters::setSepsPerFrameMax(usMotorStep anglePerFrameMax) { m_motorStepsMax = anglePerFrameMax; }
71 
76 void usAcquisitionParameters::setSepsPerFrameMin(usMotorStep anglePerFrameMin) { m_motorStepsMin = anglePerFrameMin; }
77 
82 void usAcquisitionParameters::setFramesPerVolume(int framesPerVolume) { m_framesPerVolume = framesPerVolume; }
83 
89 {
90  m_framesPerVolumeMax = framesPerVolumeMax;
91 }
92 
98 {
99  m_framesPerVolumeMin = framesPerVolumeMin;
100 }
101 
106 void usAcquisitionParameters::setImageDepth(int imageDepth) { m_imageDepth = imageDepth; }
107 
112 void usAcquisitionParameters::setImageDepthMax(int imageDepthMax) { m_imageDepthMax = imageDepthMax; }
113 
118 void usAcquisitionParameters::setImageDepthMin(int imageDepthMin) { m_imageDepthMin = imageDepthMin; }
119 
124 void usAcquisitionParameters::setImagingMode(int imagingMode) { m_imagingMode = imagingMode; }
125 
130 void usAcquisitionParameters::setImagingModeMax(int imagingModeMax) { m_imagingModeMax = imagingModeMax; }
131 
136 void usAcquisitionParameters::setImagingModeMin(int imagingModeMin) { m_imagingModeMin = imagingModeMin; }
137 
142 void usAcquisitionParameters::setMotorPosition(int motorPosition) { m_motorPosition = motorPosition; }
143 
148 void usAcquisitionParameters::setMotorPositionMax(int motorPositionMax) { m_motorPositionMax = motorPositionMax; }
149 
154 void usAcquisitionParameters::setMotorPositionMin(int motorPositionMin) { m_motorPositionMin = motorPositionMin; }
155 
160 void usAcquisitionParameters::setPostScanHeigh(int postScanHeigh) { m_postScanHeigh = postScanHeigh; }
161 
166 void usAcquisitionParameters::setPostScanMode(bool postScanMode) { m_postScanMode = postScanMode; }
167 
172 void usAcquisitionParameters::setPostScanWidth(int postScanWidth) { m_postScanWidth = postScanWidth; }
173 
178 void usAcquisitionParameters::setSamplingFrequency(int samplingFrequency) { m_samplingFrequency = samplingFrequency; }
179 
185 {
186  m_samplingFrequencyMax = samplingFrequencyMax;
187 }
188 
194 {
195  m_samplingFrequencyMin = samplingFrequencyMin;
196 }
197 
202 void usAcquisitionParameters::setSector(int sector) { m_sector = sector; }
203 
208 void usAcquisitionParameters::setSectorMax(int sectorMax) { m_sectorMax = sectorMax; }
209 
214 void usAcquisitionParameters::setSectorMin(int sectorMin) { m_sectorMin = sectorMin; }
215 
220 void usAcquisitionParameters::setTransmitFrequency(int transmitFrequency) { m_transmitFrequency = transmitFrequency; }
221 
227 {
228  m_transmitFrequencyMax = transmitFrequencyMax;
229 }
230 
236 {
237  m_transmitFrequencyMin = transmitFrequencyMin;
238 }
void setFramesPerVolumeMax(int framesPerVolumeMax)
void setImageDepthMin(int imageDepthMin)
void setImageDepth(int imageDepth)
void setFramesPerVolumeMin(int framesPerVolumeMin)
void setPostScanHeigh(int postScanHeigh)
void setImageDepthMax(int imageDepthMax)
void setFramesPerVolume(int framesPerVolume)
void setImagingMode(int imagingMode)
void setPostScanWidth(int postScanWidth)
void setImagingModeMin(int imagingModeMin)
void setMotorPositionMin(int motorPositionMin)
usMotorStep
For 4DC7 3D probe motor movement.
void setSamplingFrequency(int samplingFrequency)
void setSamplingFrequencyMax(int samplingFrequencyMax)
void setTransmitFrequency(int transmitFrequency)
void setTransmitFrequencyMax(int transmitFrequencyMax)
void setSamplingFrequencyMin(int samplingFrequencyMin)
void setTransmitFrequencyMin(int transmitFrequencyMin)
void setPostScanMode(bool postScanMode)
void setImagingModeMax(int imagingModeMax)
void setActivateMotor(bool activateMotor)
void setMotorPositionMax(int motorPositionMax)
void setSepsPerFrameMin(usMotorStep anglePerFrameMin)
void setSepsPerFrameMax(usMotorStep anglePerFrameMax)
void setSepsPerFrame(usMotorStep anglePerFrame)
void setMotorPosition(int motorPosition)