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.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
FieldsModifier and TypeFieldDescriptionfinal SoSFString
The markers are defined by a string.final SoMFVec2f
List of coordinates for the markers.final SoMFFloat
List of sizes used to calculate the marker sizes.final SoMFFloat
List of values used to color the markers.Fields inherited from class com.openinventor.inventor.nodekits.SoBaseKit
boundingBoxIgnoring
Fields 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 SoNodekitCatalog
Returns theSoNodekitCatalog
for this class.Gets a reference to aPbDataMapping
object, used to the association value- color.void
setDataMapping
(PbDataMapping dataMapping) Sets a reference to aPbDataMapping
object, 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, 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 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 areSoPointSet
shapes, otherwiseSoText2
shapes. 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 aPbDataMapping
object, used to the association value- color. -
setDataMapping
Sets a reference to aPbDataMapping
object, 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 nodePoDataMapping
and its derived classes) which is used. -
getClassNodekitCatalog
Returns theSoNodekitCatalog
for this class.
-