Class PoPieChart2D
- java.lang.Object
-
- All Implemented Interfaces:
SafeDisposable
public class PoPieChart2D extends PoPieChart
Class for 2D pie chart representation. Class to build a 2D pie chart in the plane XY.File format/default:
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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <title></title> </head> <body> <h4><a NAME="Heading799">CATALOG PARTS</a></h4> <ul> <b><p>PoPieChart2D</b> {</p> </ul> <ul> <ul> <b><p>Separator</b> <tt>alternateRep</tt> (from PoBase) {<br> </p> </ul> </ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Specifies the appearance of all the kit. By default lightModel.model=BASE_COLOR.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <b><p>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Corresponds to the domain transformation.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <b><p>Separator</b> <tt>sliceSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the slices of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>sliceApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of slices of the pie chart. </i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>slice</tt> (from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>sliceBorderSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the slice borders of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>sliceBorderApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of slice borders of the pie chart. </i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>sliceBorder</tt> (from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>extAnnotBoxSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the box of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>extAnnotBoxApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of box of exterior annotations of the pie chart. By default material.diffuseColor is set to SbColor(0, 0, 0).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>extAnnotBox </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>extAnnotBoxBorderSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the box borders of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>extAnnotBoxBorderApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of box borders of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>extAnnotBoxBorder</tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>extAnnotTextSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the texts (of sliceText field) of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>extAnnotTextApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>extAnnotText</tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>extAnnotValueSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the values (of sliceValue field) of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>extAnnotValueApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>extAnnotValue </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>extAnnotPercentSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the percentages of exterior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>extAnnotPercentApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>extAnnotPercent </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>arrowSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the arrow between slices and exterior annotations.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>arrowApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of arrows. </i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>arrow</tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>intAnnotBoxSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the box of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>intAnnotBoxApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of box of interior annotations of the pie chart. By default material.diffuseColor is set to SbColor(0, 0, 0).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>intAnnotBox </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>intAnnotBoxBorderSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the box borders of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>intAnnotBoxBorderApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>Specifies the appearance of box borders of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>intAnnotBoxBorder</tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>intAnnotTextSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the texts (of sliceText field) of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>intAnnotTextApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>intAnnotText</tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>intAnnotValueSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the values (of sliceValue field) of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>intAnnotValueApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>intAnnotValue </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}<br> <br> <b>Separator</b> <tt>intAnnotPercentSep</tt> (from PoPieChart) {</p> </ul> </ul> </ul> <ul> <ul> <ul> <i><p>Contains properties and shapes to draw the percentages of interior annotations of the pie chart.</i></p> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>AppearanceKit</b> <tt>intAnnotPercentApp </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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.</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <b><p>Group</b> <tt>intAnnotPercent </tt>(from PoPieChart)</p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <ul> <i><p>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).</i></p> </ul> </ul> </ul> </ul> <ul> <ul> <ul> <p>}</p> </ul> </ul> </ul> <ul> <ul> <p>}</p> </ul> </ul> <ul> <p>}</p> </ul> </body> </html>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoPieChart
PoPieChart.Alignments, PoPieChart.ExtAnnotPositions, PoPieChart.IntAnnotPositions, PoPieChart.PercentStatus
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFVec2f
center
Center of the pie chart.-
Fields inherited from class com.openinventor.meshviz.graph.PoPieChart
arrowHeight, arrowVisibility, arrowWidth, extAnnotAddString, extAnnotAddStringVisibility, extAnnotAlignment, extAnnotDistance1, extAnnotDistance2, extAnnotDistance3, extAnnotPercentFontName, extAnnotPercentFontSize, extAnnotPercentVisibility, extAnnotPosition, extAnnotTextFontName, extAnnotTextFontSize, extAnnotTextVisibility, extAnnotValueFontName, extAnnotValueFontSize, extAnnotValueVisibility, intAnnotAddString, intAnnotAddStringVisibility, intAnnotAlignment, intAnnotDistance, intAnnotPercentFontName, intAnnotPercentFontSize, intAnnotPercentVisibility, intAnnotPosition, intAnnotTextFontName, intAnnotTextFontSize, intAnnotTextVisibility, intAnnotValueFontName, intAnnotValueFontSize, intAnnotValueVisibility, radius, sliceAngleStep, sliceColor, sliceGroupActive, sliceGroupFlagMin, sliceGroupMinValue, sliceGroupString, sliceText, sliceToTranslateNumber, sliceToTranslateValue, sliceValue
-
Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PoPieChart2D()
Default constructor.PoPieChart2D(SbVec2f _center, float _radius, java.lang.String[] sliceTexts, float[] sliceValues, SbColor[] sliceColors)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.-
Methods inherited from class com.openinventor.meshviz.graph.PoPieChart
getFormat, getMiscTextAttr, getPickedSliceNumber, getSliceToTranslate, setFormat, setMiscTextAttr, setSliceToTranslate
-
Methods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
-
Methods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
center
public final SoSFVec2f center
Center of the pie chart.
-
-
Method Detail
-
getClassNodekitCatalog
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-