mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT > Struct Template Reference

#include <mc_rtc/gui/Polyhedron.h>

Inheritance diagram for mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >:
Collaboration diagram for mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >:

Public Member Functions

 PolyhedronVerticesTrianglesImpl (const std::string &name, const PolyhedronConfig &config, GetVerticesT get_vertices_fn, GetTrianglesT get_triangles_fn)
 
 PolyhedronVerticesTrianglesImpl ()
 
void write (mc_rtc::MessagePackBuilder &builder)
 
- Public Member Functions inherited from mc_rtc::gui::Element
const std::string & name () const
 
int id () const
 
void id (int idIn)
 
void write (mc_rtc::MessagePackBuilder &)
 
bool handleRequest (const mc_rtc::Configuration &)
 
 Element ()
 

Static Public Member Functions

static constexpr size_t write_size ()
 
- Static Public Member Functions inherited from mc_rtc::gui::Element
static constexpr size_t write_size ()
 

Static Public Attributes

static constexpr auto type = Elements::PolyhedronVerticesTriangles
 

Protected Attributes

PolyhedronConfig config_
 
GetVerticesT get_vertices_fn_
 
GetTrianglesT get_triangles_fn_
 
- Protected Attributes inherited from mc_rtc::gui::Element
std::string name_
 
int id_
 

Additional Inherited Members

- Protected Member Functions inherited from mc_rtc::gui::Element
 Element (const std::string &name)
 

Detailed Description

template<typename GetVerticesT, typename GetTrianglesT>
struct mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >

Polyhedron should display a polyhedron

Template Parameters
GetVerticesTShould return a list of vertices as an std::vector<Eigen::Vector3d>
GetTrianglesTShould return a list of triangle as std::vector<std::array<size_t, 3>>

Constructor & Destructor Documentation

◆ PolyhedronVerticesTrianglesImpl() [1/2]

template<typename GetVerticesT , typename GetTrianglesT >
mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::PolyhedronVerticesTrianglesImpl ( const std::string &  name,
const PolyhedronConfig config,
GetVerticesT  get_vertices_fn,
GetTrianglesT  get_triangles_fn 
)
inline

◆ PolyhedronVerticesTrianglesImpl() [2/2]

template<typename GetVerticesT , typename GetTrianglesT >
mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::PolyhedronVerticesTrianglesImpl ( )
inline

Invalid element

Member Function Documentation

◆ write()

template<typename GetVerticesT , typename GetTrianglesT >
void mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::write ( mc_rtc::MessagePackBuilder builder)
inline

◆ write_size()

template<typename GetVerticesT , typename GetTrianglesT >
static constexpr size_t mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::write_size ( )
inlinestaticconstexpr

Member Data Documentation

◆ config_

template<typename GetVerticesT , typename GetTrianglesT >
PolyhedronConfig mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::config_
protected

◆ get_triangles_fn_

template<typename GetVerticesT , typename GetTrianglesT >
GetTrianglesT mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::get_triangles_fn_
protected

◆ get_vertices_fn_

template<typename GetVerticesT , typename GetTrianglesT >
GetVerticesT mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::get_vertices_fn_
protected

◆ type

template<typename GetVerticesT , typename GetTrianglesT >
constexpr auto mc_rtc::gui::details::PolyhedronVerticesTrianglesImpl< GetVerticesT, GetTrianglesT >::type = Elements::PolyhedronVerticesTriangles
staticconstexpr

The documentation for this struct was generated from the following file: