Class SoCacheElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoCacheElement
-
public class SoCacheElement extends SoElement
Stores the most recently opened cache. This element stores the most recently opened cache.SoSeparator, SoRenderList
-
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleananyOpen(SoState state)Returns true if any cache is currently open in the state.static voidcloseAnyOpen(SoState state)Closes any open cache.SoCachegetCache()Returns the cache stored in an instance.static intgetClassStackIndex()Deprecated.As of Open Inventor 9300.SoCacheElementgetNextCacheElement()Returns the next cache element in the stack.static voidinvalidate(SoState state)Invalidate any open caches.voidpop(SoState state, SoElement prevTopElement)Overrides this method to unref cache.voidpush(SoState state)push to save dependencies liststatic voidset(SoState state, SoCache cache)Sets cache in element accessed from state.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
anyOpen
public static boolean anyOpen(SoState state)
Returns true if any cache is currently open in the state.
-
set
public static void set(SoState state, SoCache cache)
Sets cache in element accessed from state.
-
invalidate
public static void invalidate(SoState state)
Invalidate any open caches. This is called by nodes that should not be cached.
-
getClassStackIndex
@Deprecated public static int getClassStackIndex()
Deprecated.As of Open Inventor 9300. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
closeAnyOpen
public static void closeAnyOpen(SoState state)
Closes any open cache.
-
getCache
public SoCache getCache()
Returns the cache stored in an instance. This may be NULL.
-
push
public void push(SoState state)
push to save dependencies list
-
getNextCacheElement
public SoCacheElement getNextCacheElement()
Returns the next cache element in the stack.
-
-