Class SoColorPacker

java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoColorPacker

public class SoColorPacker extends Inventor
Stores packed colors. This class is meant to be used by all property nodes that set either a diffuse color or transparency in the lazy element. It maintains a cache of the current diffuse color and transparency in a packed color array.
  • Constructor Details

    • SoColorPacker

      public SoColorPacker()
  • Method Details

    • reallocate

      public void reallocate(int size)
    • setNodeIds

      public void setNodeIds(long diffNodeId, long tNodeId)
    • transpMatch

      public boolean transpMatch(long nodeId)
    • diffuseMatch

      public boolean diffuseMatch(long nodeId)
    • getPackedColors

      public int[] getPackedColors()
    • getSize

      public int getSize()