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

#include <BasicShapesGL.h>

Inheritance diagram for sofa::helper::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 helper::vector< VertexType > &centers, const float &radius, const unsigned int rings=32, const unsigned int sectors=16)
 
void draw (const helper::vector< VertexType > &centers, const std::vector< float > &radius, const unsigned int rings=32, const unsigned int sectors=16)
 

Constructor details

template<class VertexType >
sofa::helper::gl::BasicShapesGL_Sphere< VertexType >::BasicShapesGL_Sphere ( )
template<class VertexType >
sofa::helper::gl::BasicShapesGL_Sphere< VertexType >::~BasicShapesGL_Sphere ( )
virtual

Function details

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