Class PoValuedMarkerField
- All Implemented Interfaces:
SafeDisposable
Colors of the markers depend on the current data mapping. If the method setDataMapping(dataMapping) is called, the current data mapping is "dataMapping". Otherwise the current data mapping is specified in the current inherited state (cf property node PoDataMapping and its derived classes). If there is no current data-mapping (i.e setDataMapping() not called and no PoDataMapping node traversed before in the scene graph), all markers get the same color which is the inherited color.
File format/default:
| point | 0 0 |
| value | 0 |
| size | 0 |
| markerString | "." |
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.meshviz.graph.PoBase
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypesNested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFStringThe markers are defined by a string.final SoMFVec2fList of coordinates for the markers.final SoMFFloatList of sizes used to calculate the marker sizes.final SoMFFloatList of values used to color the markers.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoringFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PoValuedMarkerField(SbVec2f[] _point, float[] _value, float[] _size) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic SoNodekitCatalogReturns theSoNodekitCatalogfor this class.Gets a reference to aPbDataMappingobject, used to the association value- color.voidsetDataMapping(PbDataMapping dataMapping) Sets a reference to aPbDataMappingobject, used to the association value- color.Methods inherited from class com.openinventor.meshviz.graph.PoBase
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKitMethods inherited from class com.openinventor.inventor.nodekits.SoBaseKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildrenMethods 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, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
point
List of coordinates for the markers. -
value
List of values used to color the markers. If the number of values is equal to number of points of point , marker have a color depending on the current data mapping (see description ofPoValuedMarkerField), otherwise all the markers have the same color. -
size
List of sizes used to calculate the marker sizes. If the number of sizes is equal to number of points of point , marker have a size depending on size, otherwise all the markers have the same size. -
markerString
The markers are defined by a string. If this field is equal to ".", the markers areSoPointSetshapes, otherwiseSoText2shapes. To change the font of text markers, set the catalog part appearance.font.name . Be careful, for the moment, text markers are not vertically aligned.
-
-
Constructor Details
-
PoValuedMarkerField
public PoValuedMarkerField()Default constructor. -
PoValuedMarkerField
Constructor.
-
-
Method Details
-
getDataMapping
Gets a reference to aPbDataMappingobject, used to the association value- color. -
setDataMapping
Sets a reference to aPbDataMappingobject, used to the association value- color. If this method is not called (or called passing NULL as argument), this is the data mapping defined in the current inherited state (defined with the property nodePoDataMappingand its derived classes) which is used. -
getClassNodekitCatalog
Returns theSoNodekitCatalogfor this class.
-