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
Class
SoNormalCache
:
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of normals in the cache .Returns the normal binding in the cache.SbVec3f[]
Returns the list of normals in the cache .int
getNum()
Returns the number of normals in the cache.int
Returns the startIndex offset in the cache.void
set
(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding) Calls set(normals, normalBinding, (int)0).void
set
(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 Details
-
SoNormalCache
Constructor.
-
-
Method Details
-
set
Calls set(normals, normalBinding, (int)0). -
getDirectNormals
Returns the list of normals in the cache . -
getStartIndex
public int getStartIndex()Returns the startIndex offset in the cache. -
getNormals
Returns the list of normals in the cache . -
getNum
public int getNum()Returns the number of normals in the cache. -
getNormalBinding
Returns the normal binding in the cache. -
set
Stores a list of normals in the cache .
-