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.InventorInventor.ConstructorCommand
 
- 
 - 
Field Summary- 
Fields inherited from class com.openinventor.inventor.InventorVERBOSE_LEVEL, ZeroHandle
 
- 
 - 
Constructor SummaryConstructors Constructor Description SoNormalCache(SoState state)Constructor.
 - 
Method SummaryAll 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.SoCacheaddCacheDependency, addElement, getCachedInvalidElement, getInvalidElement, invalidate, isValid, isValid
 - 
Methods inherited from class com.openinventor.inventor.caches.SoBaseContextCachedispose, isContextDependent, isDisposable, release, setContextDependent, setContextDependent
 - 
Methods inherited from class com.openinventor.inventor.InventorgetNativeResourceHandle
 
- 
 
- 
- 
- 
Constructor Detail- 
SoNormalCachepublic SoNormalCache(SoState state) Constructor.
 
- 
 - 
Method Detail- 
setpublic void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding) Calls set(normals, normalBinding, (int)0).
 - 
getNumpublic int getNum() Returns the number of normals in the cache.
 - 
getDirectNormalspublic java.nio.FloatBuffer getDirectNormals() Returns the list of normals in the cache .
 - 
getNormalBindingpublic SoNormalBindingElement.Bindings getNormalBinding() Returns the normal binding in the cache.
 - 
setpublic void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding, int startIndex) Stores a list of normals in the cache .
 - 
getStartIndexpublic int getStartIndex() Returns the startIndex offset in the cache.
 - 
getNormalspublic SbVec3f[] getNormals() Returns the list of normals in the cache .
 
- 
 
-