3#include <NDEVR/IOFactory.h>
4#include <NDEVR/Model.h>
5#include <NDEVR/Buffer.h>
6#include <NDEVR/Vector.h>
39 static constexpr const char*
TypeName() {
return "magnetic_calibration"; }
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
Definition FactoryFeatures.h:44
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
A service that provides Import/Export functionality for a model heirarchy. These can be registered wi...
Definition IOFactory.h:117
Stores magnetic calibration data as a Model including the transformation and calibration points.
Definition MagneticCalibration.h:14
bool hasSufficientData() const
Vector< 3, fltp08 > B() const
void calculate(fltp08 hm=1.0)
void setVertices(const Buffer< Vector< 3, fltp08 > > &vertices)
void writeToFile(File calibration_file, bool is_active)
Buffer< Vector< 3, fltp08 > > data() const
void setA(const Vector< 9, fltp08 > &A)
void removeOutliers(fltp08 rejection)
MagneticCalibrationData(const Model &model)
void addCalibrationPoint(const Vector< 3, fltp08 > &point, fltp08 hm=1.0)
Vector< 3, fltp08 > correct(Vertex< 3, fltp08 > vec)
void readFromFile(File calibration_file, bool is_active)
fltp04 calibrationPercent() const
static Matrix< fltp08 > CalibrationMatrix(const Vector< 9, fltp08 > &A, const Vector< 3, fltp08 > &B)
Model uncalibratedModel() const
void setB(const Vector< 3, fltp08 > &B)
void updateAndApplyCalibrationMatrix(const Vector< 9, fltp08 > &A, const Vector< 3, fltp08 > &B)
Model calibratedModel() const
MagneticCalibrationData()
Vector< 9, fltp08 > A() const
fltp08 meanVectorLength() const
static constexpr const char * TypeName()
Definition MagneticCalibration.h:39
IOFactory interface for reading and writing MagneticCalibrationData to files.
Definition MagneticCalibration.h:52
MagneticCalibrationFactory()
Definition Matrix.hpp:176
A core class that represents a node on model heirarchy. This node may contain a Geometry or one or mo...
Definition Model.h:58
A fixed-size array with better performance compared to dynamic containers.
Definition Vector.hpp:60
A vertex or point. A specific type of Vector used primarily for spacial location information.
Definition Vertex.hpp:48
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
A container of input information that is to be filled with output information by an IOFactory.
Definition IOFactory.h:61