![]() |
Scanframe Modular Application 0.1.0
|
Holds all the necessary information on a tool to make calculations. More...
#include <ToolInformation.h>
Public Member Functions | |
ToolInformation () | |
Default constructor. | |
ToolInformation (const ToolInformation &info) | |
Copy constructor. | |
void | clear () |
Clears all data members. | |
void | assign (double x, double y, double z, double xa, double ya, double za, double len) |
Assign all member at once. | |
ToolInformation & | assign (const ToolInformation &info) |
Assigns the values from the passed instance. | |
ToolInformation & | operator= (const ToolInformation &info) |
Assignment operator. | |
bool | operator== (const ToolInformation &info) const |
Compare equal operator. | |
bool | operator!= (const ToolInformation &info) const |
Compare non-equal operator. | |
bool | read (const IniProfile &ini, const std::string §ion={}) |
Reads the class data from an ini-profile. | |
void | write (IniProfile &ini, const std::string §ion={}) |
Writes the class data to an ini-profile. | |
void | setDisplacement (double angle_x, double angle_y, double beam_len) |
Sets the displacement using angles and length. | |
void | setDisplacement (Vector3D v) |
Sets the displacement using a vector. | |
double | setDisplacementAngleX () const |
Gets the displacement angle around then X-axis when this tool is mounted. | |
double | setDisplacementAngleY () const |
Gets the displacement angle around then Y-axis when this tool is mounted. | |
double | setDisplacementLength () const |
Gets the displacement angle around then Z-axis when this tool is mounted. | |
const Vector3D & | getDisplacement () const |
Gets the displacement 3D vector. | |
void | setBeam (double angle_x, double angle_y, double angle_z, double beam_len) |
Sets the angles of rotation around the X- and Y-axis when it leaves the tool. | |
double | getBeamAngleX () const |
Gets the rotation angle around the Y-axis of the beam when it leaves the tool. | |
double | getBeamAngleY () const |
Gets the rotation angle around the Y-axis of the beam when it leaves the tool. | |
double | getBeamAngleZ () const |
Gets the rotation angle around the Z-axis of the beam when it leaves the tool. | |
double | getBeamLength () const |
Gets the length of beam inside the tool. | |
const Matrix44 & | getBeamMatrix () const |
Gets the matrix for rotating a beam. | |
Holds all the necessary information on a tool to make calculations.
sf::ToolInformation::ToolInformation | ( | ) |
Default constructor.
sf::ToolInformation::ToolInformation | ( | const ToolInformation & | info | ) |
Copy constructor.
ToolInformation & sf::ToolInformation::assign | ( | const ToolInformation & | info | ) |
Assigns the values from the passed instance.
void sf::ToolInformation::assign | ( | double | x, |
double | y, | ||
double | z, | ||
double | xa, | ||
double | ya, | ||
double | za, | ||
double | len | ||
) |
Assign all member at once.
void sf::ToolInformation::clear | ( | ) |
Clears all data members.
double sf::ToolInformation::getBeamAngleX | ( | ) | const |
Gets the rotation angle around the Y-axis of the beam when it leaves the tool.
double sf::ToolInformation::getBeamAngleY | ( | ) | const |
Gets the rotation angle around the Y-axis of the beam when it leaves the tool.
double sf::ToolInformation::getBeamAngleZ | ( | ) | const |
Gets the rotation angle around the Z-axis of the beam when it leaves the tool.
double sf::ToolInformation::getBeamLength | ( | ) | const |
Gets the length of beam inside the tool.
const Matrix44 & sf::ToolInformation::getBeamMatrix | ( | ) | const |
Gets the matrix for rotating a beam.
const Vector3D & sf::ToolInformation::getDisplacement | ( | ) | const |
Gets the displacement 3D vector.
bool sf::ToolInformation::operator!= | ( | const ToolInformation & | info | ) | const |
Compare non-equal operator.
ToolInformation & sf::ToolInformation::operator= | ( | const ToolInformation & | info | ) |
Assignment operator.
bool sf::ToolInformation::operator== | ( | const ToolInformation & | info | ) | const |
Compare equal operator.
bool sf::ToolInformation::read | ( | const IniProfile & | ini, |
const std::string & | section = {} |
||
) |
Reads the class data from an ini-profile.
ini | Reference to the ini-profile instance. |
section | Section to read the info from where an empty string defaults to the default section name. |
void sf::ToolInformation::setBeam | ( | double | angle_x, |
double | angle_y, | ||
double | angle_z, | ||
double | beam_len | ||
) |
Sets the angles of rotation around the X- and Y-axis when it leaves the tool.
angle_x | |
angle_y | |
angle_z | |
beam_len |
void sf::ToolInformation::setDisplacement | ( | double | angle_x, |
double | angle_y, | ||
double | beam_len | ||
) |
Sets the displacement using angles and length.
angle_x | |
angle_y | |
beam_len |
void sf::ToolInformation::setDisplacement | ( | Vector3D | v | ) |
Sets the displacement using a vector.
v | 3D vector. |
double sf::ToolInformation::setDisplacementAngleX | ( | ) | const |
Gets the displacement angle around then X-axis when this tool is mounted.
double sf::ToolInformation::setDisplacementAngleY | ( | ) | const |
Gets the displacement angle around then Y-axis when this tool is mounted.
double sf::ToolInformation::setDisplacementLength | ( | ) | const |
Gets the displacement angle around then Z-axis when this tool is mounted.
void sf::ToolInformation::write | ( | IniProfile & | ini, |
const std::string & | section = {} |
||
) |
Writes the class data to an ini-profile.
ini | Reference to the ini-profile instance. |
section | Section to read the info from where an empty string defaults to the default section name. |