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 boolean
anyOpen(SoState state)
Returns true if any cache is currently open in the state.static void
closeAnyOpen(SoState state)
Closes any open cache.SoCache
getCache()
Returns the cache stored in an instance.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9300.SoCacheElement
getNextCacheElement()
Returns the next cache element in the stack.static void
invalidate(SoState state)
Invalidate any open caches.void
pop(SoState state, SoElement prevTopElement)
Overrides this method to unref cache.void
push(SoState state)
push to save dependencies liststatic void
set(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.
-
-