Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ElementInformation Class Reference

Holds the information on the transducer. More...

#include <ElementInformation.h>

Public Member Functions

 ElementInformation ()
 Default constructor which initializes the data members.
 
 ElementInformation (double focus_length, double spot_size)
 Initializing constructor which initializes the data members.
 
void clear ()
 Clears the data members to their default values.
 
void assign (double focus_length, double spot_size)
 Assign both member values.
 
bool read (const IniProfile &ini, const std::string &section={})
 Reads the class data from an ini-profile.
 
void write (IniProfile &ini, const std::string &section={})
 Writes the class data to an ini-profile.
 
double getFocusLength () const
 Gets the focus length of the element.
 
void setFocusLength (double value)
 Sets the focus length of the element.
 
double getSpotSize () const
 Gets the spot size of the element.
 
void setSpotSize (double value)
 Sets the spot size of the element.
 

Detailed Description

Holds the information on the transducer.

Constructor & Destructor Documentation

◆ ElementInformation() [1/2]

sf::ElementInformation::ElementInformation ( )

Default constructor which initializes the data members.

◆ ElementInformation() [2/2]

sf::ElementInformation::ElementInformation ( double  focus_length,
double  spot_size 
)

Initializing constructor which initializes the data members.

Parameters
focus_lengthLength of the focus point.
spot_sizeSpot size at the focus point.

Member Function Documentation

◆ assign()

void sf::ElementInformation::assign ( double  focus_length,
double  spot_size 
)

Assign both member values.

Parameters
focus_length
spot_size

◆ clear()

void sf::ElementInformation::clear ( )

Clears the data members to their default values.

◆ getFocusLength()

double sf::ElementInformation::getFocusLength ( ) const

Gets the focus length of the element.

◆ getSpotSize()

double sf::ElementInformation::getSpotSize ( ) const

Gets the spot size of the element.

◆ read()

bool sf::ElementInformation::read ( const IniProfile ini,
const std::string &  section = {} 
)

Reads the class data from an ini-profile.

Parameters
iniReference to the ini-profile instance.
sectionSection to read the info from where an empty string defaults to the default section name.
Returns
True when reading is successful.

◆ setFocusLength()

void sf::ElementInformation::setFocusLength ( double  value)

Sets the focus length of the element.

◆ setSpotSize()

void sf::ElementInformation::setSpotSize ( double  value)

Sets the spot size of the element.

◆ write()

void sf::ElementInformation::write ( IniProfile ini,
const std::string &  section = {} 
)

Writes the class data to an ini-profile.

Parameters
iniReference to the ini-profile instance.
sectionSection to read the info from where an empty string defaults to the default section name.

The documentation for this class was generated from the following file: