public class PoBaseStreamLine extends PoMesh
The streamlines are calculated from a set of vectors in the current mesh. See PoMesh
for more explanations about the current mesh. The index of vectors data set used to compute streamlines, is defined by the field PoMesh.vecsIndex
. If this vectors data set does not exist in the current mesh, the representation is empty. The origin of each vector is a node of the mesh.
The derived classes respect the following rules to color the representation:
If PoMesh.coloringType
= COLOR_INHERITED and if the field "colors" is empty, the representation uses only one inherited color, so each part of the representation have the same color.
If PoMesh.coloringType
= COLOR_INHERITED and if the field colors is not empty, the representation uses each colors of field for each streamline. For example, the streamline starting from the i-th startPoints is colored by colors[inum_colors], where num_colors is the size of the field "colors".
If the field PoMesh.valuesIndex
is not defined (i.e. < 0), and if coloringType != COLOR_INHERITED, the representations are colored by using the current data mapping applied to the velocity at each point of the streamlines. The definition of the "current data mapping" is explained in PoMesh
.
If the field PoMesh.valuesIndex
is defined, and if coloringType != COLOR_INHERITED, the representations are colored by using the current data mapping applied to the value at each point of the streamlines.
File format/default:
startPoints | SbVec3f(0,0,0) |
maxLifetime | 0 (i.e. infinite) |
maxLength | 0 (i.e. infinite) |
minSpeed | 0 (i.e. infinite) |
integrationStepLengthFactor | 0.3 |
integrationMaxStepNumber | 0 (i.e. infinite) |
integrationDirection | FORWARD |
colors | (SbColor(1,0,0) |
coloringType | COLOR_INHERITED |
valuesIndex | -1 |
valuesIndexForCellFilter | -1 |
vecsIndex | -1 |
moduleDataMapping | NULL |
Modifier and Type | Class and Description |
---|---|
static class |
PoBaseStreamLine.IntegrationDirections
Type of integration direction.
|
PoMesh.ColoringTypes
PoBase.NodeWriteFormats, PoBase.TextTypes, PoBase.UpdateMethodTypes
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoMFColor |
colors
List of colors used by some derived class to color each streamline.
|
SoSFEnum<PoBaseStreamLine.IntegrationDirections> |
integrationDirection
Direction of integration.
|
SoSFInt32 |
integrationMaxStepNumber
Computing the streamline is done while the number of integration step is less than integrationMaxStepNumber.
|
SoSFFloat |
integrationStepLengthFactor
It is a factor of the size of a cell.
|
SoSFFloat |
maxLength
The curvilinear distance between the start-point and the last point of a streamline must be less than maxLength.
|
SoSFFloat |
maxLifetime
The difference between the time of the start-point and the time of the last point of a streamline must be less than maxLifetime.
|
SoSFFloat |
minSpeed
The streamline ends when it goes through a point where the velocity is less than minSpeed.
|
SoMFVec3f |
startPoints
Start points of the streamlines.
|
coloringType, creaseAngle, moduleDataMapping, smoothTextureContouring, valuesIndex, valuesIndexForCellFilter, vecsIndex
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PoBaseStreamLine()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static SoNodekitCatalog |
getClassNodekitCatalog()
Returns the
SoNodekitCatalog for this class. |
getDataMapping, getIsovaluesList, getMesh, getModuleDataMapping, setDataMapping, setIsovaluesList, setMesh, setModuleDataMapping
addPostRebuildCallback, addPreRebuildCallback, getDomain, getNodeWriteFormat, getTextType, getUpdateMethod, isBuilt, isModified, isVRML2Mode, rebuild, setDomain, setNodeWriteFormat, setTextType, setUpdateMethod, setVRML2Mode, touchKit
getNodekitCatalog, getPart, getPart, getPartString, getViewportIsEnabled, getViewportOrigin, getViewportSize, isSearchingChildren, set, set, setPart, setSearchingChildren
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
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoMFVec3f startPoints
SbVec3f(0,0,0)
by default.public final SoMFColor colors
public final SoSFFloat maxLifetime
public final SoSFFloat maxLength
public final SoSFFloat minSpeed
public final SoSFFloat integrationStepLengthFactor
public final SoSFInt32 integrationMaxStepNumber
public final SoSFEnum<PoBaseStreamLine.IntegrationDirections> integrationDirection
public static SoNodekitCatalog getClassNodekitCatalog()
SoNodekitCatalog
for this class.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com