Package com.openinventor.inventor.caches
Class SoNormalCache
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.caches.SoBaseContextCache
-
- com.openinventor.inventor.caches.SoCache
-
- com.openinventor.inventor.caches.SoNormalCache
-
- All Implemented Interfaces:
SafeDisposable
public class SoNormalCache extends SoCache
ClassSoNormalCache: A normal cache stores a list of normals.
-
-
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 SoNormalCache(SoState state)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBuffergetDirectNormals()Returns the list of normals in the cache .SoNormalBindingElement.BindingsgetNormalBinding()Returns the normal binding in the cache.SbVec3f[]getNormals()Returns the list of normals in the cache .intgetNum()Returns the number of normals in the cache.intgetStartIndex()Returns the startIndex offset in the cache.voidset(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding)Calls set(normals, normalBinding, (int)0).voidset(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding, int startIndex)Stores a list of normals in the cache .-
Methods inherited from class com.openinventor.inventor.caches.SoCache
addCacheDependency, addElement, getCachedInvalidElement, getInvalidElement, invalidate, isValid, isValid
-
Methods inherited from class com.openinventor.inventor.caches.SoBaseContextCache
dispose, isContextDependent, isDisposable, release, setContextDependent, setContextDependent
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoNormalCache
public SoNormalCache(SoState state)
Constructor.
-
-
Method Detail
-
set
public void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding)
Calls set(normals, normalBinding, (int)0).
-
getNum
public int getNum()
Returns the number of normals in the cache.
-
getDirectNormals
public java.nio.FloatBuffer getDirectNormals()
Returns the list of normals in the cache .
-
getNormalBinding
public SoNormalBindingElement.Bindings getNormalBinding()
Returns the normal binding in the cache.
-
set
public void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding, int startIndex)
Stores a list of normals in the cache .
-
getStartIndex
public int getStartIndex()
Returns the startIndex offset in the cache.
-
getNormals
public SbVec3f[] getNormals()
Returns the list of normals in the cache .
-
-