File AlgebraJsonConverter.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Functions
-
void from_json(const nlohmann::json &j, Transform3 &t)¶
-
void to_json(nlohmann::json &j, const Transform3 &t)¶
-
namespace Transform3JsonConverter¶
Functions
-
Transform3 fromJson(const nlohmann::json &jTransform)¶
The Transform converter from json.
The Transform converter from json.
The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.
The Transform converter from json.
The type is given as a template argument in order to be able to construct the correct fitting types for surfaces.
- Parameters
jTransform – the transform json transformation
j – the read-in json object
jVolumeBounds – the read-in json object
jVolumeBounds – the read-in json object
- Returns
a transform object
- Returns
a shared_ptr to a surface object for type polymorphism
- Returns
a unique_ptr to a volume bounds object for type polymorphism
- Returns
a unique_ptr to a volume bounds object for type polymorphism
-
nlohmann::json toJson(const Transform3 &t, const Options &options = {})¶
The Transform converter to json.
- Parameters
t – the transform to be converted
options – transformation options
- Returns
a json object representing the transform
-
struct Options¶
- #include <Acts/Plugins/Json/AlgebraJsonConverter.hpp>
The options for the transform converter.
-
Transform3 fromJson(const nlohmann::json &jTransform)¶
-
void from_json(const nlohmann::json &j, Transform3 &t)¶