24#ifndef _PO_PIE_CHART_REP_
25#define _PO_PIE_CHART_REP_
236 static void initClass() ;
237 static void exitClass() ;
256 virtual void rebuild() ;
257 virtual void addElementsAllCaches() ;
258 virtual void preRebuild() ;
261 virtual void setDefaultOnNonWritingFields() ;
265 inline SbBool isAnnoText()
const ;
266 void eraseAllParts() ;
267 void buildSliceAttrList(
const PbMesh1D *mesh1D,
float &maxSliceHeight,
268 SbBool &isConstantHeight) ;
269 void buildSliceText(
int sliceIndex,
float maxSliceHeight,
SoGroup *annoGroup,
273 SliceAttr *m_sliceAttrList ;
277 FieldSensorList fieldSensorList ;
#define FALSE
Possible value of SbBool.
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
#define SO_KIT_HEADER(className)
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mono...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to build a 3D pie ...
SoSFFloat annoDistToCenter
Defines the distance from the pie chart center of the displayed annotations (name/value/percentage).
SoSFFloat radiusMin
Defines the mininum radius of the pie chart.
SoSFFloat height
Defines the height of the pie chart if the field yValuesIndex is different from -1.
float getSliceToTranslate(int sliceNumber) const
Gets the current translation of a slice.
SoSFBool isPercentageVisible
Defines if the percentage of each slice is visible.
PoPieChartRep()
Constructor.
SoMFFloat sliceToTranslateRadius
Translation values along the bisectors of the slices.
SoSFBool isValueVisible
Defines if the value of each slice is visible.
SoSFInt32 stringsIndex
Defines the index of the set of strings used for the names attached to slices.
SoSFFloat annoHeightFromSlice
Defines the height of the displayed annotations (name/value/percentage) from the top of each slice.
SoSFBool isAnnoSliceColor
Determines if the color of for annotation is the same as slices.
void setSliceToTranslate(int sliceNumber, float radius)
Convenience methods to set the fields sliceToTranslateNumber and sliceToTranslateRadius.
SoSFBool isNameVisible
Defines if the name of each slice is visible.
SoSFFloat radiusMax
Defines the maximum radius of the pie chart.
SoMFShort sliceToTranslateNumber
Numbers (slice numbers begin at 0) of the slices to translate.
SbBool getPickedSliceNumber(const SoPath *path, int &sliceNumber) const
Allow the user to retreive the slice number (sliceNumber argument) which has been picked from a picke...
SoSFFloat annoFontSize
Define the font size of the annotation.
Class for smart character strings.
Maintains a list of pointers to fields.
Base class for all group nodes.
Multiple-value field containing any number of floating point values.
Multiple-value field containing any number of short integers.
Surface material definition node.
Path that points to a list of hierarchical nodes.
Field containing a single Boolean value.
Field containing a floating-point value.
Field containing a int32_t integer.
Node representing a 3D translation.