SOFA API  7226d276
Open source framework for multi-physics simuation
sofa::core::visual::DrawElementColoredMesh< sofa::geometry::Tetrahedron > Struct Reference

#include <DrawColoredMesh.h>

Inheritance diagram for sofa::core::visual::DrawElementColoredMesh< sofa::geometry::Tetrahedron >:

Public Attributes

friend BaseDrawColoredMesh
 
- Public Attributes inherited from sofa::core::visual::BaseDrawColoredMesh< DrawElementColoredMesh< sofa::geometry::Tetrahedron > >
SReal elementSpace
 

Static Public Attributes

static constexpr std::size_t NumberTrianglesInTetrahedron = 4
 

Public Member Functions

template<class PositionContainer , class IndicesContainer , class ColorContainer >
void doDraw (sofa::helper::visual::DrawTool *drawTool, const PositionContainer &position, sofa::core::topology::BaseMeshTopology *topology, const IndicesContainer &elementIndices, const ColorContainer &nodesColors)
 
- Public Member Functions inherited from sofa::core::visual::BaseDrawColoredMesh< DrawElementColoredMesh< sofa::geometry::Tetrahedron > >
virtual ~BaseDrawColoredMesh ()=default
 
void drawAllElements (sofa::helper::visual::DrawTool *drawTool, const PositionContainer &position, sofa::core::topology::BaseMeshTopology *topology, const ColorContainer &nodesColors)
 
void drawSomeElements (sofa::helper::visual::DrawTool *drawTool, const PositionContainer &position, sofa::core::topology::BaseMeshTopology *topology, const IndicesContainer &elementIndices, const ColorContainer &nodesColors)
 

Additional Inherited Members

- Protected Attributes inherited from sofa::core::visual::BaseDrawColoredMesh< DrawElementColoredMesh< sofa::geometry::Tetrahedron > >
std::vector< sofa::type::Vec3 > renderedPoints
 
std::vector< sofa::type::RGBAColor > colors
 
- Protected Member Functions inherited from sofa::core::visual::BaseDrawColoredMesh< DrawElementColoredMesh< sofa::geometry::Tetrahedron > >
PositionType applyElementSpace (const PositionType &position, const PositionType &elementCenter) const
 
- Static Protected Member Functions inherited from sofa::core::visual::BaseDrawColoredMesh< DrawElementColoredMesh< sofa::geometry::Tetrahedron > >
static sofa::type::RGBAColor getColor (const ColorContainer &container, std::size_t elementId, std::size_t localId, std::size_t globalId)
 
static PositionContainer::value_type elementCenter (const PositionContainer &position, const ElementType &element)
 

Attribute details

◆ BaseDrawColoredMesh

◆ NumberTrianglesInTetrahedron

constexpr std::size_t sofa::core::visual::DrawElementColoredMesh< sofa::geometry::Tetrahedron >::NumberTrianglesInTetrahedron = 4
staticconstexpr

Function details

◆ doDraw()

template<class PositionContainer , class IndicesContainer , class ColorContainer >
void sofa::core::visual::DrawElementColoredMesh< sofa::geometry::Tetrahedron >::doDraw ( sofa::helper::visual::DrawTool *  drawTool,
const PositionContainer &  position,
sofa::core::topology::BaseMeshTopology *  topology,
const IndicesContainer &  elementIndices,
const ColorContainer &  nodesColors 
)
inline