Class PoValuedMarkerField
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodekits.SoBaseKit
-
- com.openinventor.meshviz.graph.PoBase
-
- com.openinventor.meshviz.graph.PoGraphMaster
-
- com.openinventor.meshviz.graph.PoValuedMarkerField
-
- All Implemented Interfaces:
SafeDisposable
public class PoValuedMarkerField extends PoGraphMaster
Class for a valued markers field. Class to build a valued markers field in the plane XY. A valued markers field is a list of markers which can be colored and can have different sizes. By default all markers have the same size and the same color.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.esetDataMapping()
not called and noPoDataMapping
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 "." <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <title></title> </head> <BODY> <h1></h1> <h4> <A NAME="Heading364">CATALOG PARTS</A></h4> <ul><b>PoValuedPointField</b> {</ul> <ul><ul><b>Separator</b> <tt>alternateRep</tt> (from PoBase) {<br> </ul></ul> <ul><ul><ul><b>AppearanceKit</b> <tt>appearance</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Specifies the appearance of all the kit. By default lightModel.model=BASE_COLOR. If markerString !=".", the font used for markers is the font set in font.name.</i></ul></ul></ul> <ul><ul><ul><b>MatrixTransform</b> <tt>domainTransform</tt> (from PoBase)</ul></ul></ul> <ul><ul><ul><i>Corresponds to the domain transformation.</i></ul></ul></ul> <ul><ul><ul><ul></ul></ul></ul></ul> <ul><ul><ul><b>Group</b> <tt>valuedPointField</tt></ul></ul></ul> <ul><ul><ul><i>Contains a list of SoText2 (markerString !=".") or SoPointSet (markerString = ".") shapes to draw markers.</i></ul></ul></ul> <ul><ul>}</ul></ul> <ul>}</ul> <ul><ul><br> </ul></ul> </body> </html>
-
-
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
Fields Modifier and Type Field Description SoSFString
markerString
The markers are defined by a string.SoMFVec2f
point
List of coordinates for the markers.SoMFFloat
size
List of sizes used to calculate the marker sizes.SoMFFloat
value
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
Constructors Constructor Description PoValuedMarkerField()
Default constructor.PoValuedMarkerField(SbVec2f[] _point, float[] _value, float[] _size)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.PbDataMapping
getDataMapping()
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 Detail
-
point
public final SoMFVec2f point
List of coordinates for the markers.
-
value
public final SoMFFloat 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
public final SoMFFloat 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
public final SoSFString 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 Detail
-
PoValuedMarkerField
public PoValuedMarkerField()
Default constructor.
-
PoValuedMarkerField
public PoValuedMarkerField(SbVec2f[] _point, float[] _value, float[] _size)
Constructor.
-
-
Method Detail
-
getDataMapping
public PbDataMapping getDataMapping()
Gets a reference to aPbDataMapping
object, used to the association value- color.
-
setDataMapping
public void setDataMapping(PbDataMapping dataMapping)
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
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-