Class SceneLoader

Nested Relationships

Class Documentation

class SceneLoader

Importer of SPlisHSPlasH scene files.

Public Functions

inline nlohmann::json &getJSONData()
void readScene(const char *fileName, Scene &scene)
template<typename T>
inline bool readValue(const nlohmann::json &j, T &v)
template<typename T, int size>
inline bool readVector(const nlohmann::json &j, Eigen::Matrix<T, size, 1, Eigen::DontAlign> &vec)
template<typename T>
inline bool readValue(const std::string &section, const std::string &key, T &v)
inline bool hasValue(const std::string &section, const std::string &key)
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 readMaterialParameterObject(const std::string &key, GenParam::ParameterObject *paramObj)
void readMaterialParameterObject(const std::string &key, SPH::NonPressureForceBase *paramObj)
void readTimeStepParameterObject(const std::string &key, SPH::TimeStep *paramObj)
void readParameterObject(const std::string &key, GenParam::ParameterObject *paramObj)
template<>
bool readValue(const nlohmann::json &j, bool &v)
template<>
bool readValue(const nlohmann::json &j, bool &v)

Protected Functions

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

Protected Attributes

nlohmann::json m_jsonData
struct Scene

Struct to store scene information.

Public Members

std::vector<BoundaryParameterObject*> boundaryModels
std::vector<FluidModelParameterObject*> fluidModels
std::vector<FluidBlockParameterObject*> fluidBlocks
std::vector<EmitterParameterObject*> emitters
std::vector<AnimationFieldParameterObject*> animatedFields
std::vector<MaterialParameterObject*> materials
Real particleRadius
bool sim2D