Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
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 scriptsEnabledKey {"scriptModeEnabled"}
 
const std::string scriptsKey {"scripts"}
 

Detailed Description

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

Member Function Documentation

template<class Archive >
void geometrize::serialization::ImageTaskPreferencesData::archive ( Archive &  ar,
geometrize::ImageRunnerOptions &  options,
bool &  scriptsEnabled,
std::map< std::string, std::string > &  scripts 
)
inline
26  {
27  ar(cereal::make_nvp(shapeAlphaKey, options.alpha));
28  ar(cereal::make_nvp(maxShapeMutationsKey, options.maxShapeMutations));
29  ar(cereal::make_nvp(shapeCountKey, options.shapeCount));
30  ar(cereal::make_nvp(shapeTypesKey, options.shapeTypes));
31  ar(cereal::make_nvp(randomSeedKey, options.seed));
32  ar(cereal::make_nvp(maxThreadsKey, options.maxThreads));
33 
34  ar(cereal::make_nvp(scriptsEnabledKey, scriptsEnabled));
35  ar(cereal::make_nvp(scriptsKey, scripts));
36  }
const std::string randomSeedKey
Definition: imagetaskpreferencesdata.h:43
const std::string maxShapeMutationsKey
Definition: imagetaskpreferencesdata.h:40
const std::string scriptsKey
Definition: imagetaskpreferencesdata.h:47
const std::string shapeAlphaKey
Definition: imagetaskpreferencesdata.h:39
const std::string scriptsEnabledKey
Definition: imagetaskpreferencesdata.h:46
const std::string shapeTypesKey
Definition: imagetaskpreferencesdata.h:42
const std::string shapeCountKey
Definition: imagetaskpreferencesdata.h:41
const std::string maxThreadsKey
Definition: imagetaskpreferencesdata.h:44

Here is the caller graph for this function:

Member Data Documentation

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

The documentation for this class was generated from the following file: