SOFA API  651e7a3a
Open source framework for multi-physics simuation
sofa::gl::BasicShapesGL_Sphere< VertexType > Class Template Reference

#include <BasicShapesGL.h>

Inheritance diagram for sofa::gl::BasicShapesGL_Sphere< VertexType >:

Classes

struct  SphereDescription
 

Public Member Functions

 BasicShapesGL_Sphere ()
 
virtual ~BasicShapesGL_Sphere ()
 
void init ()
 
void draw (const VertexType &center, const float &radius, const unsigned int rings=32, const unsigned int sectors=16)
 
void draw (const type::vector< VertexType > &centers, const float &radius, const unsigned int rings=32, const unsigned int sectors=16)
 
void draw (const type::vector< VertexType > &centers, const std::vector< float > &radius, const unsigned int rings=32, const unsigned int sectors=16)
 

Constructor details

◆ BasicShapesGL_Sphere()

template<class VertexType >
sofa::gl::BasicShapesGL_Sphere< VertexType >::BasicShapesGL_Sphere

◆ ~BasicShapesGL_Sphere()

template<class VertexType >
sofa::gl::BasicShapesGL_Sphere< VertexType >::~BasicShapesGL_Sphere
virtual

Function details

◆ draw() [1/3]

template<class VertexType >
void sofa::gl::BasicShapesGL_Sphere< VertexType >::draw ( const type::vector< VertexType > &  centers,
const float radius,
const unsigned int  rings = 32,
const unsigned int  sectors = 16 
)

◆ draw() [2/3]

template<class VertexType >
void sofa::gl::BasicShapesGL_Sphere< VertexType >::draw ( const type::vector< VertexType > &  centers,
const std::vector< float > &  radius,
const unsigned int  rings = 32,
const unsigned int  sectors = 16 
)

◆ draw() [3/3]

template<class VertexType >
void sofa::gl::BasicShapesGL_Sphere< VertexType >::draw ( const VertexType &  center,
const float radius,
const unsigned int  rings = 32,
const unsigned int  sectors = 16 
)

◆ init()

template<class VertexType >
void sofa::gl::BasicShapesGL_Sphere< VertexType >::init ( void  )
inline