NDEVR
API Documentation
MagneticCalibration.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/IOFactory.h>
4#include <NDEVR/Model.h>
5#include <NDEVR/Buffer.h>
6#include <NDEVR/Vector.h>
7namespace NDEVR
8{
9
15 class HARDWARE_API MagneticCalibrationFactory final : public IOFactory
16 {
17 public:
18 MagneticCalibrationFactory();
19 private:
23 void getSupportedFormats(Buffer<FileFormat>& formats, bool is_read) override;
29 Buffer<UUID> filterModelsToExport(Buffer<UUID> models_to_check, const DesignObjectLookup* lookup, const FileFormat& export_format) const override;
33 bool readFile(FactoryParameters& file) override;
37 bool writeFile(FactoryParameters& file) override;
41 virtual FactoryFeatures factoryFeatures(const FactoryParameters& file, bool is_import) const override;
42 };
43}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A core class where all Design Objects including models, materials, and geometries are stored.
Allows IOFactories to report what features they support to make the import/export dialogs easier to s...
Data that describes a particular file format and how to use the format with the program.
Definition FileFormat.h:45
IOFactory(const StringView &factory_name)
Constructs an IOFactory with the given factory name.
virtual FactoryFeatures factoryFeatures(const FactoryParameters &file, bool is_import) const override
Returns the feature flags for this factory.
void getSupportedFormats(Buffer< FileFormat > &formats, bool is_read) override
Populates the list of supported file formats for reading and writing.
bool readFile(FactoryParameters &file) override
Reads magnetic calibration data from a file.
Buffer< UUID > filterModelsToExport(Buffer< UUID > models_to_check, const DesignObjectLookup *lookup, const FileFormat &export_format) const override
Filters a list of models to only those exportable by this factory.
bool writeFile(FactoryParameters &file) override
Writes magnetic calibration data to a file.
The primary namespace for the NDEVR SDK.
A container of input information that is to be filled with output information by an IOFactory.
Definition IOFactory.h:105