public class PoPieChartRep extends PoChart
PoIrregularMesh1D
or PoRegularMesh1D
). The size (angle) of each slice is given by the geometry of the current mesh 1D, and the height of each slice is given by one of the value-set of the current mesh 1D specified by the field yValuesIndex. Names attached to each slice are given by one of the string-set of the current mesh 1D specified by the field stringsIndex. With this mecanism all slices have not necessary the same height. On contrary, if all slices must have the same height, set the field yValuesIndex to -1 and set the field height to the desired height. The pie chart origin is at (0,0,0) after applying the current transformation.
The current label hints (PoLabelHints
) is used to specify the appearance of annotations for each slice. All annotations depend on the current miscellaneous text attributes which defines the font names, line length and so on (PoMiscTextAttr
). All numerical values depend on the current numerical display format (PoNumericDisplayFormat
). Each slice can be beveled thanks to the current beveled edge values (PoBevelEdge
). The current complexity (SoComplexity
) is used to determine the tessellation of slices.
The interpretation of colorBinding is the following :
File format/default:
colorBinding | INHERITED |
yValuesIndex | -1 |
colorValuesIndex | 1 |
material | NULL |
stringsIndex | 0 |
radiusMin | 0.0 |
radiusMax | 1.0 |
sliceToTranslateNumber | 0 |
sliceToTranslateRadius | 0.0 |
height | 0.3 |
isNameVisible | false |
isValueVisible | false |
isPercentageVisible | true |
annoDistToCenter | 0.5 |
annoHeightFromSlice | 0.2 |
isAnnoSliceColor | true |
annoFontSize | 0.1 |
PoChart.ColorBindings
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFFloat |
annoDistToCenter
Defines the distance from the pie chart center of the displayed annotations (name/value/percentage).
|
SoSFFloat |
annoFontSize
Define the font size of the annotation.
|
SoSFFloat |
annoHeightFromSlice
Defines the height of the displayed annotations (name/value/percentage) from the top of each slice.
|
SoSFFloat |
height
Defines the height of the pie chart if the field yValuesIndex is different from -1.
|
SoSFBool |
isAnnoSliceColor
Determines if the color of for annotation is the same as slices.
|
SoSFBool |
isNameVisible
Defines if the name of each slice is visible.
|
SoSFBool |
isPercentageVisible
Defines if the percentage of each slice is visible.
|
SoSFBool |
isValueVisible
Defines if the value of each slice is visible.
|
SoSFFloat |
radiusMax
Defines the maximum radius of the pie chart.
|
SoSFFloat |
radiusMin
Defines the mininum radius of the pie chart.
|
SoMFShort |
sliceToTranslateNumber
Numbers (slice numbers begin at 0) of the slices to translate.
|
SoMFFloat |
sliceToTranslateRadius
Translation values along the bisectors of the slices.
|
SoSFInt32 |
stringsIndex
Defines the index of the set of strings used for the names attached to slices.
|
colorBinding, colorValuesIndex, INHERITED, material, PER_PART, PER_VERTEX, yValuesIndex
FOLD_NODE_WRITE_FORMAT, SO_ANNO_TEXT3, SO_TEXT3, UNFOLD_NODE_WRITE_FORMAT, UPDATE_METHOD_IMMEDIATE, UPDATE_METHOD_ON_ACTION
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PoPieChartRep()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
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 |
setSliceToTranslate(int sliceNumber,
float radius)
Convenience methods to set the fields sliceToTranslateNumber and sliceToTranslateRadius.
|
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
public final SoSFInt32 stringsIndex
public final SoSFFloat radiusMin
public final SoSFFloat radiusMax
public final SoMFShort sliceToTranslateNumber
public final SoMFFloat sliceToTranslateRadius
public final SoSFFloat height
public final SoSFBool isNameVisible
public final SoSFBool isValueVisible
public final SoSFBool isPercentageVisible
public final SoSFFloat annoDistToCenter
public final SoSFFloat annoHeightFromSlice
public final SoSFFloat annoFontSize
public final SoSFBool isAnnoSliceColor
public float getSliceToTranslate(int sliceNumber)
public void setSliceToTranslate(int sliceNumber, float radius)
for (i=0; i < min(sliceToTranslateNumber.getNum(),sliceToTranslateRadius.getNum()); i++) if (sliceNumber == sliceToTranslateNumber[i]) break; sliceToTranslateRadius[i] = radius; sliceToTranslateNumber[i] = sliceNumber;
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.public int getPickedSliceNumber(SoPath path)
SoSelection
node for more information about picking).
Return false, if the picked path does not correspond to a slice of the pie chart (sliceNumber is not significative), true otherwise.Generated on August 20, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com