Class SceneLoader
Defined in File SceneLoader.h
Class Documentation
-
class SceneLoader
Importer of SPlisHSPlasH scene files.
Public Functions
-
inline nlohmann::json &getJSONData()
-
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 §ion, const std::string &key, T &v)
-
inline bool hasValue(const std::string §ion, const std::string &key)
-
template<typename T, int size>
inline bool readVector(const std::string §ion, 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 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
-
bool sim2D
-
std::vector<BoundaryParameterObject*> boundaryModels
-
inline nlohmann::json &getJSONData()