Package com.openinventor.meshviz.nodes
Class PoMeshProperty
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.meshviz.nodes.PoNode
-
- com.openinventor.meshviz.nodes.PoMeshProperty
-
- All Implemented Interfaces:
SafeDisposable
- Direct Known Subclasses:
PoCartesianGrid2D,PoCartesianGrid3D,PoHexahedronMesh3D,PoIndexedMesh2D,PoIndexedMesh3D,PoIrregularMesh1D,PoParalCartesianGrid2D,PoParalCartesianGrid3D,PoPolarGrid2D,PoQuadrangleMesh2D,PoRegularCartesianGrid2D,PoRegularCartesianGrid3D,PoRegularMesh1D,PoTetrahedronMesh3D,PoTriangleMesh2D
public abstract class PoMeshProperty extends PoNode
Abstract Inventor node defining a mesh.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPoMeshProperty.DataBindingsData binding.-
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 inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStringsSet(int index, java.lang.String[] val)Calls addStringsSet(index, val, "").voidaddStringsSet(int index, java.lang.String[] val, java.lang.String set_name)Convenience method to add a new set of string values to the mesh.voidaddValuesSet(int index, float[] val)Calls addValuesSet(index, val, "").voidaddValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding)Calls addValuesSet(index, val, binding, "").voidaddValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding, java.lang.String set_name)Adds a set of scalar values that can be located either at nodes or at cells.voidaddValuesSet(int index, float[] val, java.lang.String set_name)Convenience method to add a new set of scalar values to the mesh.voidaddVecsSet(int index, SbVec3f[] val)Calls addVecsSet(index, val, "").voidaddVecsSet(int index, SbVec3f[] val, java.lang.String set_name)Convenience method to add a new set of vector values to the mesh.PbMeshgetMesh()Gets the instance of a derived class ofPbMesh.-
Methods inherited from class com.openinventor.meshviz.nodes.PoNode
callback, doAction, getBoundingBox, getMatrix, getPrimitiveCount, GLRender, handleEvent, pick, search, write
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, copy, copy, distribute, getAlternateRep, getByName, getRenderEngineMode, getRenderUnitID, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, isBoundingBoxIgnoring, isOverride, rayPick, setOverride, touch
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, 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
-
-
-
-
Method Detail
-
addValuesSet
public void addValuesSet(int index, float[] val)Calls addValuesSet(index, val, "").
-
addValuesSet
public void addValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding)Calls addValuesSet(index, val, binding, "").
-
addStringsSet
public void addStringsSet(int index, java.lang.String[] val)Calls addStringsSet(index, val, "").
-
addVecsSet
public void addVecsSet(int index, SbVec3f[] val)Calls addVecsSet(index, val, "").
-
addVecsSet
public void addVecsSet(int index, SbVec3f[] val, java.lang.String set_name)Convenience method to add a new set of vector values to the mesh. See alsoPbMesh.addVecsSet().
-
addValuesSet
public void addValuesSet(int index, float[] val, PoMeshProperty.DataBindings binding, java.lang.String set_name)Adds a set of scalar values that can be located either at nodes or at cells.- Parameters:
index- the index of the new set added.val- the array of values. Its size must be either the number of nodes or the number of cells depending on the binding argument.binding- specifies the location of the values.set_name- string associated with this set of values.- See Also:
PbMesh.addValuesSet() NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of .
-
addStringsSet
public void addStringsSet(int index, java.lang.String[] val, java.lang.String set_name)Convenience method to add a new set of string values to the mesh. See alsoPbMesh.addStringsSet().
-
addValuesSet
public void addValuesSet(int index, float[] val, java.lang.String set_name)Convenience method to add a new set of scalar values to the mesh. The values are localized at nodes so the number of values in a set must be equal to the number of nodes in the mesh.- Parameters:
index- the index of the new set addedval- the array of values. Its size must be the number of nodesset_name- string associated to this set of values- See Also:
PbMesh.addValuesSet() NOTE: This method must be called after a setGeometry method because the size of the argument val is determined by the number of nodes in the mesh. The setGeometry methods are defined in subclasses of .
-
-