Celeritas 0.7.0-dev.555+develop.5c5a8f0a7
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
ObjectIO.json.hh File Reference
#include <memory>
#include <nlohmann/json.hpp>
#include "orange/orangeinp/IntersectRegion.hh"
#include "orange/transform/VariantTransform.hh"
#include "CsgTypes.hh"

Classes

struct  nlohmann::adl_serializer< CelerSPObjConst >
 
struct  nlohmann::adl_serializer< CelerVarTransform >
 

Typedefs

using nlohmann::CelerSPObjConst = std::shared_ptr< celeritas::orangeinp::ObjectInterface const >
 
using nlohmann::CelerVarTransform = celeritas::VariantTransform
 

Functions

std::string celeritas::orangeinp::to_string (ObjectInterface const &obj)
 Get a JSON string representing an object.
 
template<OperatorToken Op>
void celeritas::orangeinp::to_json (nlohmann::json &j, JoinObjects< Op > const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, NegatedObject const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolyCone const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, RevolvedPolygon const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, ShapeBase const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, SolidBase const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, StackedExtrudedPolygon const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Transformed const &obj)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Truncated const &tr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, PolySegments const &ps)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EnclosedAzi const &azi)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EnclosedPolar const &pol)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, IntersectRegionInterface const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Box const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Cone const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, CutCylinder const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Cylinder const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Ellipsoid const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EllipticalCone const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, EllipticalCylinder const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, ExtrudedPolygon const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, GenPrism const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Hyperboloid const &v)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfPlane const &v)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfAziWedge const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, InfPolarWedge const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Involute const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Paraboloid const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Parallelepiped const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Prism const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Sphere const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Tet const &cr)
 
void celeritas::orangeinp::to_json (nlohmann::json &j, Torus const &cr)
 

Function Documentation

◆ to_json() [1/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Box const &  cr 
)

Write helper classes to JSON

◆ to_json() [2/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Cone const &  cr 
)

Write helper classes to JSON

◆ to_json() [3/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
CutCylinder const &  cr 
)

Write helper classes to JSON

◆ to_json() [4/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Cylinder const &  cr 
)

Write helper classes to JSON

◆ to_json() [5/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Ellipsoid const &  cr 
)

Write helper classes to JSON

◆ to_json() [6/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EllipticalCone const &  cr 
)

Write helper classes to JSON

◆ to_json() [7/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EllipticalCylinder const &  cr 
)

Write helper classes to JSON

◆ to_json() [8/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EnclosedAzi const &  azi 
)

Write helper classes to JSON

◆ to_json() [9/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
EnclosedPolar const &  pol 
)

Write helper classes to JSON

◆ to_json() [10/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
ExtrudedPolygon const &  cr 
)

Write helper classes to JSON

◆ to_json() [11/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
GenPrism const &  cr 
)

Write helper classes to JSON

◆ to_json() [12/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Hyperboloid const &  v 
)

Write helper classes to JSON

◆ to_json() [13/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
InfAziWedge const &  cr 
)

Write helper classes to JSON

◆ to_json() [14/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
InfPlane const &  v 
)

Write helper classes to JSON

◆ to_json() [15/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
InfPolarWedge const &  cr 
)

Write helper classes to JSON

◆ to_json() [16/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
IntersectRegionInterface const &  cr 
)

Write intersect regions to JSON

◆ to_json() [17/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Involute const &  cr 
)

Write helper classes to JSON

◆ to_json() [18/33]

template<OperatorToken Op>
void celeritas::orangeinp::to_json ( nlohmann::json &  j,
JoinObjects< Op > const &  obj 
)

Write objects to JSON

◆ to_json() [19/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
NegatedObject const &  obj 
)

Write objects to JSON

◆ to_json() [20/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Paraboloid const &  cr 
)

Write helper classes to JSON

◆ to_json() [21/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Parallelepiped const &  cr 
)

Write helper classes to JSON

◆ to_json() [22/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
PolyCone const &  obj 
)

Write objects to JSON

◆ to_json() [23/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
PolySegments const &  ps 
)

Write helper classes to JSON

◆ to_json() [24/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Prism const &  cr 
)

Write helper classes to JSON

◆ to_json() [25/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
RevolvedPolygon const &  obj 
)

Write objects to JSON

◆ to_json() [26/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
ShapeBase const &  obj 
)

Write objects to JSON

◆ to_json() [27/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
SolidBase const &  obj 
)

Write objects to JSON

◆ to_json() [28/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Sphere const &  cr 
)

Write helper classes to JSON

◆ to_json() [29/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
StackedExtrudedPolygon const &  cr 
)

Write objects to JSON

◆ to_json() [30/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Tet const &  cr 
)

Write helper classes to JSON

◆ to_json() [31/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Torus const &  cr 
)

Write helper classes to JSON

◆ to_json() [32/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Transformed const &  obj 
)

Write objects to JSON

◆ to_json() [33/33]

void celeritas::orangeinp::to_json ( nlohmann::json &  j,
Truncated const &  tr 
)

Write objects to JSON

◆ to_string()

std::string celeritas::orangeinp::to_string ( ObjectInterface const &  )

Get a JSON string representing an object.

See also
ObjectInterface.hh