Class InteractRing

java.lang.Object
com.ardor3d.scenegraph.Spatial
com.ardor3d.scenegraph.Mesh
com.ardor3d.extension.interact.widget.InteractRing
All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class InteractRing extends Mesh
Textured ring geometry, intended for use as a rotational handle.
  • Field Details

    • _innerRadius

      protected float _innerRadius
    • _outerRadius

      protected float _outerRadius
    • _tessRings

      protected int _tessRings
    • _tessSteps

      protected int _tessSteps
    • _texMul

      protected float _texMul
    • _concaveValue

      protected float _concaveValue
  • Constructor Details

    • InteractRing

      public InteractRing()
    • InteractRing

      public InteractRing(String name, int tessRings, int tessSteps, float radius, float width)
    • InteractRing

      public InteractRing(String name, int tessRings, int tessSteps, float radius, float width, float concaveValue)
  • Method Details

    • setRadius

      public void setRadius(float radius, float width)
    • setTextureMultiplier

      public void setTextureMultiplier(float vMult)
      Parameters:
      vMult - new multiplier for v direction of texture coords (around ring)
    • setConcaveValue

      public void setConcaveValue(float value)
    • setTexture

      public void setTexture(Texture2D texture)
      Convenience method for setting texture without managing TextureState.
      Parameters:
      texture - the new texture to set on unit 0.
    • updateGeometry

      public void updateGeometry()
    • normalize

      protected void normalize(int i, float[] nrm)
    • calculateVertexData

      protected void calculateVertexData(int numStrips, int numPairs, int totalVerts, FloatBuffer crdBuf, FloatBuffer nrmBuf, FloatBuffer txcBuf)
    • write

      public void write(OutputCapsule capsule) throws IOException
      Specified by:
      write in interface Savable
      Overrides:
      write in class Mesh
      Parameters:
      capsule - the capsule
      Throws:
      IOException - Signals that an I/O exception has occurred.
      See Also:
    • read

      public void read(InputCapsule capsule) throws IOException
      Specified by:
      read in interface Savable
      Overrides:
      read in class Mesh
      Parameters:
      capsule - the input capsule
      Throws:
      IOException - Signals that an I/O exception has occurred.
      See Also: