Class 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 Detail

      • SoColorPacker

        public SoColorPacker()
    • Method Detail

      • 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()