Class ParticlePoints

All Implemented Interfaces:
Hintable, Savable

public class ParticlePoints extends ParticleSystem
ParticlePoints is a particle system that uses Point as its underlying geometric data.
  • Constructor Details

    • ParticlePoints

      public ParticlePoints()
    • ParticlePoints

      public ParticlePoints(String name, int numParticles)
  • Method Details

    • initializeParticles

      protected void initializeParticles(int numParticles)
      Specified by:
      initializeParticles in class ParticleSystem
    • getParticleType

      public ParticleSystem.ParticleType getParticleType()
      Description copied from class: ParticleSystem
      Get which emittype method is being used by the underlying system. One of ParticleType.Quad, ParticleType.Triangle, ParticleType.Point, ParticleType.Line, ParticleType.GeomMesh
      Overrides:
      getParticleType in class ParticleSystem
      Returns:
      An int representing the type of particle we are emitting.
    • draw

      public void draw(Renderer r)
      Description copied from class: Node
      draw calls the onDraw method for each child maintained by this node.
      Overrides:
      draw in class Node
      Parameters:
      r - the renderer to draw to.
      See Also:
    • isAntialiased

      public boolean isAntialiased()
      Returns:
      true if points are to be drawn antialiased
    • setAntialiased

      public void setAntialiased(boolean antialiased)
      Sets whether the points should be antialiased. May decrease performance. If you want to enabled antialiasing, you should also use an alphastate with a source of SourceFunction.SourceAlpha and a destination of DB_ONE_MINUS_SRC_ALPHA or DB_ONE.
      Parameters:
      antialiased - true if the line should be antialiased.
    • getPointSize

      public float getPointSize()
      Returns:
      the pixel size of each point.
    • setPointSize

      public void setPointSize(float size)
      Sets the pixel width of the points when drawn. Non anti-aliased point sizes are rounded to the nearest whole number by opengl.
      Parameters:
      size - The size to set.
    • getParticleGeometry

      public Point getParticleGeometry()
      Specified by:
      getParticleGeometry in class ParticleSystem