|
open_iA 2025.6
|
Holds the configuration parameters for loading a specific csv file format. More...
#include <iACsvConfig.h>
Public Types | |
| enum | MappedColumn { NotMapped = -1 , StartX , StartY , StartZ , EndX , EndY , EndZ , CenterX , CenterY , CenterZ , Length , Diameter , Phi , Theta , DimensionX , DimensionY , DimensionZ , CurvedLength , MappedCount } |
Public Member Functions | |
| iACsvConfig () | |
| bool | isValid (QString &errorMsg) const |
| bool | load (QSettings const &settings, const QString &formatName) |
| Load a given configuration name. | |
| void | save (QSettings &settings, const QString &formatName) |
| Save this configuration under the given name in the given settings object. | |
Static Public Member Functions | |
| static iACsvConfig const & | getFCPFiberFormat (QString const &fileName) |
| whether to add class ID at the end. This setting is not stored, rather this is a use-case dependent setting | |
| static iACsvConfig const & | getFCVoidFormat (QString const &fileName) |
| static QString | getFormatKey (QString const &formatName) |
| Return base key for a given format. | |
| static QStringList | getListFromRegistry () |
| Return list of all csv configs stored in registry, list is empty if no format definitions exist. | |
Public Attributes | |
| bool | addAutoID |
| whether to add an automatic ID column | |
| bool | addClassID |
| value to use as diameter for all objects | |
| iAColMapT | columnMapping |
| how to visualize the given objects | |
| QString | columnSeparator |
| string separating the columns in the csv | |
| bool | computeAngles |
| bool | computeCenter |
| bool | computeLength |
| bool | computeStartEnd |
| flags whether to compute additional columns | |
| bool | computeTensors |
| bool | containsHeader |
| whether the file contains a header | |
| QStringList | currentHeaders |
| current headers of the table | |
| QString | curvedFiberFileName |
| filename for curved fiber information, also not stored in registry | |
| QString | decimalSeparator |
| string separating the integer from the fractional part in the numbers | |
| QString | encoding |
| text encoding of the csv file | |
| QString | fileName |
| filename, not stored in registrys | |
| double | fixedDiameterValue |
| whether to insert a fixed diameter (given by fixedDiameterValue) | |
| bool | isDiameterFixed |
| offset to apply to all coordinates (start, end, center) | |
| iAObjectType | objectType |
| type of objects to be analyzed | |
| double | offset [3] |
| map a specific value (denoted by an ID from MappedColumn) to the number of the column where it's stored | |
| QStringList | selectedHeaders |
| names of the selected headers | |
| size_t | skipLinesEnd |
| how many lines to skip at start and end of the file | |
| size_t | skipLinesStart |
| float | spacing |
| volume spacing to be used, currently unused | |
| QString | unit |
| unit of measurement for the values given in the csv | |
| iAObjectVisType | visType |
Static Public Attributes | |
| static const QString | FCPFiberFormat |
| static const int | FCPFormatStartSkipLines = 5 |
| static const QString | FCVoidFormat |
Holds the configuration parameters for loading a specific csv file format.
| iACsvConfig::iACsvConfig | ( | ) |
|
static |
whether to add class ID at the end. This setting is not stored, rather this is a use-case dependent setting
|
static |
|
static |
Return base key for a given format.
|
static |
Return list of all csv configs stored in registry, list is empty if no format definitions exist.
| bool iACsvConfig::isValid | ( | QString & | errorMsg | ) | const |
| bool iACsvConfig::load | ( | QSettings const & | settings, |
| const QString & | formatName ) |
Load a given configuration name.
| void iACsvConfig::save | ( | QSettings & | settings, |
| const QString & | formatName ) |
Save this configuration under the given name in the given settings object.
| bool iACsvConfig::addAutoID |
whether to add an automatic ID column
| bool iACsvConfig::addClassID |
value to use as diameter for all objects
| iAColMapT iACsvConfig::columnMapping |
how to visualize the given objects
| QString iACsvConfig::columnSeparator |
string separating the columns in the csv
| bool iACsvConfig::computeAngles |
| bool iACsvConfig::computeCenter |
| bool iACsvConfig::computeLength |
| bool iACsvConfig::computeStartEnd |
flags whether to compute additional columns
| bool iACsvConfig::computeTensors |
| bool iACsvConfig::containsHeader |
whether the file contains a header
| QStringList iACsvConfig::currentHeaders |
current headers of the table
| QString iACsvConfig::curvedFiberFileName |
filename for curved fiber information, also not stored in registry
| QString iACsvConfig::decimalSeparator |
string separating the integer from the fractional part in the numbers
| QString iACsvConfig::encoding |
text encoding of the csv file
|
static |
|
static |
|
static |
| QString iACsvConfig::fileName |
filename, not stored in registrys
| double iACsvConfig::fixedDiameterValue |
whether to insert a fixed diameter (given by fixedDiameterValue)
| bool iACsvConfig::isDiameterFixed |
offset to apply to all coordinates (start, end, center)
| iAObjectType iACsvConfig::objectType |
type of objects to be analyzed
| double iACsvConfig::offset[3] |
map a specific value (denoted by an ID from MappedColumn) to the number of the column where it's stored
| QStringList iACsvConfig::selectedHeaders |
names of the selected headers
| size_t iACsvConfig::skipLinesEnd |
how many lines to skip at start and end of the file
| size_t iACsvConfig::skipLinesStart |
| float iACsvConfig::spacing |
volume spacing to be used, currently unused
| QString iACsvConfig::unit |
unit of measurement for the values given in the csv
| iAObjectVisType iACsvConfig::visType |