public static enum SoCamera.ViewportMappings extends java.lang.Enum<SoCamera.ViewportMappings> implements IntegerValuedEnum
Enum Constant and Description |
---|
ADJUST_CAMERA
Adjusts the camera aspect ratio and height to make it fit within the given window.
|
CROP_VIEWPORT_FILL_FRAME
Crops the viewport within the current window, so that the aspect ratio matches that of the camera.
|
CROP_VIEWPORT_LINE_FRAME
Crops the viewport, but draws a thin frame around the viewport.
|
CROP_VIEWPORT_NO_FRAME
Crops the viewport, but gives no visual feedback as to the viewport dimensions within the window.
|
LEAVE_ALONE
Do nothing.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of the enum constant.
|
static SoCamera.ViewportMappings |
valueOf(int val)
Returns the enum constant of this type with the specified integer value
|
static SoCamera.ViewportMappings |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SoCamera.ViewportMappings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SoCamera.ViewportMappings CROP_VIEWPORT_FILL_FRAME
public static final SoCamera.ViewportMappings CROP_VIEWPORT_LINE_FRAME
public static final SoCamera.ViewportMappings CROP_VIEWPORT_NO_FRAME
public static final SoCamera.ViewportMappings ADJUST_CAMERA
public static final SoCamera.ViewportMappings LEAVE_ALONE
public static SoCamera.ViewportMappings[] values()
for (SoCamera.ViewportMappings c : SoCamera.ViewportMappings.values()) System.out.println(c);
public static SoCamera.ViewportMappings valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SoCamera.ViewportMappings valueOf(int val)
public int getValue()
IntegerValuedEnum
getValue
in interface IntegerValuedEnum
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com