Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::scene_graph::Material Class Reference

Public Types

using Ptr = std::shared_ptr<Material>
using ConstPtr = std::shared_ptr<const Material>

Public Member Functions

 Material (std::string name)
 Material (const Material &)=default
Material & operator= (const Material &)=default
 Material (Material &&)=default
Material & operator= (Material &&)=default
const std::string & getName () const
void clear ()
bool operator== (const Material &rhs) const
bool operator!= (const Material &rhs) const

Static Public Member Functions

static std::shared_ptr< Material > getDefaultMaterial ()
 Get a new instance of the default material.

Public Attributes

std::string texture_filename
Eigen::Vector4d color

Friends

template<class Archive>
friend void::tesseract::scene_graph::serialize (Archive &ar, Material &obj)

Member Function Documentation

◆ getDefaultMaterial()

std::shared_ptr< Material > tesseract::scene_graph::Material::getDefaultMaterial ( )
static

Get a new instance of the default material.

Each call returns a distinct object, so two Visuals constructed independently do not share one. Copying a Visual still shares its material with the copy.