public class Dynamic_Reslice extends Object implements ij.plugin.PlugIn, MouseMotionListener, WindowListener
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Slicer| Constructor and Description |
|---|
Dynamic_Reslice()
Empty constructor, needed by ImageJ.
|
Dynamic_Reslice(ij.ImagePlus _imp)
Create a new instance of this plugin, linked to the ImagePlus given in
argument.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dealWithCalibration() |
boolean |
getFlip()
Get the flip state for this instance.
|
ij.ImagePlus |
getImagePlus() |
boolean |
getRotate()
Get the rotate state for this instance.
|
protected ij.process.ImageProcessor |
getSlice(ij.ImagePlus imp,
Roi roi)
Create an ImageProcessor containing the reslice of the current stack in
the given ImagePlus, for the Roi given as second argument (not necessary the
ImagePlus's Roi).
|
void |
mouseDragged(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
protected void |
reslice()
Main method that actually dispatch the work.
|
void |
run(String arg)
Main method, called when the plugin is launched from ImageJ menu.
|
void |
setFlip(boolean _flip)
Set the flip state for this instance.
|
void |
setRotate(boolean _rotate)
Set the flip state for this instance.
|
void |
shutdown()
Shut down the Dynamic reslice, that is, remove itself from the listener
list.
|
void |
start()
Method to start the dynamic reslice process after all parameters
have been set.
|
void |
update()
Refresh the output display with the current roi.
|
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
public Dynamic_Reslice()
public Dynamic_Reslice(ij.ImagePlus _imp)
_imp - the source ImagePluspublic void run(String arg)
run in interface ij.plugin.PlugInpublic void start()
public void shutdown()
public void update()
protected ij.process.ImageProcessor getSlice(ij.ImagePlus imp,
Roi roi)
imp - the ImagePlus to resliceroi - the Roi to use for resliceprotected void reslice()
dest_imp) with the new content resulting from the
reslice. Also deal with calibration.protected void dealWithCalibration()
public boolean getFlip()
public void setFlip(boolean _flip)
_flip - whether the source will be flipped.public boolean getRotate()
public void setRotate(boolean _rotate)
_rotate - whether the result image must be rotated.public ij.ImagePlus getImagePlus()
public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenerpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenerpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenerpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenerpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenerpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenerCopyright © 2015–2021 Fiji. All rights reserved.