public class SoNodeDependencies extends Inventor implements SafeDisposable
If one of the added elements or fields has been modified since the last call to updateCache(), the isValid() method will return false, and a subsequent call to updateCache() will make it valid again.
Additionnally, the handled cache can be manually invalidated using the invalidate() method.
Inventor.ConstructorCommandVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
SoNodeDependencies() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(java.lang.Class<? extends Inventor> type,
int classStackIndex)
Add given element type as a dependency for the cache.
|
boolean |
dispose()
Explicitly call this method to force object to dispose its unmanaged
resources.
|
void |
invalidate()
Manually invalidate the cache.
|
boolean |
isDisposable()
Returns a boolean flag which indicates if it is safe to call
SafeDisposable.dispose() on the object. |
boolean |
isValid(SoState state)
Returns true if the cache is valid for the given state.
|
void |
updateCache(SoState state)
Update cache according to given state.
|
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic boolean isDisposable()
SafeDisposableSafeDisposable.dispose() on the object.isDisposable in interface SafeDisposabletrue if the object can be disposed in a safe mannerpublic boolean dispose()
Inventordispose in interface SafeDisposabledispose in class Inventortrue if this object native resources were successfully
disposed; false if it was already disposed or no
native resources has been registered for this object.public void invalidate()
public void addDependency(java.lang.Class<? extends Inventor> type, int classStackIndex)
public void updateCache(SoState state)
public boolean isValid(SoState state)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com