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
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:
-
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
FieldsModifier and TypeFieldDescriptionfinal SoSFVec2f
Specifies the position of the clip region in pixels.final SoSFVec2f
Specifies the size of the clip region in pixels.Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Constructor Summary
Constructors -
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 Details
-
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
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.
-
-
Constructor Details
-
SoViewportClipping
public SoViewportClipping()Constructor.
-