DART
6.10.1
|
#include <Asset.hpp>
Public Member Functions | |
Asset ()=default | |
Default constructor. More... | |
Elements | |
std::size_t | getNumMeshes () const |
Returns the number of <mesh> elements in <asset>. More... | |
const Mesh & | getMesh (std::size_t index) const |
Returns <mesh> element at index in <asset>. More... | |
const Mesh * | getMesh (const std::string &name) const |
Finds <mesh> element by name. More... | |
Private Member Functions | |
Errors | read (tinyxml2::XMLElement *element) |
Errors | preprocess (const Compiler &compiler) |
Updates attributes and elements that doesn't require any other elements. More... | |
Errors | compile (const Compiler &compiler) |
Updates attributes and elements that require the preprocessed child elements of this <Asset>. More... | |
Errors | postprocess (const Compiler &compiler) |
Updates attributes and elements that require the compiled parent element. More... | |
Private Attributes | |
std::vector< Mesh > | mMeshes |
std::unordered_map< std::string, Mesh * > | mMeshMap |
Friends | |
class | MujocoModel |
|
default |
Default constructor.
Updates attributes and elements that require the preprocessed child elements of this <Asset>.
const Mesh * dart::utils::MjcfParser::detail::Asset::getMesh | ( | const std::string & | name | ) | const |
Finds <mesh> element by name.
const Mesh & dart::utils::MjcfParser::detail::Asset::getMesh | ( | std::size_t | index | ) | const |
Returns <mesh> element at index
in <asset>.
std::size_t dart::utils::MjcfParser::detail::Asset::getNumMeshes | ( | ) | const |
Returns the number of <mesh> elements in <asset>.
Updates attributes and elements that require the compiled parent element.
Updates attributes and elements that doesn't require any other elements.
|
private |
|
friend |
|
private |
|
private |