public abstract class SoElement extends Inventor
<B> Type identifiers: </B> Each class of element has a unique (static) SoType identifier. The correct type id is also stored in each instance for easy access. <B> Copying: </B> Elements are copied into the list of elements used in an SoCache. Performing any operation other than matches() on a copied element is not guaranteed to work (and will not work for things like Coordinates, if the coordinate they were pointing to has been deleted). <B> Stack indices: </B> Since a subclass of an element class needs to be in the same state stack as the class from which it is derived, stack indices are inherited. <B> Capturing: </B> Each time an element's value is accessed, that element is added to the elements-used list of all currently open caches.
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static <E extends SoElement> |
getClassStackIndex(java.lang.Class<E> elementClass)
Returns the stack id for the element type.
|
void |
pop(SoState state,
SoElement prevTopElement)
Pops element.
|
void |
push(SoState state)
Pushes element.
|
dispose, getNativeResourceHandle
public static <E extends SoElement> int getClassStackIndex(java.lang.Class<E> elementClass)
elementClass
- Type of element. The type must not be an abstract type.java.lang.IllegalArgumentException
- if the specified type is an abstract type.public void push(SoState state)
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com