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
public class SoTangentCache extends SoCache
ClassSoTangentCache
: 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 Constructor Description SoTangentCache(SoState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.FloatBuffer
getDirectTangents()
Returns the list of tangents in the cache .int
getNum()
Returns the number of tangents in the cache.int
getStartIndex()
Returns the startIndex offset in the cache.SoTangentBindingElement.Bindings
getTangentBinding()
Returns the tangent binding in the cache.SbVec3f[]
getTangents()
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 Detail
-
SoTangentCache
public SoTangentCache(SoState state)
-
-
Method Detail
-
set
public void set(SbVec3f[] tangents, SoTangentBindingElement.Bindings tangentBinding)
Calls set(tangents, tangentBinding, (int)0).
-
getNum
public int getNum()
Returns the number of tangents in the cache.
-
getDirectTangents
public java.nio.FloatBuffer getDirectTangents()
Returns the list of tangents in the cache .
-
getTangentBinding
public SoTangentBindingElement.Bindings 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 .
-
getStartIndex
public int getStartIndex()
Returns the startIndex offset in the cache.
-
getTangents
public SbVec3f[] getTangents()
Returns the list of tangents in the cache .
-
-