Class PolylineEmitter

All Implemented Interfaces:
X3DNode, PolylineEmitter, X3DParticleEmitterNode

public class PolylineEmitter extends X3DConcreteNode implements PolylineEmitter
PolylineEmitter emits particles along a single polyline.

X3D node tooltip: (X3D version 3.2 or later) [X3DParticleEmitterNode] PolylineEmitter emits particles along a single polyline. The coordinates for the line along which particles should be randomly generated are taken from a combination of the coord and coordIndex fields. The starting point for generating particles is randomly distributed along this line and given the initial speed and direction.
  • Hint: if no coordinates are available, PolylineEmitter acts like a point source located at local origin.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
  • Field Details

    • NAME

      public static final String NAME
      String constant NAME provides name of this element: PolylineEmitter.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the PolylineEmitter element: ParticleSystems
      See Also:
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D ParticleSystems component level for this element: 1
      See Also:
    • COORD_DEFAULT_VALUE

      public static final X3DCoordinateNode COORD_DEFAULT_VALUE
      SFNode field named coord has default value null (Java syntax) or NULL (XML syntax).
    • COORDINDEX_DEFAULT_VALUE

      public static final ArrayList<Integer> COORDINDEX_DEFAULT_VALUE
      MFInt32 field named coordIndex has default value {-1} (Java syntax) or -1 (XML syntax).
    • DIRECTION_DEFAULT_VALUE

      public static final float[] DIRECTION_DEFAULT_VALUE
      SFVec3f field named direction has default value {0f,1f,0f} (Java syntax) or 0 1 0 (XML syntax).
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • MASS_DEFAULT_VALUE

      public static final float MASS_DEFAULT_VALUE
      SFFloat field named mass has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • SPEED_DEFAULT_VALUE

      public static final float SPEED_DEFAULT_VALUE
      SFFloat field named speed has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
    • SURFACEAREA_DEFAULT_VALUE

      public static final float SURFACEAREA_DEFAULT_VALUE
      SFFloat field named surfaceArea has default value 0f (Java syntax) or 0 (XML syntax).
      See Also:
    • VARIATION_DEFAULT_VALUE

      public static final float VARIATION_DEFAULT_VALUE
      SFFloat field named variation has default value 0.25f (Java syntax) or 0.25 (XML syntax).
      See Also:
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
    • fromField_COORD

      public static final String fromField_COORD
      fromField ROUTE name for SFNode field named coord.
      See Also:
    • toField_COORD

      public static final String toField_COORD
      toField ROUTE name for SFNode field named coord.
      See Also:
    • fromField_DIRECTION

      public static final String fromField_DIRECTION
      fromField ROUTE name for SFVec3f field named direction.
      See Also:
    • toField_DIRECTION

      public static final String toField_DIRECTION
      toField ROUTE name for SFVec3f field named direction.
      See Also:
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
    • fromField_MASS

      public static final String fromField_MASS
      fromField ROUTE name for SFFloat field named mass.
      See Also:
    • toField_MASS

      public static final String toField_MASS
      toField ROUTE name for SFFloat field named mass.
      See Also:
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_SET_COORDINDEX

      public static final String toField_SET_COORDINDEX
      toField ROUTE name for MFInt32 field named set_coordIndex.
      See Also:
    • fromField_SPEED

      public static final String fromField_SPEED
      fromField ROUTE name for SFFloat field named speed.
      See Also:
    • toField_SPEED

      public static final String toField_SPEED
      toField ROUTE name for SFFloat field named speed.
      See Also:
    • fromField_SURFACEAREA

      public static final String fromField_SURFACEAREA
      fromField ROUTE name for SFFloat field named surfaceArea.
      See Also:
    • toField_SURFACEAREA

      public static final String toField_SURFACEAREA
      toField ROUTE name for SFFloat field named surfaceArea.
      See Also:
    • fromField_VARIATION

      public static final String fromField_VARIATION
      fromField ROUTE name for SFFloat field named variation.
      See Also:
    • toField_VARIATION

      public static final String toField_VARIATION
      toField ROUTE name for SFFloat field named variation.
      See Also:
  • Constructor Details

    • PolylineEmitter

      public PolylineEmitter()
      Constructor for PolylineEmitter to initialize member variables with default values.
    • PolylineEmitter

      public PolylineEmitter(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details