Class SoViewportRegionElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoViewportRegionElement
-
public class SoViewportRegionElement extends SoElement
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.
-
-
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
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SbViewportRegion
get(SoState state)
Returns current viewport region from the state.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static void
set(SoState state, SbViewportRegion vpReg)
Calls set(state, vpReg, true).static void
set(SoState state, SbViewportRegion vpReg, boolean sendToGL)
Sets the viewport region.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop, push
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
set
public static void set(SoState state, SbViewportRegion vpReg)
Calls set(state, vpReg, true).
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
set
public static void set(SoState state, SbViewportRegion vpReg, boolean sendToGL)
Sets the viewport region. This method will (indirectly) call glViewport with the new values unless the 'sendToGL' parameter is explicitly false.
-
get
public static SbViewportRegion get(SoState state)
Returns current viewport region from the state.
-
-