public abstract class SoElement extends Inventor
Type identifiers: Each class of element has a unique (static) SoType identifier. The correct type id is also stored in each instance for easy access.
Copying: 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).
Stack indices: 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.
Capturing: 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, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
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 pop(SoState state, SoElement prevTopElement)
public void push(SoState state)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com