public class SoCache extends SoBaseContextCache
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
void |
addCacheDependency(SoState state,
SoCache cache)
Adds a dependency of this instance on another cache instance.
|
void |
addElement(SoElement elt)
Adds an element to elements-used list if not already there.
|
SoElement |
getCachedInvalidElement(SoState state)
Assuming
isValid() returns false, this will return the first cached element that is invalid (auto-caching uses this in its heuristic). |
SoElement |
getInvalidElement(SoState state)
Assuming
isValid() returns false, this will return the first state element that is invalid (auto-caching uses this in its heuristic). |
void |
invalidate()
Make this cache invalid.
|
boolean |
isValid(SoState state)
Returns true if cache is valid with respect to the given state.
|
boolean |
isValid(SoState state,
SoElement elf)
Return is the given element is valid True if the element is not monitored.
|
dispose, isContextDependent, isDisposable, release, setContextDependent, setContextDependent
getNativeResourceHandle
public SoCache(SoState state)
public void addCacheDependency(SoState state, SoCache cache)
public void addElement(SoElement elt)
public boolean isValid(SoState state, SoElement elf)
public void invalidate()
public SoElement getInvalidElement(SoState state)
isValid()
returns false, this will return the first state element that is invalid (auto-caching uses this in its heuristic).
Returns NULL if the cache is not invalid because of an element or if the cache is valid.public boolean isValid(SoState state)
public SoElement getCachedInvalidElement(SoState state)
isValid()
returns false, this will return the first cached element that is invalid (auto-caching uses this in its heuristic).
Returns NULL if the cache is not invalid because of an element or if the cache is valid.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com