5 #include <NoiseSource.h>
6 #include <scene/dynamic/DynSequence.h>
7 #include <maths/rigidmotion/RigidMotion.h>
15 using namespace rigidmotion;
34 static Color4f createColorFromXml(tinyxml2::XMLElement* node);
42 static std::map<std::string, ObjectT> createParamsFromXml(
43 tinyxml2::XMLElement* paramsNode
51 static Rotation createRotationFromXml(tinyxml2::XMLElement* rotGroupNode);
60 static glm::dvec3 createVec3dFromXml(
61 tinyxml2::XMLElement* node,
62 std::string attrPrefix
70 static std::shared_ptr<NoiseSource<double>>
71 createNoiseSource(tinyxml2::XMLElement *noise);
82 static ObjectT getAttribute(
83 tinyxml2::XMLElement* element,
87 std::string
const defaultMsg=
"Using default value for attribute"
97 static bool hasAttribute(
98 tinyxml2::XMLElement *element,
119 static std::vector<std::shared_ptr<DynMotion>> createDynMotionsVector(
120 tinyxml2::XMLElement *element
129 static void assertDocumentForAssetLoading(
130 tinyxml2::XMLDocument &doc,
131 std::string
const &filename,
132 std::string
const &path,
133 std::string
const &type,
134 std::string
const &
id,
135 std::string
const &caller
Class representing a color with 4 float components: RGBA.
Definition: Color4f.h:10
Definition: Rotation.h:80
Common utils for XML handling.
Definition: XmlUtils.h:20