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
Abstract Inventor node defining a mesh.
-
Nested Class Summary
Nested ClassesNested 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
Modifier and TypeMethodDescriptionvoid
addStringsSet
(int index, String[] val) Calls addStringsSet(index, val, "").void
addStringsSet
(int index, String[] val, String set_name) Convenience method to add a new set of string values to the mesh.void
addValuesSet
(int index, float[] val) Calls addValuesSet(index, val, "").void
addValuesSet
(int index, float[] val, PoMeshProperty.DataBindings binding) Calls addValuesSet(index, val, binding, "").void
addValuesSet
(int index, float[] val, PoMeshProperty.DataBindings binding, String set_name) Adds a set of scalar values that can be located either at nodes or at cells.void
addValuesSet
(int index, float[] val, String set_name) Convenience method to add a new set of scalar values to the mesh.void
addVecsSet
(int index, SbVec3f[] val) Calls addVecsSet(index, val, "").void
addVecsSet
(int index, SbVec3f[] val, String set_name) Convenience method to add a new set of vector values to the mesh.getMesh()
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 Details
-
addValuesSet
public void addValuesSet(int index, float[] val) Calls addValuesSet(index, val, ""). -
addValuesSet
Calls addValuesSet(index, val, binding, ""). -
addStringsSet
Calls addStringsSet(index, val, ""). -
addVecsSet
Calls addVecsSet(index, val, ""). -
addVecsSet
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, 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:
-
addStringsSet
Convenience method to add a new set of string values to the mesh. See alsoPbMesh.addStringsSet()
. -
getMesh
Gets the instance of a derived class ofPbMesh
. -
addValuesSet
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:
-