Class for 2D pie chart representation. More...
#include <MeshViz/graph/PoPieChart2D.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoPieChart2D () | |
PoPieChart2D (const SbVec2f &_center, float _radius, short numSlices, const char **sliceTexts, const float *sliceValues, int numSliceColors, const SbColor *sliceColors) | |
virtual void | rebuild () |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
Public Attributes | |
SoSFVec2f | center |
Class to build a 2D pie chart in the plane XY.
radius | 1 |
sliceText | "" |
sliceValue | 0.0 |
sliceColor | 0.0 0.0 0.0 |
intAnnotPosition | HOR_INT_POS |
intAnnotAlignment | CENTER_ALIGN |
intAnnotTextVisibility | FALSE |
intAnnotValueVisibility | TRUE |
intAnnotPercentVisibility | FALSE |
intAnnotAddStringVisibility | FALSE |
intAnnotTextFontName | "" |
intAnnotTextFontSize | 0.0 |
intAnnotValueFontName | "" |
intAnnotValueFontSize | 0.0 |
intAnnotPercentFontName | "" |
intAnnotPercentFontSize | 0.0 |
intAnnotAddString | "" |
intAnnotDistance | 0.0 |
extAnnotPosition | HOR_EXT_POS |
extAnnotAlignment | INWARDS_ALIGN |
extAnnotTextVisibility | TRUE |
extAnnotValueVisibility | FALSE |
extAnnotPercentVisibility | FALSE |
extAnnotAddStringVisibility | FALSE |
extAnnotTextFontName | "" |
extAnnotTextFontSize | 0.0 |
extAnnotValueFontName | "" |
extAnnotValueFontSize | 0.0 |
extAnnotPercentFontName | "" |
extAnnotPercentFontSize | 0.0 |
extAnnotAddString | "" |
extAnnotDistance1 | 0.0 |
extAnnotDistance2 | 0.0 |
extAnnotDistance3 | 0.0 |
arrowVisibility | TRUE |
arrowHeight | 0.0 |
arrowWidth | 0.0 |
sliceGroupActive | TRUE |
sliceGroupMinValue | 5.0 |
sliceGroupFlagMin | PERCENTAGE |
sliceGroupString | "Others" |
sliceToTranslateNumber | 0 |
sliceToTranslateValue | 0.0 |
sliceAngleStep | PI/90 |
center | 0.0 0.0 |
PoPieChart2D {
Separator alternateRep (from PoBase) {
AppearanceKit appearance (from PoBase)
Specifies the appearance of all the kit. By default lightModel.model=BASE_COLOR.
MatrixTransform domainTransform (from PoBase)
Corresponds to the domain transformation.
Separator sliceSep (from PoPieChart) {
Contains properties and shapes to draw the slices of the pie chart.
AppearanceKit sliceApp (from PoPieChart)
Specifies the appearance of slices of the pie chart.
Group slice (from PoPieChart)
Contains for each slice an optional SoMaterial, a SoCoordinate3 and a SoFaceSet to draw the slices of the pie chart. Each SoFaceSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs). A SoShapeHints is inserted as first child of this group.
}
Separator sliceBorderSep (from PoPieChart) {
Contains properties and shapes to draw the slice borders of the pie chart.
AppearanceKit sliceBorderApp (from PoPieChart)
Specifies the appearance of slice borders of the pie chart.
Group sliceBorder (from PoPieChart)
Contains a list of SoLineSet shapes to draw the slice borders of the pie chart. Each SoLineSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator extAnnotBoxSep (from PoPieChart) {
Contains properties and shapes to draw the box of exterior annotations of the pie chart.
AppearanceKit extAnnotBoxApp (from PoPieChart)
Specifies the appearance of box of exterior annotations of the pie chart. By default material.diffuseColor is set to SbColor(0, 0, 0).
Group extAnnotBox (from PoPieChart)
Contains a list SoFaceSet shapes to draw the box of exterior annotations of the pie chart. Each SoFaceSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator extAnnotBoxBorderSep (from PoPieChart) {
Contains properties and shapes to draw the box borders of exterior annotations of the pie chart.
AppearanceKit extAnnotBoxBorderApp (from PoPieChart)
Specifies the appearance of box borders of exterior annotations of the pie chart.
Group extAnnotBoxBorder(from PoPieChart)
Contains a list SoLineSet shapes to draw the box borders of exterior annotations of the pie chart. Each SoLineSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator extAnnotTextSep (from PoPieChart) {
Contains properties and shapes to draw the texts (of sliceText field) of exterior annotations of the pie chart.
AppearanceKit extAnnotTextApp (from PoPieChart)
Specifies the appearance of texts of exterior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group extAnnotText(from PoPieChart)
Contains a list SoAnnoText3 to draw the texts of exterior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator extAnnotValueSep (from PoPieChart) {
Contains properties and shapes to draw the values (of sliceValue field) of exterior annotations of the pie chart.
AppearanceKit extAnnotValueApp (from PoPieChart)
Specifies the appearance of values of exterior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group extAnnotValue (from PoPieChart)
Contains a list SoAnnoText3 to draw the values of exterior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator extAnnotPercentSep (from PoPieChart) {
Contains properties and shapes to draw the percentages of exterior annotations of the pie chart.
AppearanceKit extAnnotPercentApp (from PoPieChart)
Specifies the appearance of percentages of exterior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group extAnnotPercent (from PoPieChart)
Contains a list SoAnnoText3 to draw the percentages of exterior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator arrowSep (from PoPieChart) {
Contains properties and shapes to draw the arrow between slices and exterior annotations.
AppearanceKit arrowApp (from PoPieChart)
Specifies the appearance of arrows.
Group arrow(from PoPieChart)
Contains a list of couple (SoLineSet, SoFaceSet) to draw the arrows. Each SoLineSet and SoFaceSet (cf setName() method of SoBase) are named SliceXXX (XXX is the number of slice that the shapes belong).
}
Separator intAnnotBoxSep (from PoPieChart) {
Contains properties and shapes to draw the box of interior annotations of the pie chart.
AppearanceKit intAnnotBoxApp (from PoPieChart)
Specifies the appearance of box of interior annotations of the pie chart. By default material.diffuseColor is set to SbColor(0, 0, 0).
Group intAnnotBox (from PoPieChart)
Contains a list SoFaceSet shapes to draw the box of interior annotations of the pie chart. Each SoFaceSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator intAnnotBoxBorderSep (from PoPieChart) {
Contains properties and shapes to draw the box borders of interior annotations of the pie chart.
AppearanceKit intAnnotBoxBorderApp (from PoPieChart)
Specifies the appearance of box borders of interior annotations of the pie chart.
Group intAnnotBoxBorder(from PoPieChart)
Contains a list SoLineSet shapes to draw the box borders of interior annotations of the pie chart. Each SoLineSet (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator intAnnotTextSep (from PoPieChart) {
Contains properties and shapes to draw the texts (of sliceText field) of interior annotations of the pie chart.
AppearanceKit intAnnotTextApp (from PoPieChart)
Specifies the appearance of texts of interior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group intAnnotText(from PoPieChart)
Contains a list SoAnnoText3 to draw the texts of interior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator intAnnotValueSep (from PoPieChart) {
Contains properties and shapes to draw the values (of sliceValue field) of interior annotations of the pie chart.
AppearanceKit intAnnotValueApp (from PoPieChart)
Specifies the appearance of values of interior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group intAnnotValue (from PoPieChart)
Contains a list SoAnnoText3 to draw the values of interior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
Separator intAnnotPercentSep (from PoPieChart) {
Contains properties and shapes to draw the percentages of interior annotations of the pie chart.
AppearanceKit intAnnotPercentApp (from PoPieChart)
Specifies the appearance of percentages of interior annotations of the pie chart. By default drawStyle.style=LINES. font.size and font.name are set when the kit is rebuilt.
Group intAnnotPercent (from PoPieChart)
Contains a list SoAnnoText3 to draw the percentages of interior annotations of the pie chart. Each SoAnnoText3 (cf setName() method of SoBase) is named SliceXXX (XXX is the number of slice that the shape belongs).
}
}
}
PoPieChart2D::PoPieChart2D | ( | ) |
Default constructor.
PoPieChart2D::PoPieChart2D | ( | const SbVec2f & | _center, | |
float | _radius, | |||
short | numSlices, | |||
const char ** | sliceTexts, | |||
const float * | sliceValues, | |||
int | numSliceColors, | |||
const SbColor * | sliceColors | |||
) |
Constructor.
static const SoNodekitCatalog* PoPieChart2D::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoPieChart.
static SoType PoPieChart2D::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoPieChart.
virtual const SoNodekitCatalog* PoPieChart2D::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoPieChart.
virtual SoType PoPieChart2D::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoPieChart.
virtual void PoPieChart2D::rebuild | ( | ) | [virtual] |
Center of the pie chart.