Geometrize  1.0
An application for geometrizing images into geometric primitives
Public Member Functions | Private Attributes | List of all members
geometrize::serialization::ImageTaskPreferencesData Class Reference

The ImageTaskPreferencesData struct represents the preferences data for an image task. More...

#include <imagetaskpreferencesdata.h>

Public Member Functions

template<class Archive >
void archive (Archive &ar, geometrize::ImageRunnerOptions &options, bool &scriptsEnabled, std::map< std::string, std::string > &scripts)
 

Private Attributes

const std::string shapeAlphaKey {"shapeAlpha"}
 
const std::string maxShapeMutationsKey {"maxShapeMutations"}
 
const std::string shapeCountKey {"shapeCount"}
 
const std::string shapeTypesKey {"shapeTypes"}
 
const std::string randomSeedKey {"randomSeed"}
 
const std::string maxThreadsKey {"maxThreads"}
 
const std::string shapeBounds {"shapeBounds"}
 
const std::string scriptsEnabledKey {"scriptModeEnabled"}
 
const std::string scriptsKey {"scripts"}
 

Detailed Description

The ImageTaskPreferencesData struct represents the preferences data for an image task.

Member Function Documentation

◆ archive()

template<class Archive >
void geometrize::serialization::ImageTaskPreferencesData::archive ( Archive &  ar,
geometrize::ImageRunnerOptions &  options,
bool &  scriptsEnabled,
std::map< std::string, std::string > &  scripts 
)
inline
36  {
37  ar(cereal::make_nvp(shapeAlphaKey, options.alpha));
38  ar(cereal::make_nvp(maxShapeMutationsKey, options.maxShapeMutations));
39  ar(cereal::make_nvp(shapeCountKey, options.shapeCount));
40  ar(cereal::make_nvp(shapeTypesKey, options.shapeTypes));
41  ar(cereal::make_nvp(randomSeedKey, options.seed));
42  ar(cereal::make_nvp(maxThreadsKey, options.maxThreads));
43  ar(cereal::make_nvp(shapeBounds, options.shapeBounds));
44  ar(cereal::make_nvp(scriptsEnabledKey, scriptsEnabled));
45  ar(cereal::make_nvp(scriptsKey, scripts));
46  }
Here is the caller graph for this function:

Member Data Documentation

◆ maxShapeMutationsKey

const std::string geometrize::serialization::ImageTaskPreferencesData::maxShapeMutationsKey {"maxShapeMutations"}
private

◆ maxThreadsKey

const std::string geometrize::serialization::ImageTaskPreferencesData::maxThreadsKey {"maxThreads"}
private

◆ randomSeedKey

const std::string geometrize::serialization::ImageTaskPreferencesData::randomSeedKey {"randomSeed"}
private

◆ scriptsEnabledKey

const std::string geometrize::serialization::ImageTaskPreferencesData::scriptsEnabledKey {"scriptModeEnabled"}
private

◆ scriptsKey

const std::string geometrize::serialization::ImageTaskPreferencesData::scriptsKey {"scripts"}
private

◆ shapeAlphaKey

const std::string geometrize::serialization::ImageTaskPreferencesData::shapeAlphaKey {"shapeAlpha"}
private

◆ shapeBounds

const std::string geometrize::serialization::ImageTaskPreferencesData::shapeBounds {"shapeBounds"}
private

◆ shapeCountKey

const std::string geometrize::serialization::ImageTaskPreferencesData::shapeCountKey {"shapeCount"}
private

◆ shapeTypesKey

const std::string geometrize::serialization::ImageTaskPreferencesData::shapeTypesKey {"shapeTypes"}
private

The documentation for this class was generated from the following file:
geometrize::serialization::ImageTaskPreferencesData::shapeTypesKey
const std::string shapeTypesKey
Definition: imagetaskpreferencesdata.h:52
geometrize::serialization::ImageTaskPreferencesData::shapeBounds
const std::string shapeBounds
Definition: imagetaskpreferencesdata.h:55
geometrize::serialization::ImageTaskPreferencesData::shapeAlphaKey
const std::string shapeAlphaKey
Definition: imagetaskpreferencesdata.h:49
geometrize::serialization::ImageTaskPreferencesData::maxThreadsKey
const std::string maxThreadsKey
Definition: imagetaskpreferencesdata.h:54
geometrize::serialization::ImageTaskPreferencesData::shapeCountKey
const std::string shapeCountKey
Definition: imagetaskpreferencesdata.h:51
geometrize::serialization::ImageTaskPreferencesData::maxShapeMutationsKey
const std::string maxShapeMutationsKey
Definition: imagetaskpreferencesdata.h:50
geometrize::serialization::ImageTaskPreferencesData::scriptsKey
const std::string scriptsKey
Definition: imagetaskpreferencesdata.h:58
geometrize::serialization::ImageTaskPreferencesData::scriptsEnabledKey
const std::string scriptsEnabledKey
Definition: imagetaskpreferencesdata.h:57
geometrize::serialization::ImageTaskPreferencesData::randomSeedKey
const std::string randomSeedKey
Definition: imagetaskpreferencesdata.h:53