Package com.openinventor.inventor.caches
Class SoTangentCache
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.caches.SoBaseContextCache
com.openinventor.inventor.caches.SoCache
com.openinventor.inventor.caches.SoTangentCache
- All Implemented Interfaces:
SafeDisposable
Class
SoTangentCache
:
A tangent cache stores a list of tangents.-
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 tangents in the cache .int
getNum()
Returns the number of tangents in the cache.int
Returns the startIndex offset in the cache.Returns the tangent binding in the cache.SbVec3f[]
Returns the list of tangents in the cache .void
set
(SbVec3f[] tangents, SoTangentBindingElement.Bindings tangentBinding) Calls set(tangents, tangentBinding, (int)0).void
set
(SbVec3f[] tangents, SoTangentBindingElement.Bindings tangentBinding, int startIndex) Stores a list of tangents 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
-
SoTangentCache
-
-
Method Details
-
set
Calls set(tangents, tangentBinding, (int)0). -
getDirectTangents
Returns the list of tangents in the cache . -
getStartIndex
public int getStartIndex()Returns the startIndex offset in the cache. -
getTangents
Returns the list of tangents in the cache . -
getNum
public int getNum()Returns the number of tangents in the cache. -
getTangentBinding
Returns the tangent binding in the cache. -
set
public void set(SbVec3f[] tangents, SoTangentBindingElement.Bindings tangentBinding, int startIndex) Stores a list of tangents in the cache .
-