Class PoMesh3DVecGridCrossSection

  • All Implemented Interfaces:
    SafeDisposable

    public class PoMesh3DVecGridCrossSection
    extends PoMesh3DVecCrossSection
    Representation of vectors on a grid of a cross section. A grid of points on a plane of a volume mesh is built. Then a vector is computed by interpolation on each point of the grid, possibly projected (depending on the projectionType field) and is represented according to the different fields of PoMesh3DVec.

    It may be time consuming to use this class depending on the value of the gridSpacing. For each point of the grid, this class looks for the cell that contains the point by using a probe tool. The vector drawn at the point is computed by interpolation between each point of the containing cell. The probing process may be slow depending on the number of cells, the mesh type, the spatial organization of the cells, etc... The quickest way to draw a vector field may be by using the parent class PoMesh3DVecCrossSection. Note also that if gridSpacing = 0, this class behaves like PoMesh3DVecCrossSection.

    File format/default:

    PoMesh3DVecGridCrossSection {

      plane Z=0 plane
      gridSpacing 0.05
      projectionType NO_PROJECTION
      density 1
      eliminationStatus NONE
      minLength 0.0
      maxLength 1E30
      bodyShape LINE
      bodyLengthType RELATIVE_LENGTH
      bodyLengthFactor 1.0
      bodyRadiusType CONSTANT_RADIUS
      bodyRadiusFactor 0.02
      bodyColoringType CONSTANT_COLOR
      startArrowShape NO_SHAPE
      startArrowHeightType RELATIVE_HEIGHT
      startArrowHeightFactor 0.1
      startArrowRadiusFactor 0.5
      startArrowColoringType CONSTANT_COLOR
      endArrowShape CHEVRON
      endArrowHeightType RELATIVE_HEIGHT
      endArrowHeightFactor 0.1
      endArrowRadiusFactor 0.5
      endArrowColoringType CONSTANT_COLOR
      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="Heading1082"></A>CATALOG PARTS</H4> <UL><B>PoMesh3DVecCrossSection</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=PHONG.</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>Separator</B> <TT>bodySep</TT> {</UL> </UL> </UL> <UL> <UL> <UL><I>Contains properties and shapes of the bodies of vectors.</I></UL> </UL> </UL> <UL> <UL> <UL> <UL><B>AppearanceKit</B> <TT>bodyApp</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Specifies the appearance of the bodies.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><B>Group</B> <TT>bodyGroup</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Contains a list of SoLineSet or SoCylinder shape to draw vectors bodies.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL>} <P><B>Separator</B> <TT>startArrowSep</TT> {</UL> </UL> </UL> <UL> <UL> <UL><I>Contains properties and shapes of the start-shape of vectors.</I></UL> </UL> </UL> <UL> <UL> <UL> <UL><B>AppearanceKit</B> <TT>startArrowApp</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Specifies the appearance of the start-shapes.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><B>Group</B> <TT>startArrowGroup</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Contains a list of nodes to draw the start arrow shapes.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL>} <P><B>Separator</B> <TT>endArrowSep</TT> {</UL> </UL> </UL> <UL> <UL> <UL><I>Contains properties and shapes of the end-shape of vectors.</I></UL> </UL> </UL> <UL> <UL> <UL> <UL><B>AppearanceKit</B> <TT>endArrowApp</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Specifies the appearance of the end-shapes.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><B>Group</B> <TT>endArrowGroup</TT></UL> </UL> </UL> </UL> <UL> <UL> <UL> <UL><I>Contains a list of nodes to draw the end arrow shapes.</I></UL> </UL> </UL> </UL> <UL> <UL> <UL>}</UL> </UL> </UL> <UL> <UL>}</UL> </UL> <UL>}</UL> <UL> <UL> <UL>&nbsp;</UL> </UL> </UL> </BODY> </HTML>

    See Also:
    PoMesh3DVecCrossSection
    • Field Detail

      • gridSpacing

        public final SoSFFloat gridSpacing
        GridSpacing is relating to the number of points on the grid : the smaller gridSpacing is, the greater the number of points is. It represents a factor of the biggest size of the mesh. 0.05 by default. If gridSpacing = 0, this class behaves like PoMesh3DVecCrossSection.
    • Constructor Detail

      • PoMesh3DVecGridCrossSection

        public PoMesh3DVecGridCrossSection()
        Constructor.