Class UVIndexer

java.lang.Object
kr.toxicity.library.dynamicuv.UVIndexer

public final class UVIndexer extends Object
Manages indexing for UV models, colors, flags, and floats.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the next color index.
    int
    Gets the next flag index.
    int
    Gets the next float index.
    int
    Gets the next model index.
    int
    shiftColor(int shift)
    Shifts the color index by the given amount.
    int
    shiftFlag(int shift)
    Shifts the flag index by the given amount.
    int
    shiftFloats(int shift)
    Shifts the float index by the given amount.
    int
    shiftModel(int shift)
    Shifts the model index by the given amount.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UVIndexer

      public UVIndexer()
  • Method Details

    • model

      public int model()
      Gets the next model index.
      Returns:
      the next model index
    • color

      public int color()
      Gets the next color index.
      Returns:
      the next color index
    • flag

      public int flag()
      Gets the next flag index.
      Returns:
      the next flag index
    • floats

      public int floats()
      Gets the next float index.
      Returns:
      the next float index
    • shiftModel

      public int shiftModel(int shift)
      Shifts the model index by the given amount.
      Parameters:
      shift - the amount to shift
      Returns:
      the previous model index
    • shiftColor

      public int shiftColor(int shift)
      Shifts the color index by the given amount.
      Parameters:
      shift - the amount to shift
      Returns:
      the previous color index
    • shiftFlag

      public int shiftFlag(int shift)
      Shifts the flag index by the given amount.
      Parameters:
      shift - the amount to shift
      Returns:
      the previous flag index
    • shiftFloats

      public int shiftFloats(int shift)
      Shifts the float index by the given amount.
      Parameters:
      shift - the amount to shift
      Returns:
      the previous float index