43 #include <visp3/ustk_core/usMotorSettings.h>
51 : m_motorRadius(0.0), m_framePitch(0.0), m_frameNumberIsSet(false), m_motorType(LinearMotor)
65 : m_motorRadius(motorRadius), m_framePitch(framePitch), m_frameNumber(frameNumber), m_frameNumberIsSet(true),
66 m_motorType(motorType)
75 : m_motorRadius(other.getMotorRadius()), m_framePitch(other.getFramePitch()), m_frameNumber(other.getFrameNumber()),
76 m_frameNumberIsSet(other.frameNumberIsSet()), m_motorType(other.getMotorType())
123 return out <<
"motor radius : " << other.
getMotorRadius() << std::endl
126 <<
"motor type : " << other.
getMotorType() << std::endl;
168 m_motorType = motorType;
192 m_frameNumber = frameNumber;
193 m_frameNumberIsSet =
true;
208 if (!m_frameNumberIsSet)
209 throw vpException(vpException::notInitialized,
"The frame number is not set, cannot determine the field of view");
210 return m_framePitch * (double)(m_frameNumber - 1);
228 if (!m_frameNumberIsSet)
229 throw vpException(vpException::notInitialized,
230 "The frame number is not set, cannot determine the pitch from the field of view");
231 m_framePitch = motorFieldOfView / (double)(m_frameNumber - 1);
Generic class for 3D ultrasound motor settings associated to the 3D probe used during acquisition.
usMotorSettings & operator=(const usMotorSettings &other)
bool operator==(const usMotorSettings &other)
void setMotorSettings(const usMotorSettings &other)
unsigned int getFrameNumber() const
virtual ~usMotorSettings()
double getMotorRadius() const
void setMotorType(const usMotorType &motorType)
void setMotorRadius(double motorRadius)
double getFramePitch() const
void setFrameNumber(unsigned int frameNumber)
usMotorSettings getMotorSettings() const
void setMotorFieldOfView(double motorFieldOfView)
bool operator!=(const usMotorSettings &other)
double getMotorFieldOfView() const
usMotorType getMotorType() const
bool frameNumberIsSet() const
void setFramePitch(double framePitch)