Package com.openinventor.inventor.misc
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoColorPacker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
diffuseMatch(long nodeId)
int[]
getPackedColors()
int
getSize()
void
reallocate(int size)
void
setNodeIds(long diffNodeId, long tNodeId)
boolean
transpMatch(long nodeId)
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
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()
-
-