public class DisplayManager extends LogicManager
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EYE_SEPARATION
Default eye separation distance for stereo displays.
|
static int |
DEFAULT_STACK_RESOLUTION
Default maximum resolution for images in a stack.
|
protected DisplayControls |
displayControls
Displays control panel.
|
static String |
DO_STEREO
String for stereo displays option.
|
static String |
EYE_DISTANCE
String for eye separation setting.
|
static int |
MAX_DISPLAYS
Maximum number of simultaneous displays.
|
protected int |
nextId
Counter for display names.
|
static String |
NICE_ALPHA
String for nicest transparency option.
|
static String |
STACK_LIMIT
String for image stack resolution limit option.
|
static String |
TEXTURE_MAP
String for texture mapping option.
|
static String |
TEXTURE3D
String for 3D texturing option.
|
static String |
WARN_IMAGEJ
String for ImageJ quit warning.
|
bio
Constructor and Description |
---|
DisplayManager(VisBioFrame bio)
Constructs a display manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisplay(DisplayWindow d)
Adds a display to the list of current displays.
|
DisplayWindow |
createDisplay(Component parent,
boolean threeD)
Pops up a dialog allowing the user to create a new display.
|
DisplayWindow |
createDisplay(Component parent,
String defaultName,
boolean threeD)
Pops up a dialog allowing the user to create a new display, with the given
default name.
|
void |
doEvent(VisBioEvent evt)
Called to notify the logic manager of a VisBio event.
|
protected void |
doGUI()
Adds display-related GUI components to VisBio.
|
DisplayControls |
getControls()
Gets associated control panel.
|
DisplayWindow[] |
getDisplays()
Gets the current list of displays.
|
int[] |
getStackResolution()
Gets maximum resolution of stacked images from VisBio options.
|
int |
getTasks()
Gets the number of tasks required to initialize this logic manager.
|
boolean |
is3DTextured()
Gets whether to use 3D texturing from VisBio options.
|
boolean |
isNiceTransparency()
Gets whether to use nicest transparency mode from VisBio options.
|
boolean |
isTextureMapped() |
void |
removeDisplay(DisplayWindow d)
Removes a display from the list of current displays.
|
void |
restoreState(Element el)
Restores the current state from the given DOM element ("VisBio").
|
void |
saveState(Element el)
Writes the current state to the given DOM element ("VisBio").
|
getVisBio
public static final int MAX_DISPLAYS
public static final int DEFAULT_STACK_RESOLUTION
public static final double DEFAULT_EYE_SEPARATION
public static final String STACK_LIMIT
public static final String NICE_ALPHA
public static final String TEXTURE_MAP
public static final String TEXTURE3D
public static final String DO_STEREO
public static final String EYE_DISTANCE
public static final String WARN_IMAGEJ
protected int nextId
protected DisplayControls displayControls
public DisplayManager(VisBioFrame bio)
public DisplayWindow createDisplay(Component parent, boolean threeD)
public DisplayWindow createDisplay(Component parent, String defaultName, boolean threeD)
public void addDisplay(DisplayWindow d)
public void removeDisplay(DisplayWindow d)
public DisplayWindow[] getDisplays()
public int[] getStackResolution()
public boolean isNiceTransparency()
public boolean isTextureMapped()
public boolean is3DTextured()
public DisplayControls getControls()
public void doEvent(VisBioEvent evt)
doEvent
in class LogicManager
public int getTasks()
getTasks
in class LogicManager
public void saveState(Element el) throws SaveException
saveState
in interface Saveable
saveState
in class LogicManager
SaveException
public void restoreState(Element el) throws SaveException
restoreState
in interface Saveable
restoreState
in class LogicManager
SaveException
protected void doGUI()
Copyright © 2015–2022 SciJava. All rights reserved.