Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
OvalRoi Class Reference
Inheritance diagram for OvalRoi:
Roi

Public Member Functions

 OvalRoi (int x, int y, int width, int height)
 
 OvalRoi (int x, int y, ImagePlus imp)
 
 OvalRoi (int x, int y, int width, int height, ImagePlus imp)
 
void draw (Graphics g)
 
void drawPixels ()
 
Polygon getPolygon ()
 
boolean contains (int x, int y)
 
int isHandle (int sx, int sy)
 
ImageProcessor getMask ()
 
double getLength ()
 
double getFeretsDiameter ()
 
- Public Member Functions inherited from Roi
 Roi (int x, int y, int width, int height)
 
 Roi (int x, int y, ImagePlus imp)
 
 Roi (int x, int y, int width, int height, ImagePlus imp)
 
void setLocation (int x, int y)
 
void setImage (ImagePlus imp)
 
int getType ()
 
int getState ()
 
double getLength ()
 
double getFeretsDiameter ()
 
Rectangle getBounds ()
 
Rectangle getBoundingRect ()
 
Polygon getPolygon ()
 
synchronized Object clone ()
 
void nudge (int key)
 
void nudgeCorner (int key)
 
void draw (Graphics g)
 
void drawPixels ()
 
boolean contains (int x, int y)
 
int isHandle (int sx, int sy)
 
void modifyRoi ()
 
ImageProcessor getMask ()
 
void endPaste ()
 
void abortPaste ()
 
double getAngle (int x1, int y1, int x2, int y2)
 
String getName ()
 
void setName (String name)
 
int getPasteMode ()
 
boolean isArea ()
 
String getTypeAsString ()
 
String toString ()
 

Protected Member Functions

void moveHandle (int ox, int oy)
 
- Protected Member Functions inherited from Roi
void grow (int xNew, int yNew)
 
void moveHandle (int ox, int oy)
 
void updateClipRect ()
 
void handleMouseDrag (int sx, int sy, int flags)
 
void mouseDownInHandle (int handle, int sx, int sy)
 
void handleMouseDown (int sx, int sy)
 
void handleMouseUp (int screenX, int screenY)
 
void showStatus ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Roi
static Color getColor ()
 
static void setColor (Color c)
 
static void setPasteMode (int transferMode)
 
static int getCurrentPasteMode ()
 
- Static Public Attributes inherited from Roi
static final int CONSTRUCTING =0
 
static final int RECTANGLE =0
 
static final int HANDLE_SIZE = 5
 
static final int NOT_PASTING = -1
 
static Roi previousRoi
 
- Protected Attributes inherited from Roi
int type
 
int xMax
 
ImagePlus imp
 
ImageCanvas ic
 
int oldX
 
int clipX
 
ImagePlus clipboard
 
boolean constrain
 
boolean center
 
boolean updateFullWindow
 
double mag = 1.0
 
String name
 
ImageProcessor cachedMask
 
- Static Protected Attributes inherited from Roi
static Color ROIColor = Prefs.getColor(Prefs.ROICOLOR,Color.yellow)
 
static int pasteMode = Blitter.COPY
 

Detailed Description

Oval region of interest

Definition at line 10 of file OvalRoi.java.

Constructor & Destructor Documentation

OvalRoi ( int  x,
int  y,
int  width,
int  height 
)
inline

Creates a new OvalRoi.

Definition at line 13 of file OvalRoi.java.

OvalRoi ( int  x,
int  y,
ImagePlus  imp 
)
inline

Starts the process of creating a user-defined OvalRoi.

Definition at line 19 of file OvalRoi.java.

OvalRoi ( int  x,
int  y,
int  width,
int  height,
ImagePlus  imp 
)
inline

Obsolete

Definition at line 25 of file OvalRoi.java.

Member Function Documentation

void drawPixels ( )
inline

Draws an outline of this OvalRoi on the image.

Definition at line 100 of file OvalRoi.java.

double getFeretsDiameter ( )
inline

Returns Feret's diameter, the greatest distance between any two points along the ROI boundary.

Definition at line 198 of file OvalRoi.java.

double getLength ( )
inline

Returns the perimeter length.

Definition at line 186 of file OvalRoi.java.

Polygon getPolygon ( )
inline

Returns this OvalRoi as a polygon.

Definition at line 110 of file OvalRoi.java.

int isHandle ( int  sx,
int  sy 
)
inline

Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.

Definition at line 136 of file OvalRoi.java.


The documentation for this class was generated from the following file: