Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
JsonUtils Namespace Reference

Functions

double numberOr (const QJsonObject &obj, const char *key, double fallback)
 
QJsonArray vec3ToJson (const glm::vec3 &v)
 
glm::vec3 jsonToVec3 (QJsonArray arr, const glm::vec3 &fallback=glm::vec3(0.0f))
 
QJsonObject thermalToJson (const ThermalProperties &props)
 
ThermalProperties jsonToThermal (const QJsonObject &obj, const ThermalProperties &fallback)
 

Function Documentation

◆ jsonToThermal()

ThermalProperties JsonUtils::jsonToThermal ( const QJsonObject &  obj,
const ThermalProperties fallback 
)
inline

Definition at line 64 of file SceneSerializer.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonToVec3()

glm::vec3 JsonUtils::jsonToVec3 ( QJsonArray  arr,
const glm::vec3 &  fallback = glm::vec3(0.0f) 
)
inline

Definition at line 26 of file SceneSerializer.cpp.

Here is the caller graph for this function:

◆ numberOr()

double JsonUtils::numberOr ( const QJsonObject &  obj,
const char *  key,
double  fallback 
)
inline

Definition at line 13 of file SceneSerializer.cpp.

Here is the caller graph for this function:

◆ thermalToJson()

QJsonObject JsonUtils::thermalToJson ( const ThermalProperties props)
inline

Definition at line 36 of file SceneSerializer.cpp.

Here is the caller graph for this function:

◆ vec3ToJson()

QJsonArray JsonUtils::vec3ToJson ( const glm::vec3 &  v)
inline

Definition at line 18 of file SceneSerializer.cpp.

Here is the caller graph for this function: