Drake
VisualElement Class Referencefinal

#include <drake/attic/multibody/shapes/visual_element.h>

Public Member Functions

 VisualElement (const Eigen::Isometry3d &T_element_to_local)
 
 VisualElement (const Geometry &geometry, const Eigen::Isometry3d &T_element_to_local, const Eigen::Vector4d &material, const std::string &name="")
 Constructs a geometry at a specified transform with a given material (i.e. More...
 
 VisualElement (const VisualElement &)=default
 Copy constructor for use by, e.g., std::vector. More...
 
void operator= (const VisualElement &)=delete
 
 VisualElement (VisualElement &&)=delete
 
void operator= (VisualElement &&)=delete
 
 ~VisualElement () override=default
 
void setMaterial (const Eigen::Vector4d &material)
 Sets the element's material color, in RGBA format. More...
 
const Eigen::Vector4d & getMaterial () const
 Retrieves the element's material color, in RGBA format. More...
 
- Public Member Functions inherited from Element
 Element (const Geometry &geometry_in, const Eigen::Isometry3d &T_element_to_local_in)
 
 Element (const Geometry &geometry_in)
 
 Element (const Eigen::Isometry3d &T_element_to_local_in)
 
virtual ~Element ()
 
virtual Elementclone () const
 
const Eigen::Isometry3d & getWorldTransform () const
 
const Eigen::Isometry3d & getLocalTransform () const
 
void SetLocalTransform (const Eigen::Isometry3d &T_element_to_local)
 
void updateWorldTransform (const Eigen::Isometry3d &T_local_to_world)
 
Shape getShape () const
 
void setGeometry (const Geometry &geometry)
 
bool hasGeometry () const
 
const GeometrygetGeometry () const
 
void getTerrainContactPoints (Eigen::Matrix3Xd &points) const
 

Protected Attributes

Eigen::Vector4d material
 
std::string name
 
- Protected Attributes inherited from Element
Eigen::Isometry3d T_element_to_world
 
Eigen::Isometry3d T_element_to_local
 
std::unique_ptr< Geometrygeometry
 

Additional Inherited Members

- Protected Member Functions inherited from Element
 Element (const Element &)
 
void operator= (const Element &)=delete
 
 Element (Element &&)=delete
 
void operator= (Element &&)=delete
 
void setWorldTransform (const Eigen::Isometry3d &T_elem_to_world)
 

Constructor & Destructor Documentation

◆ VisualElement() [1/4]

VisualElement ( const Eigen::Isometry3d &  T_element_to_local)
explicit

◆ VisualElement() [2/4]

VisualElement ( const Geometry geometry,
const Eigen::Isometry3d &  T_element_to_local,
const Eigen::Vector4d &  material,
const std::string &  name = "" 
)

Constructs a geometry at a specified transform with a given material (i.e.

a color specified as a 4-vector of RGBA, each on [0, 1]).

◆ VisualElement() [3/4]

VisualElement ( const VisualElement )
default

Copy constructor for use by, e.g., std::vector.

◆ VisualElement() [4/4]

VisualElement ( VisualElement &&  )
delete

◆ ~VisualElement()

~VisualElement ( )
overridedefault

Member Function Documentation

◆ getMaterial()

const Eigen::Vector4d & getMaterial ( ) const

Retrieves the element's material color, in RGBA format.

◆ operator=() [1/2]

void operator= ( const VisualElement )
delete

◆ operator=() [2/2]

void operator= ( VisualElement &&  )
delete

◆ setMaterial()

void setMaterial ( const Eigen::Vector4d &  material)

Sets the element's material color, in RGBA format.

Member Data Documentation

◆ material

Eigen::Vector4d material
protected

◆ name

std::string name
protected

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