public final class DisplayUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static boolean |
ALLOW_3D
Flag for enabling or disabling Java3D, for debugging.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canDo3D()
Whether this JVM supports 3D displays.
|
static ScalarMap[] |
getMaps(DisplayImpl display,
ScalarType[] st,
DisplayRealType[] drt)
Gets an array of ScalarMaps from the given display, matching the specified
RealTypes and/or DisplayRealTypes.
|
static GraphicsConfiguration |
getStereoConfiguration()
Gets a graphics configuration for use with stereo displays.
|
static boolean |
isDisplay3D(DisplayImpl display)
Determines whether the given display is 3D.
|
static DisplayImpl |
makeDisplay(String name,
boolean threeD)
Creates a VisAD display according to the given parameters.
|
static DisplayImpl |
makeDisplay(String name,
boolean threeD,
GraphicsConfiguration config)
Creates a VisAD display according to the given parameters.
|
static void |
redrawMessages(DisplayImpl d)
Redraws exception messages in a display's bottom left-hand corner.
|
static void |
setDisplayDisabled(DisplayImpl d,
boolean disable)
Enables or disables the given display.
|
static void |
setEyeSeparation(DisplayImpl d,
double position)
Sets the eye separation for a stereo 3D display.
|
static void |
setParallelProjection(DisplayImpl d,
boolean parallel)
Sets whether the given 3D display uses a parallel projection.
|
protected static final boolean ALLOW_3D
public static boolean canDo3D()
public static DisplayImpl makeDisplay(String name, boolean threeD)
public static DisplayImpl makeDisplay(String name, boolean threeD, GraphicsConfiguration config)
public static void setEyeSeparation(DisplayImpl d, double position)
public static GraphicsConfiguration getStereoConfiguration()
public static boolean isDisplay3D(DisplayImpl display)
public static ScalarMap[] getMaps(DisplayImpl display, ScalarType[] st, DisplayRealType[] drt)
public static void setDisplayDisabled(DisplayImpl d, boolean disable)
public static void redrawMessages(DisplayImpl d)
public static void setParallelProjection(DisplayImpl d, boolean parallel)
Copyright © 2015–2022 SciJava. All rights reserved.