UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-12-17)
|
#include <visp3/ustk_core/usMotorSettings.h>
Public Types | |
enum | usMotorType { LinearMotor = 0 , TiltingMotor = 1 , RotationalMotor = 2 } |
Public Member Functions | |
usMotorSettings () | |
usMotorSettings (double motorRadius, double framePitch, unsigned int frameNumber, const usMotorType &motorType) | |
usMotorSettings (const usMotorSettings &other) | |
virtual | ~usMotorSettings () |
Inherited functionalities from usMotorSettings | |
unsigned int | getFrameNumber () const |
double | getFramePitch () const |
double | getMotorFieldOfView () const |
double | getMotorRadius () const |
usMotorSettings | getMotorSettings () const |
usMotorType | getMotorType () const |
bool | frameNumberIsSet () const |
usMotorSettings & | operator= (const usMotorSettings &other) |
bool | operator== (const usMotorSettings &other) |
bool | operator!= (const usMotorSettings &other) |
void | setFrameNumber (unsigned int frameNumber) |
void | setFramePitch (double framePitch) |
void | setMotorFieldOfView (double motorFieldOfView) |
void | setMotorRadius (double motorRadius) |
void | setMotorSettings (const usMotorSettings &other) |
void | setMotorType (const usMotorType &motorType) |
VISP_EXPORT std::ostream & | operator<< (std::ostream &out, const usMotorSettings &other) |
Generic class for 3D ultrasound motor settings associated to the 3D probe used during acquisition.
This class represents motor settings for 3D ultrasound images which are the common settings corresponding to the motor used to produce the third dimension.
These settings are:
The following figure summerize these motor settings.
Definition at line 77 of file usMotorSettings.h.
Enumerator for motor type
Enumerator | |
---|---|
LinearMotor | Case of a linear motor. |
TiltingMotor | Case of a tilting motor (small rotation). |
RotationalMotor | Case of a roatational motor (360° rotation). |
Definition at line 81 of file usMotorSettings.h.
usMotorSettings::usMotorSettings | ( | ) |
Basic Constructor, all settings set to default.
Definition at line 50 of file usMotorSettings.cpp.
usMotorSettings::usMotorSettings | ( | double | motorRadius, |
double | framePitch, | ||
unsigned int | frameNumber, | ||
const usMotorType & | motorType | ||
) |
Full Constructor, all settings availables
motorRadius | Distance between the rotation center of the probe motor and the first pixel arc acquired, in meters (m). |
framePitch | Pitch between two sucessive frames. In meters if motorType is linear, in radians (rad) otherwise. |
frameNumber | Number of frame acquired by the probe. |
motorType | Probe motor type. |
Definition at line 63 of file usMotorSettings.cpp.
usMotorSettings::usMotorSettings | ( | const usMotorSettings & | other | ) |
Copy Constructor, all settings availables
other | usMotorSettings you want to copy. |
Definition at line 74 of file usMotorSettings.cpp.
|
virtual |
Destructor.
Definition at line 83 of file usMotorSettings.cpp.
bool usMotorSettings::frameNumberIsSet | ( | ) | const |
Getter to know if the scan frame is set (usefull in case of field of view setter call).
Definition at line 200 of file usMotorSettings.cpp.
Referenced by operator=(), and operator==().
unsigned int usMotorSettings::getFrameNumber | ( | ) | const |
Getter for frame number.
Definition at line 159 of file usMotorSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usNetworkGrabberPreScan3D::includeFrameInVolume(), usNetworkGrabberRF3D::includeFrameInVolume(), operator=(), operator==(), usImagePreScan3D< Type >::usImagePreScan3D(), usImageRF3D< Type >::usImageRF3D(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
double usMotorSettings::getFramePitch | ( | ) | const |
Get the frame pitch (radians or meters).
Definition at line 153 of file usMotorSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), operator=(), operator==(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
double usMotorSettings::getMotorFieldOfView | ( | ) | const |
Getter for the motor field of view (based on frame number and pitch).
Definition at line 206 of file usMotorSettings.cpp.
double usMotorSettings::getMotorRadius | ( | ) | const |
Get the motor radius (m).
Definition at line 141 of file usMotorSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), operator=(), operator==(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
usMotorSettings usMotorSettings::getMotorSettings | ( | ) | const |
Definition at line 234 of file usMotorSettings.cpp.
usMotorSettings::usMotorType usMotorSettings::getMotorType | ( | ) | const |
Get the motor type : linear, titling (small rotation angle) or rotational (360° rotation).
Definition at line 178 of file usMotorSettings.cpp.
Referenced by usPixelMeterConversion::convert(), usMeterPixelConversion::convert(), usPreScanToPostScan3DConverter::init(), operator=(), operator==(), usImageIo::write(), usMHDSequenceWriter::write(), and usImageSettingsXmlParser::writeMainClass().
bool usMotorSettings::operator!= | ( | const usMotorSettings & | other | ) |
Compare two motor settings.
other | Motor settings to compare. |
Definition at line 116 of file usMotorSettings.cpp.
References operator==().
usMotorSettings & usMotorSettings::operator= | ( | const usMotorSettings & | other | ) |
Assignment operator.
other | Motor settings you want to copy. |
Definition at line 89 of file usMotorSettings.cpp.
References frameNumberIsSet(), getFrameNumber(), getFramePitch(), getMotorRadius(), and getMotorType().
Referenced by usImagePostScan3D< Type >::operator=(), usImagePreScan3D< Type >::operator=(), and usImageRF3D< Type >::operator=().
bool usMotorSettings::operator== | ( | const usMotorSettings & | other | ) |
Compare two motor settings.
other | Motor settings to compare. |
Definition at line 104 of file usMotorSettings.cpp.
References frameNumberIsSet(), getFrameNumber(), getFramePitch(), getMotorRadius(), and getMotorType().
Referenced by operator!=(), and usImagePostScan3D< Type >::operator==().
void usMotorSettings::setFrameNumber | ( | unsigned int | frameNumber | ) |
Setter for frame number.
frameNumber | The number of frames used for 3D acquisition. |
Definition at line 190 of file usMotorSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImagePreScan3D< Type >::resize(), usImageRF3D< Type >::resize(), usImagePreScan3D< Type >::setFrameNumber(), and usImageRF3D< Type >::setFrameNumber().
void usMotorSettings::setFramePitch | ( | double | framePitch | ) |
Set the frame angle (rad).
framePitch | Frame angle of the probe in radians. |
Definition at line 147 of file usMotorSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), and usImageSettingsXmlParser::readMainClass().
void usMotorSettings::setMotorFieldOfView | ( | double | motorFieldOfView | ) |
Setter for the motor field of view (updates the frame pitch).
motorFieldOfView | The motor field of view in radians if the motor is convex, in meters if the motor is linear. |
Definition at line 226 of file usMotorSettings.cpp.
void usMotorSettings::setMotorRadius | ( | double | motorRadius | ) |
Set the motor radius (m).
motorRadius | Motor radius in meters. |
Definition at line 135 of file usMotorSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), usImageSettingsXmlParser::readMainClass(), and setMotorType().
void usMotorSettings::setMotorSettings | ( | const usMotorSettings & | other | ) |
Set the motor settings from other motor settings.
Definition at line 184 of file usMotorSettings.cpp.
Referenced by usMHDSequenceReader::acquire(), usRFToPreScan3DConverter::convert(), usPreScanToPostScan3DConverter::convert(), usMHDSequenceReader::getImage(), and usImageIo::read().
void usMotorSettings::setMotorType | ( | const usMotorType & | motorType | ) |
Set the motor type : convex or linear (from probe type used to acquire the image).
motorType | Motor type to specify the motor type : LinearMotor, TiltingMotor (for a rotative motor), RotationalMotor (for a 360° rotative motor). |
Definition at line 166 of file usMotorSettings.cpp.
References LinearMotor, and setMotorRadius().
Referenced by usMHDSequenceReader::acquire(), usNetworkGrabberPreScan3D::dataArrived(), usNetworkGrabberRF3D::dataArrived(), usMHDSequenceReader::getImage(), usImageIo::read(), and usImageSettingsXmlParser::readMainClass().
|
friend |
Print probe settings information.
Definition at line 121 of file usMotorSettings.cpp.