Package com.openinventor.inventor.misc
Class SoColorPacker
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.misc.SoColorPacker
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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
diffuseMatch
(long nodeId) int[]
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
-
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()
-