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

#include <Mesh.hpp>

Public Member Functions

 Mesh ()=default
 Default constructor. More...
 
Attributes
const std::string & getName () const
 
const std::string & getFile () const
 
const Eigen::Vector3d & getScale () const
 
dynamics::MeshShapePtr getMeshShape () const
 

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 <Mesh>. More...
 
Errors postprocess (const Compiler &compiler)
 Updates attributes and elements that require the compiled parent element. More...
 
dynamics::MeshShapePtr createMeshShape () const
 

Private Attributes

MeshAttributes mAttributes
 
std::string mName {""}
 Name of this Mesh. More...
 
std::string mFile {""}
 
Eigen::Vector3d mScale {Eigen::Vector3d::Ones()}
 
common::Uri mMeshUri
 
common::ResourceRetrieverPtr mRetriever
 
bool mTriedToParse {false}
 
dynamics::MeshShapePtr mMeshShape {nullptr}
 

Friends

class Asset
 
class Default
 

Constructor & Destructor Documentation

◆ Mesh()

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

Default constructor.

Member Function Documentation

◆ compile()

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

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

◆ createMeshShape()

dynamics::MeshShapePtr dart::utils::MjcfParser::detail::Mesh::createMeshShape ( ) const
private

◆ getFile()

const std::string & dart::utils::MjcfParser::detail::Mesh::getFile ( ) const

◆ getMeshShape()

dynamics::MeshShapePtr dart::utils::MjcfParser::detail::Mesh::getMeshShape ( ) const

◆ getName()

const std::string & dart::utils::MjcfParser::detail::Mesh::getName ( ) const

◆ getScale()

const Eigen::Vector3d & dart::utils::MjcfParser::detail::Mesh::getScale ( ) const

◆ postprocess()

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

Updates attributes and elements that require the compiled parent element.

◆ preprocess()

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

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

◆ read()

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

Friends And Related Function Documentation

◆ Asset

friend class Asset
friend

◆ Default

friend class Default
friend

Member Data Documentation

◆ mAttributes

MeshAttributes dart::utils::MjcfParser::detail::Mesh::mAttributes
private

◆ mFile

std::string dart::utils::MjcfParser::detail::Mesh::mFile {""}
private

◆ mMeshShape

dynamics::MeshShapePtr dart::utils::MjcfParser::detail::Mesh::mMeshShape {nullptr}
mutableprivate

◆ mMeshUri

common::Uri dart::utils::MjcfParser::detail::Mesh::mMeshUri
private

◆ mName

std::string dart::utils::MjcfParser::detail::Mesh::mName {""}
private

Name of this Mesh.

◆ mRetriever

common::ResourceRetrieverPtr dart::utils::MjcfParser::detail::Mesh::mRetriever
private

◆ mScale

Eigen::Vector3d dart::utils::MjcfParser::detail::Mesh::mScale {Eigen::Vector3d::Ones()}
private

◆ mTriedToParse

bool dart::utils::MjcfParser::detail::Mesh::mTriedToParse {false}
mutableprivate