DART  6.10.1
dart::utils::MjcfParser::detail::Asset Class Referencefinal

#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 MeshgetMesh (std::size_t index) const
 Returns <mesh> element at index in <asset>. More...
 
const MeshgetMesh (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< MeshmMeshes
 
std::unordered_map< std::string, Mesh * > mMeshMap
 

Friends

class MujocoModel
 

Constructor & Destructor Documentation

◆ Asset()

dart::utils::MjcfParser::detail::Asset::Asset ( )
default

Default constructor.

Member Function Documentation

◆ compile()

Errors dart::utils::MjcfParser::detail::Asset::compile ( const Compiler compiler)
private

Updates attributes and elements that require the preprocessed child elements of this <Asset>.

◆ getMesh() [1/2]

const Mesh * dart::utils::MjcfParser::detail::Asset::getMesh ( const std::string &  name) const

Finds <mesh> element by name.

◆ getMesh() [2/2]

const Mesh & dart::utils::MjcfParser::detail::Asset::getMesh ( std::size_t  index) const

Returns <mesh> element at index in <asset>.

◆ getNumMeshes()

std::size_t dart::utils::MjcfParser::detail::Asset::getNumMeshes ( ) const

Returns the number of <mesh> elements in <asset>.

◆ postprocess()

Errors dart::utils::MjcfParser::detail::Asset::postprocess ( const Compiler compiler)
private

Updates attributes and elements that require the compiled parent element.

◆ preprocess()

Errors dart::utils::MjcfParser::detail::Asset::preprocess ( const Compiler compiler)
private

Updates attributes and elements that doesn't require any other elements.

◆ read()

Errors dart::utils::MjcfParser::detail::Asset::read ( tinyxml2::XMLElement *  element)
private

Friends And Related Function Documentation

◆ MujocoModel

friend class MujocoModel
friend

Member Data Documentation

◆ mMeshes

std::vector<Mesh> dart::utils::MjcfParser::detail::Asset::mMeshes
private

◆ mMeshMap

std::unordered_map<std::string, Mesh*> dart::utils::MjcfParser::detail::Asset::mMeshMap
private