public class SoClipPlaneElement extends SoAccumulatedElement
When a plane is added, this element gets the current model matrix from the state and stores it in the instance. This allows the get()
method to return the clip plane in object space (the plane as originally defined) or world space (after being transformed by the model matrix).
See also:
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static void |
add(SoState state,
SoNode node,
SbPlane plane)
Adds a clip plane to the current set in the state.
|
SbPlane |
get(int index)
Calls get(index, true).
|
SbPlane |
get(int index,
boolean inWorldSpace)
Returns the indexed plane an element as an
SbPlane . |
static int |
getClassStackIndex()
Deprecated.
As of Open Inventor 9.3 replaced by SoElement.getClassStackIndex(Class)
|
static SoClipPlaneElement |
getInstance(SoState state)
Returns the top (current) instance of the element in the state.
|
static int |
getMaxGLPlanes()
Returns the maximum number of concurrent clipping planes supported by current implementation.
|
int |
getNum()
Returns the number of planes in an instance.
|
void |
pop(SoState state,
SoElement prevTopElement)
Overrides
pop() method to free up planes that were added. |
void |
push(SoState state)
Overrides
push() method to copy values from next instance in the stack. |
getClassStackIndex
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SbPlane get(int index)
@Deprecated public static int getClassStackIndex()
public void push(SoState state)
push()
method to copy values from next instance in the stack.push
in class SoAccumulatedElement
public SbPlane get(int index, boolean inWorldSpace)
SbPlane
.
The plane can be returned in object or world space.public static SoClipPlaneElement getInstance(SoState state)
public static void add(SoState state, SoNode node, SbPlane plane)
public int getNum()
public void pop(SoState state, SoElement prevTopElement)
pop()
method to free up planes that were added.public static int getMaxGLPlanes()
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com