 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
6 #include "cereal/cereal.hpp"
7 #include "cereal/types/map.hpp"
8 #include "cereal/types/vector.hpp"
10 #include "geometrize/runner/imagerunneroptions.h"
15 template<
typename Archive>
16 void serialize(Archive& ar, geometrize::ImageRunnerShapeBoundsOptions& bounds)
18 ar(cereal::make_nvp(
"enabled", bounds.enabled),
19 cereal::make_nvp(
"xMinPercent", bounds.xMinPercent),
20 cereal::make_nvp(
"yMinPercent", bounds.yMinPercent),
21 cereal::make_nvp(
"xMaxPercent", bounds.xMaxPercent),
22 cereal::make_nvp(
"yMaxPercent", bounds.yMaxPercent));
25 namespace serialization
34 template<
class Archive>
35 void archive(Archive& ar, geometrize::ImageRunnerOptions& options,
bool& scriptsEnabled, std::map<std::string, std::string>& scripts)
43 ar(cereal::make_nvp(
shapeBounds, options.shapeBounds));
The ImageTaskPreferencesData struct represents the preferences data for an image task.
Definition: imagetaskpreferencesdata.h:32
const std::string shapeTypesKey
Definition: imagetaskpreferencesdata.h:52
const std::string shapeBounds
Definition: imagetaskpreferencesdata.h:55
const std::string shapeAlphaKey
Definition: imagetaskpreferencesdata.h:49
void archive(Archive &ar, geometrize::ImageRunnerOptions &options, bool &scriptsEnabled, std::map< std::string, std::string > &scripts)
Definition: imagetaskpreferencesdata.h:35
const std::string maxThreadsKey
Definition: imagetaskpreferencesdata.h:54
void serialize(Archive &ar, geometrize::ImageRunnerShapeBoundsOptions &bounds)
Definition: imagetaskpreferencesdata.h:16
Definition: commandlineparser.cpp:73
const std::string shapeCountKey
Definition: imagetaskpreferencesdata.h:51
const std::string maxShapeMutationsKey
Definition: imagetaskpreferencesdata.h:50
const std::string scriptsKey
Definition: imagetaskpreferencesdata.h:58
const std::string scriptsEnabledKey
Definition: imagetaskpreferencesdata.h:57
const std::string randomSeedKey
Definition: imagetaskpreferencesdata.h:53