public class PoPieChart extends PoGraphMaster
The slices of which the value is small can be regroup in a same slice. This slice is called the grouping slice.
There are 2 types of pie chart annotations. Internal annotations and external annotations. Futhermore annotations can be framed by a box. All annotations are draw with the Z-Buffer desactivated, that is, they are always visible.
There are 5 groups of fields attributes
)
All pie chart texts depend on the current miscellaneous text attributes which define the font name, line length and so on. If the method setMiscTextAttr(textAttr) is called, the current miscellaneous text attributes is "textAttr". Otherwise the current miscellaneous text attributes are specified in the current inherited state (cf property node PoMiscTextAttr
).
All pie chart numerical values depend on the current numerical display format. If the method setFormat(format) is called, the current numerical display format is "format". Otherwise the current numerical display format is specified in the current inherited state (cf property node PoNumericDisplayFormat
).
Modifier and Type | Class and Description |
---|---|
static class |
PoPieChart.Alignments
Type of annotation alignment.
|
static class |
PoPieChart.ExtAnnotPositions
Type of external annotation position.
|
static class |
PoPieChart.IntAnnotPositions
Type of internal annotation position.
|
static class |
PoPieChart.PercentStatus
Type of threshold for the grouping slice.
|
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
ABSOLUTE
Deprecated.
Use
PoPieChart.PercentStatus.ABSOLUTE instead. |
SoSFFloat |
arrowHeight
Height of the arrow.
|
SoSFBool |
arrowVisibility
Visibility of the arrow.
|
SoSFFloat |
arrowWidth
Width of the arrow.
|
static int |
CENTER_ALIGN
Deprecated.
Use
PoPieChart.Alignments.CENTER_ALIGN instead. |
SoSFString |
extAnnotAddString
String concatened with exterior values.
|
SoSFBool |
extAnnotAddStringVisibility
Specify the visibility of a string concatenated with the exterior values (if they are visible).
|
SoSFEnum<PoPieChart.Alignments> |
extAnnotAlignment
Exterior annotation alignment.
|
SoSFFloat |
extAnnotDistance1
Distance from the pie chart center to the end of the arrow.
|
SoSFFloat |
extAnnotDistance2
Distance from the end of the arrow to the middle of the arrow.
|
SoSFFloat |
extAnnotDistance3
Distance from the middle of the arrow to the start of the arrow.
|
SoSFString |
extAnnotPercentFontName
Exterior percentage font name.
|
SoSFFloat |
extAnnotPercentFontSize
Font size of exterior percentages.
|
SoSFBool |
extAnnotPercentVisibility
Exterior percent visibility (percent are computed from sliceValue field)
|
SoSFEnum<PoPieChart.ExtAnnotPositions> |
extAnnotPosition
Exterior annotation position.
|
SoSFString |
extAnnotTextFontName
Exterior text (texts of sliceText field) font name.
|
SoSFFloat |
extAnnotTextFontSize
Font size of exterior texts (texts of sliceText field).
|
SoSFBool |
extAnnotTextVisibility
Exterior text visibility (texts of sliceText field).
|
SoSFString |
extAnnotValueFontName
Exterior value (values of sliceValue field) font name.
|
SoSFFloat |
extAnnotValueFontSize
Font size of exterior values (values of sliceValue field).
|
SoSFBool |
extAnnotValueVisibility
Exterior value visibility (values of sliceValue field).
|
static int |
HOR_ALIGNED_EXT_POS
Deprecated.
Use
PoPieChart.ExtAnnotPositions.HOR_ALIGNED_EXT_POS instead. |
static int |
HOR_EXT_POS
Deprecated.
Use
PoPieChart.ExtAnnotPositions.HOR_EXT_POS instead. |
static int |
HOR_INT_POS
Deprecated.
Use
PoPieChart.IntAnnotPositions.HOR_INT_POS instead. |
SoSFString |
intAnnotAddString
String concatened with interior values.
|
SoSFBool |
intAnnotAddStringVisibility
Specify the visibility of a string concatenated with the interior values (if they are visible).
|
SoSFEnum<PoPieChart.Alignments> |
intAnnotAlignment
Interior annotation alignment.
|
SoSFFloat |
intAnnotDistance
Distance from the pie chart center to the interior annotation box center.
|
SoSFString |
intAnnotPercentFontName
Interior percentage font name.
|
SoSFFloat |
intAnnotPercentFontSize
Font size of interior percentages.
|
SoSFBool |
intAnnotPercentVisibility
Interior percent visibility (percent are computed from sliceValue field)
|
SoSFEnum<PoPieChart.IntAnnotPositions> |
intAnnotPosition
Interior annotation position.
|
SoSFString |
intAnnotTextFontName
Interior text (texts of sliceText field) font name.
|
SoSFFloat |
intAnnotTextFontSize
Font size of interior texts (texts of sliceText field).
|
SoSFBool |
intAnnotTextVisibility
Interior text visibility (texts of sliceText field).
|
SoSFString |
intAnnotValueFontName
Interior value (values of sliceValue field) font name.
|
SoSFFloat |
intAnnotValueFontSize
Font size of interior values (values of sliceValue field).
|
SoSFBool |
intAnnotValueVisibility
Interior value visibility (values of sliceValue field).
|
static int |
INWARDS_ALIGN
Deprecated.
Use
PoPieChart.Alignments.INWARDS_ALIGN instead. |
static int |
LEFT_ALIGN
Deprecated.
Use
PoPieChart.Alignments.LEFT_ALIGN instead. |
static int |
OUTWARDS_ALIGN
Deprecated.
Use
PoPieChart.Alignments.OUTWARDS_ALIGN instead. |
static int |
PERCENTAGE
Deprecated.
Use
PoPieChart.PercentStatus.PERCENTAGE instead. |
static int |
RADIAL_EXT_POS
Deprecated.
Use
PoPieChart.ExtAnnotPositions.RADIAL_EXT_POS instead. |
static int |
RADIAL_INT_POS
Deprecated.
Use
PoPieChart.IntAnnotPositions.RADIAL_INT_POS instead. |
SoSFFloat |
radius
Radius of the pie chart.
|
static int |
RIGHT_ALIGN
Deprecated.
Use
PoPieChart.Alignments.RIGHT_ALIGN instead. |
SoSFFloat |
sliceAngleStep
Slice are approximated by a polygon, that is a sequence of straight line segments.
|
SoMFColor |
sliceColor
Color associated to each slice of the pie chart.
|
SoSFBool |
sliceGroupActive
Activate or Deactivate the regrouping of small values.
|
SoSFEnum<PoPieChart.PercentStatus> |
sliceGroupFlagMin
Indicate if the value sliceGroupMinValue is interpreted as percentage (PERCENTAGE) or not (ABSOLUTE).
|
SoSFFloat |
sliceGroupMinValue
Threshold underneath the slice are regrouped.
|
SoSFString |
sliceGroupString
String for the regrouping slice.
|
SoMFString |
sliceText
Text associated to each slice of the pie chart.
|
SoMFShort |
sliceToTranslateNumber
Numbers (slice numbers begin at 0) of the slices to translate.
|
SoMFFloat |
sliceToTranslateValue
Translation values along the bisectors of the slices.
|
SoMFFloat |
sliceValue
Value associated to each slice of the pie chart.
|
static int |
SQUARE_ALIGNED_EXT_POS
Deprecated.
Use
PoPieChart.ExtAnnotPositions.SQUARE_ALIGNED_EXT_POS instead. |
static int |
VERT_ALIGNED_EXT_POS
Deprecated.
Use
PoPieChart.ExtAnnotPositions.VERT_ALIGNED_EXT_POS instead. |
FOLD_NODE_WRITE_FORMAT, SO_ANNO_TEXT3, SO_TEXT3, UNFOLD_NODE_WRITE_FORMAT, UPDATE_METHOD_IMMEDIATE, UPDATE_METHOD_ON_ACTION
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
PbNumericDisplayFormat |
getFormat()
Gets a reference to a
PbNumericDisplayFormat object for the numerical display format of values of the pie chart. |
PbMiscTextAttr |
getMiscTextAttr()
Gets a reference to a
PbMiscTextAttr for miscellaneous text attributes. |
int |
getPickedSliceNumber(SoPath path)
Allow the user to retreive the slice number (sliceNumber argument) which has been picked from a picked path (path argument) (cf
SoSelection node for more information about picking). |
float |
getSliceToTranslate(int sliceNumber)
Gets the current translation of a slice.
|
void |
setFormat(PbNumericDisplayFormat format)
Sets a reference to a
PbNumericDisplayFormat object for the numerical display format of values of the pie chart. |
void |
setMiscTextAttr(PbMiscTextAttr textAttr)
Sets a reference to a
PbMiscTextAttr for miscellaneous text attributes. |
void |
setSliceToTranslate(int sliceNumber,
float translateValue)
Convenience methods to set the fields sliceToTranslateNumber and sliceToTranslateValue.
|
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int RADIAL_INT_POS
PoPieChart.IntAnnotPositions.RADIAL_INT_POS
instead.@Deprecated public static final int HOR_INT_POS
PoPieChart.IntAnnotPositions.HOR_INT_POS
instead.@Deprecated public static final int RADIAL_EXT_POS
PoPieChart.ExtAnnotPositions.RADIAL_EXT_POS
instead.@Deprecated public static final int HOR_EXT_POS
PoPieChart.ExtAnnotPositions.HOR_EXT_POS
instead.@Deprecated public static final int HOR_ALIGNED_EXT_POS
PoPieChart.ExtAnnotPositions.HOR_ALIGNED_EXT_POS
instead.@Deprecated public static final int VERT_ALIGNED_EXT_POS
PoPieChart.ExtAnnotPositions.VERT_ALIGNED_EXT_POS
instead.@Deprecated public static final int SQUARE_ALIGNED_EXT_POS
PoPieChart.ExtAnnotPositions.SQUARE_ALIGNED_EXT_POS
instead.@Deprecated public static final int LEFT_ALIGN
PoPieChart.Alignments.LEFT_ALIGN
instead.@Deprecated public static final int CENTER_ALIGN
PoPieChart.Alignments.CENTER_ALIGN
instead.@Deprecated public static final int RIGHT_ALIGN
PoPieChart.Alignments.RIGHT_ALIGN
instead.@Deprecated public static final int INWARDS_ALIGN
PoPieChart.Alignments.INWARDS_ALIGN
instead.@Deprecated public static final int OUTWARDS_ALIGN
PoPieChart.Alignments.OUTWARDS_ALIGN
instead.@Deprecated public static final int ABSOLUTE
PoPieChart.PercentStatus.ABSOLUTE
instead.@Deprecated public static final int PERCENTAGE
PoPieChart.PercentStatus.PERCENTAGE
instead.public final SoSFFloat radius
public final SoMFString sliceText
public final SoMFFloat sliceValue
public final SoMFColor sliceColor
public final SoSFEnum<PoPieChart.IntAnnotPositions> intAnnotPosition
public final SoSFEnum<PoPieChart.Alignments> intAnnotAlignment
public final SoSFBool intAnnotTextVisibility
public final SoSFBool intAnnotValueVisibility
public final SoSFBool intAnnotPercentVisibility
public final SoSFBool intAnnotAddStringVisibility
public final SoSFString intAnnotAddString
public final SoSFString intAnnotTextFontName
public final SoSFFloat intAnnotTextFontSize
PoBase
description).public final SoSFString intAnnotValueFontName
public final SoSFFloat intAnnotValueFontSize
PoBase
description).public final SoSFString intAnnotPercentFontName
public final SoSFFloat intAnnotPercentFontSize
PoBase
description).public final SoSFFloat intAnnotDistance
public final SoSFEnum<PoPieChart.ExtAnnotPositions> extAnnotPosition
public final SoSFEnum<PoPieChart.Alignments> extAnnotAlignment
public final SoSFBool extAnnotTextVisibility
public final SoSFBool extAnnotValueVisibility
public final SoSFBool extAnnotPercentVisibility
public final SoSFBool extAnnotAddStringVisibility
public final SoSFString extAnnotAddString
public final SoSFString extAnnotTextFontName
public final SoSFFloat extAnnotTextFontSize
PoBase
description).public final SoSFString extAnnotValueFontName
public final SoSFFloat extAnnotValueFontSize
PoBase
description).public final SoSFString extAnnotPercentFontName
public final SoSFFloat extAnnotPercentFontSize
PoBase
description).public final SoSFFloat extAnnotDistance1
public final SoSFFloat extAnnotDistance2
public final SoSFFloat extAnnotDistance3
public final SoSFBool arrowVisibility
public final SoSFFloat arrowHeight
public final SoSFFloat arrowWidth
public final SoSFBool sliceGroupActive
public final SoSFFloat sliceGroupMinValue
public final SoSFEnum<PoPieChart.PercentStatus> sliceGroupFlagMin
public final SoSFString sliceGroupString
public final SoMFShort sliceToTranslateNumber
public final SoMFFloat sliceToTranslateValue
public final SoSFFloat sliceAngleStep
public float getSliceToTranslate(int sliceNumber)
public void setSliceToTranslate(int sliceNumber, float translateValue)
setSliceToTranslate()
method, if sliceNumber == sliceToTranslateNumber[i] (i=0 to sliceToTranslateNumber.getNum() - 1), sliceToTranslateNumber[i] = translationValue, else sliceToTranslateNumber[sliceToTranslateNumber.getNum()] = translationValue.public PbNumericDisplayFormat getFormat()
PbNumericDisplayFormat
object for the numerical display format of values of the pie chart.public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public void setFormat(PbNumericDisplayFormat format)
PbNumericDisplayFormat
object for the numerical display format of values of the pie chart.
If this method is not called (or called passing NULL as argument), this is the numerical display format defined in the current inherited state (defined with the property node PoNumericDisplayFormat
) which is used.public int getPickedSliceNumber(SoPath path)
SoSelection
node for more information about picking).
public void setMiscTextAttr(PbMiscTextAttr textAttr)
PbMiscTextAttr
for miscellaneous text attributes.
If this method is not called (or called passing NULL as argument), this is the miscellaneous text attributes defined in the current inherited state (defined with the property node PoMiscTextAttr
) which are used.public PbMiscTextAttr getMiscTextAttr()
PbMiscTextAttr
for miscellaneous text attributes.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com