plugins.big.bigsnakeutils.icy.ellipsoid
Class EllipsoidROI2D

java.lang.Object
  extended by icy.roi.ROI
      extended by icy.roi.ROI2D
          extended by plugins.big.bigsnakeutils.icy.ellipsoid.EllipsoidROI2D
All Implemented Interfaces:
icy.common.listener.ChangeListener, icy.file.xml.XMLPersistent

public class EllipsoidROI2D
extends icy.roi.ROI2D

Class describing a ROI for ellipses.

Version:
May 3, 2014
Author:
Julien Jacquemot, Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)

Nested Class Summary
 
Nested classes/interfaces inherited from class icy.roi.ROI2D
icy.roi.ROI2D.ROI2DPainter
 
Nested classes/interfaces inherited from class icy.roi.ROI
icy.roi.ROI.ROIIdComparator, icy.roi.ROI.ROINameComparator, icy.roi.ROI.ROIPainter
 
Field Summary
 
Fields inherited from class icy.roi.ROI2D
ID_C, ID_T, ID_Z
 
Fields inherited from class icy.roi.ROI
DEFAULT_COLOR, DEFAULT_NORMAL_COLOR, DEFAULT_OPACITY, DEFAULT_STROKE, ID_CLASSNAME, ID_COLOR, ID_ID, ID_NAME, ID_OPACITY, ID_READONLY, ID_ROI, ID_SELECTED, ID_SHOWNAME, ID_STROKE, idComparator, nameComparator, PROPERTY_COLOR, PROPERTY_CREATING, PROPERTY_ICON, PROPERTY_NAME, PROPERTY_OPACITY, PROPERTY_READONLY, PROPERTY_SHOWNAME, PROPERTY_STROKE
 
Constructor Summary
EllipsoidROI2D(Ellipsoid2D ellipse)
          Default constructor.
 
Method Summary
 java.awt.geom.Rectangle2D computeBounds2D()
           
 boolean contains(double x, double y)
           
 boolean contains(double x, double y, double w, double h)
           
 double getArea()
           
 icy.roi.ROI getCopy()
           
 Ellipsoid2D getDescriptor()
          Returns the descriptor associated to this ROI.
 double getPerimeter()
           
 int getT()
           
 boolean hasSelectedPoint()
           
 boolean intersects(double x, double y, double w, double h)
           
 boolean isOver(icy.canvas.IcyCanvas canvas, double x, double y)
           
 boolean isOverEdge(icy.canvas.IcyCanvas canvas, double x, double y)
           
 void translate(double dx, double dy)
           
 
Methods inherited from class icy.roi.ROI2D
canSetBounds, canSetPosition, canTranslate, computeBounds5D, computeNumberOfContourPoints, computeNumberOfPoints, contains, contains, contains, contains, contains, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getAsBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask, getBooleanMask2D, getBooleanMask2D, getBounds, getBounds2D, getC, getDimension, getPosition, getPosition2D, getROI2DList, getROI2DList, getROI2DList, getZ, intersects, intersects, intersects, isActiveFor, isActiveFor, isOver, isOverEdge, isOverEdge, isOverEdge, loadFromXML, merge, saveToXML, setBounds2D, setBounds5D, setC, setPosition, setPosition2D, setPosition5D, setT, setZ, substract, subtract
 
Methods inherited from class icy.roi.ROI
addListener, attachTo, beginUpdate, canvasToImageDeltaX, canvasToImageDeltaY, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaX, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, canvasToImageLogDeltaY, contains, contains, copyFrom, create, create, create, create, createFromXML, delete, delete, detachFrom, detachFromAll, detachFromAll, endUpdate, focusChanged, getAdjustedStroke, getAdjustedStroke, getBooleanMask2D, getBounds5D, getClassName, getColor, getDisplayColor, getExclusiveUnion, getFirstSequence, getFocusedColor, getIcon, getId, getIntersection, getName, getNumberOfContourPoints, getNumberOfPoints, getOpacity, getOverlay, getPainter, getPosition5D, getPropertyValue, getROICount, getROIList, getROIList, getROIList, getROIsFromXML, getSelectedColor, getSequences, getShowName, getSimpleClassName, getStroke, getSubtraction, getUnion, getVolume, internalFocus, internalSelect, internalUnfocus, internalUnselect, intersects, isAttached, isCreating, isEditable, isFocused, isReadOnly, isSelected, isUpdating, loadFromXML, loadROIsFromXML, merge, nameChanged, onChanged, painterChanged, propertyChanged, remove, remove, removeListener, roiChanged, roiChanged, saveROIsToXML, selectionChanged, setColor, setCreating, setEditable, setFocused, setIcon, setMousePos, setName, setOpacity, setPropertyValue, setReadOnly, setROIsFromXML, setSelected, setSelected, setSelectedColor, setShowName, setStroke
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EllipsoidROI2D

public EllipsoidROI2D(Ellipsoid2D ellipse)
Default constructor.

Parameters:
ellipse - Ellipse descriptor associated to this ROI
Method Detail

getDescriptor

public Ellipsoid2D getDescriptor()
Returns the descriptor associated to this ROI.


computeBounds2D

public java.awt.geom.Rectangle2D computeBounds2D()
Specified by:
computeBounds2D in class icy.roi.ROI2D

contains

public boolean contains(double x,
                        double y)
Specified by:
contains in class icy.roi.ROI2D

contains

public boolean contains(double x,
                        double y,
                        double w,
                        double h)
Specified by:
contains in class icy.roi.ROI2D

getCopy

public icy.roi.ROI getCopy()
Overrides:
getCopy in class icy.roi.ROI

hasSelectedPoint

public boolean hasSelectedPoint()
Specified by:
hasSelectedPoint in class icy.roi.ROI

getArea

public double getArea()
Overrides:
getArea in class icy.roi.ROI2D

getPerimeter

public double getPerimeter()
Overrides:
getPerimeter in class icy.roi.ROI2D

getT

public int getT()
Overrides:
getT in class icy.roi.ROI2D

intersects

public boolean intersects(double x,
                          double y,
                          double w,
                          double h)
Specified by:
intersects in class icy.roi.ROI2D

isOver

public boolean isOver(icy.canvas.IcyCanvas canvas,
                      double x,
                      double y)
Overrides:
isOver in class icy.roi.ROI2D

isOverEdge

public boolean isOverEdge(icy.canvas.IcyCanvas canvas,
                          double x,
                          double y)
Specified by:
isOverEdge in class icy.roi.ROI2D

translate

public void translate(double dx,
                      double dy)
Overrides:
translate in class icy.roi.ROI2D