Class SceneLoader¶
Defined in File SceneLoader.h
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class
Utilities::SceneLoader¶ Importer of SPlisHSPlasH scene files.
Public Functions
-
template<typename
T, intsize>
inline boolreadVector(const nlohmann::json &j, Eigen::Matrix<T, size, 1, Eigen::DontAlign> &vec)¶
-
template<typename
T>
inline boolreadValue(const std::string §ion, const std::string &key, T &v)¶
-
inline bool
hasValue(const std::string §ion, const std::string &key)¶
-
template<typename
T, intsize>
inline boolreadVector(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
readParameterObject(const std::string &key, GenParam::ParameterObject *paramObj)¶
-
template<>
boolreadValue(const nlohmann::json &j, bool &v)¶
-
template<>
boolreadValue(const nlohmann::json &j, bool &v)
Protected Functions
-
void
readParameterObject(nlohmann::json &config, GenParam::ParameterObject *paramObj)¶
Protected Attributes
-
nlohmann::json
m_jsonData¶
-
struct
AnimationFieldData¶ Struct to store an animation field object.
-
struct
BoundaryData¶ Struct to store a boundary object.
Public Members
-
std::string
samplesFile¶
-
std::string
meshFile¶
-
bool
dynamic¶
-
bool
isWall¶
-
Eigen::Matrix<float, 4, 1, Eigen::DontAlign>
color¶
-
void *
rigidBody¶
-
std::string
mapFile¶
-
bool
mapInvert¶
-
Eigen::Matrix<unsigned int, 3, 1, Eigen::DontAlign>
mapResolution¶
-
unsigned int
samplingMode¶
-
bool
isAnimated¶
-
std::string
-
struct
Box¶ Struct for an AABB.
-
struct
EmitterData¶ Struct to store an emitter object.
-
struct
FluidBlock¶ Struct to store a fluid block.
-
struct
FluidData¶ Struct to store a fluid object.
-
struct
MaterialData¶ Struct to store particle coloring information.
-
struct
Scene¶ Struct to store scene information.
Public Members
-
std::vector<BoundaryData*>
boundaryModels¶
-
std::vector<FluidBlock*>
fluidBlocks¶
-
std::vector<EmitterData*>
emitters¶
-
std::vector<AnimationFieldData*>
animatedFields¶
-
std::vector<MaterialData*>
materials¶
-
bool
sim2D¶
-
std::vector<BoundaryData*>
-
template<typename