public class SoBase extends Inventor implements SafeDisposable
Instances should be referenced when they will be used outside of the routine in which they were initialized. (A typical example of this is maintaining a reference to the root of a graph.)
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
boolean |
dispose()
Explicitly call this method to force object to dispose its unmanaged
resources.
|
java.lang.String |
getName()
Returns the name of an instance.
|
boolean |
isDisposable()
Returns a boolean flag which indicates if it is safe to call
SafeDisposable.dispose() on the object. |
boolean |
isSynchronizable()
Gets the ScaleViz synchronizable state of this object.
|
void |
setName(java.lang.String name)
Sets the name of an instance.
|
void |
setSynchronizable(boolean b)
Sets this to be a ScaleViz synchronizable object.
|
void |
touch()
Marks an instance as modified, simulating a change to it.
|
getNativeResourceHandle
public boolean isDisposable()
SafeDisposable
SafeDisposable.dispose()
on the object.isDisposable
in interface SafeDisposable
true
if the object can be disposed in a safe mannerpublic boolean dispose()
Inventor
dispose
in interface SafeDisposable
dispose
in class Inventor
true
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 touch()
public void setSynchronizable(boolean b)
public boolean isSynchronizable()
public void setName(java.lang.String name)
The same name may be assigned to more than one instance.
Avoid using names that begin with "OIV_". Such names may be used internally.
Nodes may be queried by name using the SoNode.getByName
methods. Node names may also be used with SoSearchAction
.
public java.lang.String getName()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com