ICY Version 1.0.1.0
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Package Functions | Package Attributes

icy.roi.ROI2DShape Class Reference

Inheritance diagram for icy.roi.ROI2DShape:
icy.roi.ROI2D icy.painter.Anchor2D.Anchor2DListener icy.roi.ROI icy.painter.PainterListener icy.common.IcyChangedListener icy.file.xml.XMLPersistent icy.roi.ROI2DLine icy.roi.ROI2DPoint icy.roi.ROI2DPolygon icy.roi.ROI2DPolyLine icy.roi.ROI2DRectShape icy.roi.ROI2DEllipse icy.roi.ROI2DRectangle

List of all members.

Classes

class  Point3D
class  Poly3D
class  ROI2DShapePainter

Public Member Functions

 ROI2DShape (Shape shape)
Shape getShape ()
void setSelected (boolean value, boolean exclusive)
boolean isOver (IcyCanvas canvas, double x, double y)
boolean isOverPoint (IcyCanvas canvas, double x, double y)
PathIterator getPathIterator (AffineTransform at)
PathIterator getPathIterator (AffineTransform at, double flatness)
boolean contains (Point2D p)
boolean contains (Rectangle2D r)
boolean contains (double x, double y)
boolean contains (double x, double y, double w, double h)
Rectangle getBounds ()
Rectangle2D getBounds2D ()
boolean intersects (Rectangle2D r)
boolean intersects (double x, double y, double w, double h)
boolean[] getAsBooleanMask (int x, int y, int w, int h)
void translate (double dx, double dy)
void positionChanged (Anchor2D source)
void painterChanged (PainterEvent event)
void onChanged (EventHierarchicalChecker object)

Protected Member Functions

ROI2DShapePainter createPainter ()
abstract void updateShape ()
Anchor2D getSelectedControlPoint ()
boolean hasSelectedPoint ()
boolean addPoint (Anchor2D pt)
boolean addPointAt (Point2D pos)
boolean removePoint (Anchor2D pt)
void removeAllPoint ()
boolean removePointAt (IcyCanvas canvas, Point2D imagePoint)
boolean removeSelectedPoint (IcyCanvas canvas, Point2D imagePoint)
boolean selectPointAt (IcyCanvas canvas, Point2D imagePoint)

Protected Attributes

final Shape shape
final ArrayList< Anchor2DcontrolPoints

Package Functions

void init (vtkRenderer renderer)
ArrayList< Point2D > getControlPointsPosition ()

Package Attributes

boolean initialized = false
vtkPolyData polyData = null

Detailed Description

Author:
Stephane

Member Function Documentation

boolean icy.roi.ROI2DShape.addPointAt ( Point2D  pos) [protected, virtual]

Add a new point to specified position and select it

Implements icy.roi.ROI2D.

Reimplemented in icy.roi.ROI2DLine, icy.roi.ROI2DPoint, icy.roi.ROI2DPolygon, icy.roi.ROI2DPolyLine, and icy.roi.ROI2DRectShape.

boolean icy.roi.ROI2DShape.contains ( Point2D  p)

Tests if a specified Point2D is inside the ROI.

Parameters:
pthe specified Point2D to be tested
Returns:
true if the specified Point2D is inside the boundary of the ROI; false otherwise.

Reimplemented from icy.roi.ROI2D.

Reimplemented in icy.roi.ROI2DPolyLine.

Shape icy.roi.ROI2DShape.getShape ( )
Returns:
the shape
boolean icy.roi.ROI2DShape.hasSelectedPoint ( ) [protected, virtual]

Return true if the ROI has a current selected

Implements icy.roi.ROI2D.

void icy.roi.ROI2DShape.init ( vtkRenderer  renderer) [package]

init 3D

Parameters:
renderer
boolean icy.roi.ROI2DShape.isOver ( IcyCanvas  canvas,
double  x,
double  y 
) [virtual]

return true if specified point coordinates overlap the ROI (without control point)

Implements icy.roi.ROI2D.

boolean icy.roi.ROI2DShape.isOverPoint ( IcyCanvas  canvas,
double  x,
double  y 
) [virtual]

return true if specified point coordinates overlap a ROI (control) point
used for roi manipulation

Implements icy.roi.ROI2D.

void icy.roi.ROI2DShape.onChanged ( EventHierarchicalChecker  object)

fire changed event

Reimplemented from icy.roi.ROI.

boolean icy.roi.ROI2DShape.removePointAt ( IcyCanvas  canvas,
Point2D  imagePoint 
) [protected, virtual]

Remove point at specified position (used to build ROI)

Implements icy.roi.ROI2D.

void icy.roi.ROI2DShape.setSelected ( boolean  value,
boolean  exclusive 
)
Parameters:
valuethe selected to set
exclusiveexclusive selection (only one selected ROI per sequence)

Reimplemented from icy.roi.ROI.


Member Data Documentation

final ArrayList<Anchor2D> icy.roi.ROI2DShape.controlPoints [protected]

control points

final Shape icy.roi.ROI2DShape.shape [protected]

ROI shape (in image coordinates)


The documentation for this class was generated from the following file:
 All Classes Functions Variables