Interface IOrientableROI
- All Superinterfaces:
org.eclipse.january.INameable,IROI,Serializable
- All Known Subinterfaces:
IFitROI,IParametricROI,IRectangularROI
- All Known Implementing Classes:
CircularFitROI,CircularROI,EllipticalFitROI,EllipticalROI,GridROI,HyperbolicROI,Line3DROI,LinearROI,MxGridROI,OrientableROIBase,ParabolicROI,PerimeterBoxROI,RectangularROI,ResolutionEllipseROI,SurfacePlotROI,XAxisBoxROI,XAxisLineBoxROI,YAxisBoxROI,YAxisLineBoxROI
Represents an orientable region of interest with the start point being the centre of rotation
-
Method Summary
Modifier and TypeMethodDescriptioncopy()doublegetAngle()doublevoidsetAngle(double angle) Set angle, in radians, from 0 to pi/2 is from x-axis to y-axisvoidsetAngleDegrees(double degrees) Set angle, in degreesMethods inherited from interface org.eclipse.january.INameable
getName, setNameMethods inherited from interface org.eclipse.dawnsci.analysis.api.roi.IROI
addPoint, addPoint, addPoint, containsPoint, downsample, findHorizontalIntersections, getBounds, getIntPoint, getPoint, getPointRef, getPointX, getPointY, getValue, isFixed, isNearOutline, isPlot, setFixed, setPlot, setPoint, setPoint, setPoint, setPoint, setValue
-
Method Details
-
copy
IOrientableROI copy() -
getAngleDegrees
double getAngleDegrees()- Returns:
- angle, in degrees, from 0 to 90 is from x-axis to y-axis
-
setAngleDegrees
void setAngleDegrees(double degrees) Set angle, in degrees- Parameters:
degrees- from 0 to 90 is from x-axis to y-axis
-
getAngle
double getAngle()- Returns:
- angle, in radians
-
setAngle
void setAngle(double angle) Set angle, in radians, from 0 to pi/2 is from x-axis to y-axis- Parameters:
angle- from 0 to pi/2 is from x-axis to y-axis
-