open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
iACsvConfig Struct Reference

parameters for csv loading configuraton 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 , MappedCount
}
 
enum  VisualizationType {
  UseVolume , Lines , Cylinders , Ellipses ,
  NoVis , VisTypeCount
}
 

Public Member Functions

 iACsvConfig ()
 
bool isValid (QString &errorMsg) const
 
bool load (QSettings const &settings, const QString &formatName)
 Load a given configuration name. More...
 
void save (QSettings &settings, const QString &formatName)
 Save this configuration under the given name in the given settings object. More...
 

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 More...
 
static iACsvConfig const & getFCVoidFormat (QString const &fileName)
 
static QString getFormatKey (QString const &formatName)
 Return base key for a given format. More...
 
static QStringList getListFromRegistry ()
 Return list of all csv configs stored in registry, list is empty if no format definitions exist. More...
 

Public Attributes

bool addAutoID
 whether to add an automatic ID column More...
 
bool addClassID
 value to use as diameter for all objects More...
 
QMap< uint, uint > columnMapping
 curved fiber optimization: if 1, all points along the fiber will be used; if larger, points will be skipped More...
 
QString columnSeparator
 string separating the columns in the csv More...
 
bool computeAngles
 
bool computeCenter
 
bool computeLength
 
bool computeStartEnd
 flags whether to compute additional columns More...
 
bool computeTensors
 
bool containsHeader
 whether the file contains a header More...
 
QStringList currentHeaders
 current headers of the table More...
 
QString curvedFiberFileName
 filename for curved fiber information, also not stored in registry More...
 
int cylinderQuality
 how to visualize the given objects More...
 
QString decimalSeparator
 string separating the integer from the fractional part in the numbers More...
 
QString encoding
 text encoding of the csv file More...
 
QString fileName
 filename, not stored in registrys More...
 
double fixedDiameterValue
 whether to insert a fixed diameter (given by fixedDiameterValue) More...
 
bool isDiameterFixed
 offset to apply to all coordinates (start, end, center) More...
 
iAObjectType objectType
 type of objects to be analyzed More...
 
double offset [3]
 map a specific value (denoted by an ID from MappedColumn) to the number of the column where it's stored More...
 
size_t segmentSkip
 how much sides are used for the cylinder visualization; the higher the number, the worse the quality (default=12) More...
 
QStringList selectedHeaders
 names of the selected headers More...
 
size_t skipLinesEnd
 how many lines to skip at start and end of the file More...
 
size_t skipLinesStart
 
float spacing
 volume spacing to be used, currently unused More...
 
QString unit
 unit of measurement for the values given in the csv More...
 
VisualizationType visType
 

Static Public Attributes

static const QString FCPFiberFormat
 
static const int FCPFormatStartSkipLines = 5
 
static const QString FCVoidFormat
 

Detailed Description

parameters for csv loading configuraton

Member Enumeration Documentation

◆ MappedColumn

Enumerator
NotMapped 

"ID" for columns needed either in computation of other columns or later in FeatureScout

StartX 
StartY 
StartZ 
EndX 
EndY 
EndZ 
CenterX 
CenterY 
CenterZ 
Length 
Diameter 
Phi 
Theta 
DimensionX 
DimensionY 
DimensionZ 
MappedCount 

◆ VisualizationType

Enumerator
UseVolume 
Lines 
Cylinders 
Ellipses 
NoVis 
VisTypeCount 

Constructor & Destructor Documentation

◆ iACsvConfig()

iACsvConfig::iACsvConfig ( )

Member Function Documentation

◆ getFCPFiberFormat()

iACsvConfig const & iACsvConfig::getFCPFiberFormat ( QString const &  fileName)
static

whether to add class ID at the end. This setting is not stored, rather this is a use-case dependent setting

◆ getFCVoidFormat()

iACsvConfig const & iACsvConfig::getFCVoidFormat ( QString const &  fileName)
static

◆ getFormatKey()

QString iACsvConfig::getFormatKey ( QString const &  formatName)
static

Return base key for a given format.

◆ getListFromRegistry()

QStringList iACsvConfig::getListFromRegistry ( )
static

Return list of all csv configs stored in registry, list is empty if no format definitions exist.

◆ isValid()

bool iACsvConfig::isValid ( QString &  errorMsg) const

◆ load()

bool iACsvConfig::load ( QSettings const &  settings,
const QString &  formatName 
)

Load a given configuration name.

◆ save()

void iACsvConfig::save ( QSettings &  settings,
const QString &  formatName 
)

Save this configuration under the given name in the given settings object.

Member Data Documentation

◆ addAutoID

bool iACsvConfig::addAutoID

whether to add an automatic ID column

◆ addClassID

bool iACsvConfig::addClassID

value to use as diameter for all objects

◆ columnMapping

QMap<uint, uint> iACsvConfig::columnMapping

curved fiber optimization: if 1, all points along the fiber will be used; if larger, points will be skipped

◆ columnSeparator

QString iACsvConfig::columnSeparator

string separating the columns in the csv

◆ computeAngles

bool iACsvConfig::computeAngles

◆ computeCenter

bool iACsvConfig::computeCenter

◆ computeLength

bool iACsvConfig::computeLength

◆ computeStartEnd

bool iACsvConfig::computeStartEnd

flags whether to compute additional columns

◆ computeTensors

bool iACsvConfig::computeTensors

◆ containsHeader

bool iACsvConfig::containsHeader

whether the file contains a header

◆ currentHeaders

QStringList iACsvConfig::currentHeaders

current headers of the table

◆ curvedFiberFileName

QString iACsvConfig::curvedFiberFileName

filename for curved fiber information, also not stored in registry

◆ cylinderQuality

int iACsvConfig::cylinderQuality

how to visualize the given objects

◆ decimalSeparator

QString iACsvConfig::decimalSeparator

string separating the integer from the fractional part in the numbers

◆ encoding

QString iACsvConfig::encoding

text encoding of the csv file

◆ FCPFiberFormat

const QString iACsvConfig::FCPFiberFormat
static

◆ FCPFormatStartSkipLines

const int iACsvConfig::FCPFormatStartSkipLines = 5
static

◆ FCVoidFormat

const QString iACsvConfig::FCVoidFormat
static

◆ fileName

QString iACsvConfig::fileName

filename, not stored in registrys

◆ fixedDiameterValue

double iACsvConfig::fixedDiameterValue

whether to insert a fixed diameter (given by fixedDiameterValue)

◆ isDiameterFixed

bool iACsvConfig::isDiameterFixed

offset to apply to all coordinates (start, end, center)

◆ objectType

iAObjectType iACsvConfig::objectType

type of objects to be analyzed

◆ offset

double iACsvConfig::offset[3]

map a specific value (denoted by an ID from MappedColumn) to the number of the column where it's stored

◆ segmentSkip

size_t iACsvConfig::segmentSkip

how much sides are used for the cylinder visualization; the higher the number, the worse the quality (default=12)

◆ selectedHeaders

QStringList iACsvConfig::selectedHeaders

names of the selected headers

◆ skipLinesEnd

size_t iACsvConfig::skipLinesEnd

how many lines to skip at start and end of the file

◆ skipLinesStart

size_t iACsvConfig::skipLinesStart

◆ spacing

float iACsvConfig::spacing

volume spacing to be used, currently unused

◆ unit

QString iACsvConfig::unit

unit of measurement for the values given in the csv

◆ visType

VisualizationType iACsvConfig::visType

The documentation for this struct was generated from the following files: