Package com.openinventor.inventor.nodes
Class SoViewportClipping
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoViewportClipping
-
- All Implemented Interfaces:
SafeDisposable
public class SoViewportClipping extends SoNode
Viewport clipping node. This node specifies a clipping region on the screen defined by a position and a size in pixels. Any portion of a primitive outside this region will not be rendered.Note that this clipping is applied in screen space after viewing and view clipping. (For OpenGL programmers, think of it as a call to glScissor.)
The clipping region also limits the effect of clearing the depth buffer using an
SoDepthBuffer
node.- Since:
- Open Inventor 8.6
File format/default:
ViewClipping {
origin 0 0 size 0 0 Action behavior:
SoGLRenderAction
Sets the clipping region. Sets:SoUpdateAreaElement
- See Also:
SoViewport
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFVec2f
origin
Specifies the position of the clip region in pixels.SoSFVec2f
size
Specifies the size of the clip region in pixels.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoViewportClipping()
Constructor.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
origin
public final SoSFVec2f origin
Specifies the position of the clip region in pixels. (Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.
-
size
public final SoSFVec2f size
Specifies the size of the clip region in pixels. (Although this is a float field, the values really are pixels, not normalized units.) Default is 0,0.
-
-