Class PoStreamTadpoleMotion
- 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.data.Po3DdataMaster
-
- com.openinventor.meshviz.data.PoMesh
-
- com.openinventor.meshviz.data.PoBaseStreamLine
-
- com.openinventor.meshviz.data.PoStreamParticleMotion
-
- com.openinventor.meshviz.data.PoStreamTadpoleMotion
-
- All Implemented Interfaces:
SafeDisposable
public class PoStreamTadpoleMotion extends PoStreamParticleMotion
Animation of tadpole particles along streamline. Class to visualize particle along streamlines on a mesh. Each particle is represented by a line set which looks like a tadpole.Each particle is represented by a segment made up of 3 aligned points. The segment's length is equal to lengthFactor*V, where V is the velocity interpolated at the position of the particle. Each segment has a width attribute equal width.
The 2 end points of each segment is colored by backColor. If
PoMesh.coloringType
!= COLOR_INHERITED and ifPoMesh.valuesIndex
is defined (i.e. >=0) the middle point is colored in applying the current data mapping to the scalar value interpolated at the particle position. IfPoMesh.valuesIndex
is undefined (i.e. <0) the middle point is colored in applying the current data mapping to the velocity interpolated at the position of the particle. Otherwise (PoMesh.coloringType
= COLOR_INHERITED), ifPoBaseStreamLine.colors
is not empty, the middle point is colored by one of these colors (all the particle of the same streamline have the same color), or by particleColor ifPoBaseStreamLine.colors
is empty.File format/default:
width 2.0 backColor (0.0,0.0,0.0) particleColor SbColor
(0.0,0.9,0.9)lengthFactor 1.0 pulseFrequency 5 shiftStart 0.0 timeStep 1.0 isStartRandomized true isBlinking true viewFrame 0 blinkSpeed 3.0 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 <HTML> <HEAD> <link REL="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="GENERATOR" CONTENT="Mozilla/4.03 [en] (X11; I; HP-UX A.09.07 9000/715) [Netscape]"> </HEAD> <BODY> <H4> <A NAME="Heading982"></A>CATALOG PARTS</H4> <UL><B>PoStreamTadpoleMotion</B>{</UL> <UL> <UL><B>Separator</B> <TT>alternateRep</TT> (from PoBase) {</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. material.diffuseColor is set when the kit is rebuilt, if the field coloringType is different from COLOR_INHERITED.</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><B>Group</B> groupStreamTadpoleMotion</UL> </UL> </UL> <UL> <UL> <UL><I>Contains a SoMaterialBinding and a SoBlinker node. The SoBlinker node contains NF SoGroup nodes called frame_group, where NF = pulseFrequency. Each frame_group contains NL SoGroup nodes called line_group, where NL is the number of streamlines (if each start point is inside the mesh, NL= startPoints.getNum()). Each line_group contains a SoCoordinate3, a SoMaterial, and a SoLineSet.</I></UL> </UL> </UL> <UL> <UL>}</UL> </UL> <UL>}</UL> <UL> <UL> </UL> </UL> </BODY> </HTML>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PoBaseStreamLine
PoBaseStreamLine.IntegrationDirections
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PoMesh
PoMesh.ColoringTypes
-
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 SoSFColor
backColor
Background color applied on the end points of each segment.SoSFFloat
lengthFactor
Length factor applied to the velocity.SoSFColor
particleColor
Color used at the middle point of each segment.SoSFFloat
width
Width of each tadpole segment.-
Fields inherited from class com.openinventor.meshviz.data.PoStreamParticleMotion
blinkSpeed, isBlinking, isStartRandomized, pulseFrequency, shiftStart, timeStep, viewFrame
-
Fields inherited from class com.openinventor.meshviz.data.PoBaseStreamLine
colors, integrationDirection, integrationMaxStepNumber, integrationStepLengthFactor, maxLength, maxLifetime, minSpeed, startPoints
-
Fields inherited from class com.openinventor.meshviz.data.PoMesh
coloringType, creaseAngle, moduleDataMapping, smoothTextureContouring, valuesIndex, valuesIndexForCellFilter, vecsIndex
-
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 PoStreamTadpoleMotion()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SoNodekitCatalog
getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.-
Methods inherited from class com.openinventor.meshviz.data.PoMesh
getDataMapping, getIsovaluesList, getMesh, getModuleDataMapping, setDataMapping, setIsovaluesList, setMesh, setModuleDataMapping
-
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
-
width
public final SoSFFloat width
Width of each tadpole segment. 2.0 by default.
-
lengthFactor
public final SoSFFloat lengthFactor
Length factor applied to the velocity.
-
backColor
public final SoSFColor backColor
Background color applied on the end points of each segment.
-
particleColor
public final SoSFColor particleColor
Color used at the middle point of each segment. Used only ifPoMesh.coloringType
= COLOR_INHERITED, andPoBaseStreamLine.colors
empty.
-
-
Method Detail
-
getClassNodekitCatalog
public static SoNodekitCatalog getClassNodekitCatalog()
Returns theSoNodekitCatalog
for this class.
-
-