TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
Mesh Class Reference

#include <mesh.h>

Inheritance diagram for Mesh:
[legend]
Collaboration diagram for Mesh:
[legend]

Public Member Functions

 Mesh ()
 
 ~Mesh ()
 
bool isA (const char *name) override
 
void clear () override
 
void setFilename (const std::string &path)
 
std::string getFilename () override
 
void setScale (double xs, double ys, double zs)
 
Vec3 getScale () override
 
void setColor (Color c)
 
void setColor (double r, double g, double b, double a=1.0)
 
void print (std::ostream &os) override
 
void setOrigin (double x, double y, double z) override
 
void getOrigin (double *xyz) const override
 
bool empty () const override
 
const char * getTypename () override
 
- Public Member Functions inherited from GeometryBase
virtual ~GeometryBase ()=default
 
virtual double getRadius ()
 
virtual double getLength ()
 

Additional Inherited Members

- Protected Member Functions inherited from GeometryBase
 GeometryBase ()
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 

Constructor & Destructor Documentation

◆ Mesh()

Mesh::Mesh ( )

◆ ~Mesh()

Mesh::~Mesh ( )

Member Function Documentation

◆ clear()

void Mesh::clear ( )
overridevirtual

Implements ObjectBase.

◆ empty()

bool Mesh::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ getFilename()

std::string Mesh::getFilename ( )
overridevirtual

Reimplemented from GeometryBase.

◆ getOrigin()

void Mesh::getOrigin ( double *  xyz) const
overridevirtual

Implements GeometryBase.

◆ getScale()

Vec3 Mesh::getScale ( )
overridevirtual

Reimplemented from GeometryBase.

◆ getTypename()

const char * Mesh::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

bool Mesh::isA ( const char *  name)
overridevirtual

Implements ObjectBase.

◆ print()

void Mesh::print ( std::ostream &  os)
overridevirtual

Implements ObjectBase.

◆ setColor() [1/2]

void Mesh::setColor ( Color  c)

◆ setColor() [2/2]

void Mesh::setColor ( double  r,
double  g,
double  b,
double  a = 1.0 
)

◆ setFilename()

void Mesh::setFilename ( const std::string &  path)

◆ setOrigin()

void Mesh::setOrigin ( double  x,
double  y,
double  z 
)
overridevirtual

Implements GeometryBase.

◆ setScale()

void Mesh::setScale ( double  xs,
double  ys,
double  zs 
)

The documentation for this class was generated from the following files: