Package com.openinventor.ldm.tiles
Class SoBufferAsyncNotifierInterface
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.ldm.tiles.SoBufferAsyncNotifierInterface
- All Implemented Interfaces:
SafeDisposable
LDM interface to optimize memory management of tiles .
Specialized buffer object classes may implement this interface to provide additional information about the contents of the buffer.
- See Also:
-
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
Modifier and TypeMethodDescriptionbooleandispose()Explicitly call this method to force object to dispose its unmanaged resources.booleanReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.booleanNotify an object that a buffer implementing SoBufferAsyncInterface has change its state.Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Method Details
-
isDisposable
public boolean isDisposable()Description copied from interface:SafeDisposableReturns a boolean flag which indicates if it is safe to callSafeDisposable.dispose()on the object.- Specified by:
isDisposablein interfaceSafeDisposable- Returns:
trueif the object can be disposed in a safe manner
-
dispose
public boolean dispose()Description copied from class:InventorExplicitly call this method to force object to dispose its unmanaged resources. The object may not be reused in the application code after this call.- Specified by:
disposein interfaceSafeDisposable- Overrides:
disposein classInventor- Returns:
trueif this object native resources were successfully disposed;falseif it was already disposed or no native resources has been registered for this object.
-
refetchNotify
public boolean refetchNotify()Notify an object that a buffer implementing SoBufferAsyncInterface has change its state. It allows for example to let LDM know that some new data are now available.- Returns:
- true if the notification is taken in account, false otherwise (if the object to notify does not exist anymore for example)
-