@Deprecated public class ViewerState extends Object
Modifier | Constructor and Description |
---|---|
|
ViewerState(List<SourceAndConverter<?>> sources,
int numTimePoints)
Deprecated.
|
|
ViewerState(List<SourceAndConverter<?>> sources,
List<SourceGroup> sourceGroups,
int numTimePoints)
Deprecated.
|
|
ViewerState(SynchronizedViewerState state)
Deprecated.
|
protected |
ViewerState(ViewerState s)
Deprecated.
copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addGroup(SourceGroup group)
Deprecated.
|
void |
addSource(SourceAndConverter<?> source)
Deprecated.
|
ViewerState |
copy()
Deprecated.
|
int |
getBestMipMapLevel(AffineTransform3D screenScaleTransform,
int sourceIndex)
Deprecated.
Get the mipmap level that best matches the given screen scale for the given source.
|
int |
getBestMipMapLevel(AffineTransform3D screenScaleTransform,
Source<?> source)
Deprecated.
Get the mipmap level that best matches the given screen scale for the given source.
|
int |
getCurrentGroup()
Deprecated.
Get the index of the current group.
|
int |
getCurrentSource()
Deprecated.
Get the index of the current source.
|
int |
getCurrentTimepoint()
Deprecated.
Get the timepoint index that is currently displayed.
|
DisplayMode |
getDisplayMode()
Deprecated.
Get the current
DisplayMode . |
Interpolation |
getInterpolation()
Deprecated.
Get the interpolation method.
|
int |
getNumTimepoints()
Deprecated.
Get the number of timepoints.
|
List<SourceGroup> |
getSourceGroups()
Deprecated.
Returns a list of all source groups.
|
List<SourceState<?>> |
getSources()
Deprecated.
Returns a list of all sources.
|
SynchronizedViewerState |
getState()
Deprecated.
|
void |
getViewerTransform(AffineTransform3D t)
Deprecated.
Get the viewer transform.
|
List<Integer> |
getVisibleSourceIndices()
Deprecated.
Returns a list of the indices of all currently visible sources.
|
boolean |
isSingleSourceMode()
Deprecated.
replaced by
getDisplayMode() |
boolean |
isSourceVisible(int index)
Deprecated.
|
void |
kill()
Deprecated.
DON'T USE THIS.
|
int |
numSourceGroups()
Deprecated.
Returns the number of source groups.
|
int |
numSources()
Deprecated.
Returns the number of sources.
|
protected void |
removeGroup(int index)
Deprecated.
|
void |
removeGroup(SourceGroup group)
Deprecated.
|
protected void |
removeSource(int index)
Deprecated.
|
void |
removeSource(Source<?> source)
Deprecated.
|
void |
setCurrentGroup(int index)
Deprecated.
Make the group with the given index current.
|
void |
setCurrentGroup(SourceGroup group)
Deprecated.
Make the given group current.
|
void |
setCurrentSource(int index)
Deprecated.
Make the source with the given index current.
|
void |
setCurrentSource(Source<?> source)
Deprecated.
Make the given source current.
|
void |
setCurrentTimepoint(int timepoint)
Deprecated.
Set the current timepoint index.
|
void |
setDisplayMode(DisplayMode mode)
Deprecated.
Set the
DisplayMode . |
void |
setInterpolation(Interpolation method)
Deprecated.
Set the interpolation method.
|
void |
setNumTimepoints(int numTimepoints)
Deprecated.
Set the number of timepoints.
|
void |
setSingleSourceMode(boolean singleSourceMode)
Deprecated.
replaced by
setDisplayMode(DisplayMode) |
void |
setViewerTransform(AffineTransform3D t)
Deprecated.
Set the viewer transform.
|
public ViewerState(List<SourceAndConverter<?>> sources, int numTimePoints)
public ViewerState(List<SourceAndConverter<?>> sources, List<SourceGroup> sourceGroups, int numTimePoints)
sources
- the sources
to display.numTimePoints
- number of available timepoints.public ViewerState(SynchronizedViewerState state)
protected ViewerState(ViewerState s)
s
- public SynchronizedViewerState getState()
public ViewerState copy()
public void getViewerTransform(AffineTransform3D t)
t
- is set to the viewer transform.public void setViewerTransform(AffineTransform3D t)
t
- transform parameters.public int getCurrentSource()
public void setCurrentSource(int index)
public void setCurrentSource(Source<?> source)
public int getCurrentGroup()
public void setCurrentGroup(int index)
public void setCurrentGroup(SourceGroup group)
public Interpolation getInterpolation()
public void setInterpolation(Interpolation method)
method
- interpolation method.@Deprecated public boolean isSingleSourceMode()
getDisplayMode()
@Deprecated public void setSingleSourceMode(boolean singleSourceMode)
setDisplayMode(DisplayMode)
singleSourceMode
- If true, set single-source mode. If false, set
fused mode.public void setDisplayMode(DisplayMode mode)
DisplayMode
.
mode
- the display modepublic DisplayMode getDisplayMode()
DisplayMode
.
public int getCurrentTimepoint()
public void setCurrentTimepoint(int timepoint)
timepoint
- timepoint index.public List<SourceState<?>> getSources()
public int numSources()
public List<SourceGroup> getSourceGroups()
public int numSourceGroups()
public void addSource(SourceAndConverter<?> source)
public void removeSource(Source<?> source)
protected void removeSource(int index)
public void addGroup(SourceGroup group)
public void removeGroup(SourceGroup group)
protected void removeGroup(int index)
public boolean isSourceVisible(int index)
public List<Integer> getVisibleSourceIndices()
public int getBestMipMapLevel(AffineTransform3D screenScaleTransform, int sourceIndex)
screenScaleTransform
- screen scale, transforms screen coordinates to viewer coordinates.public int getBestMipMapLevel(AffineTransform3D screenScaleTransform, Source<?> source)
screenScaleTransform
- screen scale, transforms screen coordinates to viewer coordinates.public int getNumTimepoints()
public void setNumTimepoints(int numTimepoints)
numTimepoints
- the number of timepoints.public void kill()
This is a work around for JDK bug https://bugs.openjdk.java.net/browse/JDK-8029147 which leads to ViewerPanel not being garbage-collected when ViewerFrame is closed. So instead we need to manually let go of resources...
Copyright © 2015–2021 Fiji. All rights reserved.