Class SceneWriter

Class Documentation

class SceneWriter

Importer of SPlisHSPlasH scene files.

Public Functions

inline SceneWriter(const nlohmann::json &config)
void writeScene(const char *fileName)
template<typename T>
inline bool writeValue(nlohmann::json &j, const std::string &key, const T &v)
template<typename T>
inline bool writeVector(nlohmann::json &j, const std::string &key, const Eigen::Matrix<T, 3, 1, Eigen::DontAlign> &vec)
template<typename T, int size>
inline bool readVector(const std::string &section, const std::string &key, Eigen::Matrix<T, size, 1, Eigen::DontAlign> &vec)
void updateMaterialParameterConfig(const std::string &key, GenParam::ParameterObject *paramObj)
void updateMaterialParameterConfig(const std::string &key, SPH::NonPressureForceBase *paramObj)
template<typename T>
inline void updateMaterialParameterConfig(const std::string &id, const std::string &key, const T &v)
void writeParameterObject(const std::string &key, GenParam::ParameterObject *paramObj)
void writeTimeStepParameterObject(const std::string &key, SPH::TimeStep *paramObj)

Protected Functions

void writeParameterObject(nlohmann::json &config, GenParam::ParameterObject *paramObj)

Protected Attributes

nlohmann::json m_jsonData