mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT > Struct Template Reference

#include <mc_rtc/gui/Polyhedron.h>

Inheritance diagram for mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >:
Collaboration diagram for mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >:

Public Member Functions

 PolyhedronTrianglesListImpl (const std::string &name, const PolyhedronConfig &config, GetTrianglesT get_triangles_fn)
 
 PolyhedronTrianglesListImpl ()
 
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::PolyhedronTrianglesList
 

Protected Attributes

PolyhedronConfig config_
 
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 GetTrianglesT>
struct mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >

Polyhedron should display a polyhedron

Template Parameters
GetTrianglesTShould return a vector of triangles with points ordered clockwise, expressed as a std::vector<std::array<double, 3>>

Constructor & Destructor Documentation

◆ PolyhedronTrianglesListImpl() [1/2]

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

◆ PolyhedronTrianglesListImpl() [2/2]

template<typename GetTrianglesT >
mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >::PolyhedronTrianglesListImpl ( )
inline

Invalid element

Member Function Documentation

◆ write()

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

◆ write_size()

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

Member Data Documentation

◆ config_

template<typename GetTrianglesT >
PolyhedronConfig mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >::config_
protected

◆ get_triangles_fn_

template<typename GetTrianglesT >
GetTrianglesT mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >::get_triangles_fn_
protected

◆ type

template<typename GetTrianglesT >
constexpr auto mc_rtc::gui::details::PolyhedronTrianglesListImpl< GetTrianglesT >::type = Elements::PolyhedronTrianglesList
staticconstexpr

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