SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::gui::qt::PieWidget Class Reference

#include <PieWidget.h>

Inheritance diagram for sofa::gui::qt::PieWidget:

Static Public Attributes

static std::vector< type::Vec< 3, int > > colorArray
 

Protected Attributes

std::vector< dataTimedata
 
unsigned int selection
 
double totalTime
 
int sizePie
 

Public Member Functions

 PieWidget (QWidget *parent)
 
void paintEvent (QPaintEvent *)
 
void setChart (std::vector< dataTime > &value, unsigned int s)
 
void clear ()
 

Static Public Member Functions

static type::Vec< 3, int > getColor (int i)
 

Attribute details

◆ colorArray

std::vector< type::Vec< 3, int > > sofa::gui::qt::PieWidget::colorArray
static

◆ data

std::vector< dataTime > sofa::gui::qt::PieWidget::data
protected

◆ selection

unsigned int sofa::gui::qt::PieWidget::selection
protected

◆ sizePie

int sofa::gui::qt::PieWidget::sizePie
protected

◆ totalTime

double sofa::gui::qt::PieWidget::totalTime
protected

Constructor details

◆ PieWidget()

sofa::gui::qt::PieWidget::PieWidget ( QWidget parent)

Function details

◆ clear()

void sofa::gui::qt::PieWidget::clear ( )

◆ getColor()

type::Vec< 3, int > sofa::gui::qt::PieWidget::getColor ( int  i)
static

◆ paintEvent()

void sofa::gui::qt::PieWidget::paintEvent ( QPaintEvent *  )

◆ setChart()

void sofa::gui::qt::PieWidget::setChart ( std::vector< dataTime > &  value,
unsigned int  s 
)