Class SoViewportRegionElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoViewportRegionElement
Stores the current viewport region.
This element stores the current viewport region, which indicates which part of the window is being rendered into. This information is also needed during picking and bounding box computation to determine sizes/locations of screen-space objects.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Method Summary
Modifier and TypeMethodDescriptionstatic SbViewportRegionReturns current viewport region from the state.static intDeprecated.As of Open Inventor 9.3.0.0.static voidset(SoState state, SbViewportRegion vpReg) Calls set(state, vpReg, true).static voidset(SoState state, SbViewportRegion vpReg, boolean sendToGL) Sets the viewport region.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, pushMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
set
Calls set(state, vpReg, true). -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
set
Sets the viewport region. This method will (indirectly) call glViewport with the new values unless the 'sendToGL' parameter is explicitly false. -
get
Returns current viewport region from the state.
-