SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
SmPieChart.h
1#ifndef SM_PIECHART_H
2#define SM_PIECHART_H
3
4#include <Inventor/fields/SoSFFloat.h>
5#include <Inventor/fields/SoSFEnum.h>
6#include <Inventor/fields/SoMFColor.h>
7#include <Inventor/fields/SoMFFloat.h>
8#include <Inventor/nodekits/SoBaseKit.h>
9
10#include <SmallChange/basic.h>
11
12// *************************************************************************
13
14class SmPieChartP;
15
16class SMALLCHANGE_DLL_API SmPieChart : public SoBaseKit {
17 typedef SoBaseKit inherited;
18 SO_KIT_HEADER(SmPieChart);
19
20 SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
21
22public:
23 static void initClass(void);
24 SmPieChart(void);
25
26 enum ValueType {
27 ITEM_SIZE,
28 ITEM_BORDER
29 };
30
31 SoSFFloat height;
32 SoSFFloat radius;
33
34 SoSFEnum valueType;
35 SoMFFloat values;
36 SoMFColor colors;
37 SoMFFloat retraction;
38
39 void generateGeometry(void);
40
41protected:
42 virtual ~SmPieChart(void);
43
44 virtual SbBool readInstance(SoInput * input, unsigned short flags);
45
46private:
47 SmPieChartP * pimpl;
48
49}; // SmPieChart
50
51// *************************************************************************
52
53#endif // !SM_PIECHART_H
Definition misc/SbList.h:69
Definition SmPieChart.h:16