Class SurfaceMask2DImpl
java.lang.Object
cz.fidentis.analyst.data.surfacemask.impl.SurfaceMask2DImpl
- All Implemented Interfaces:
SurfaceMask2D
- Direct Known Subclasses:
SurfaceMaskLineImpl
,SurfaceMaskRectangleImpl
Base class for SurfaceMask2D classes
-
Nested Class Summary
Nested classes/interfaces inherited from interface cz.fidentis.analyst.data.surfacemask.SurfaceMask2D
SurfaceMask2D.PointToProject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
addNewPoint
(Point point) Define a new point for the maskabstract boolean
containsPoint
(Point middle) check if location is within the mask shapeabstract List
<SurfaceMask2D.PointToProject> Gets points to be projected.int
Gets sampling strengthGets selected pointGets shift pointabstract boolean
selectPoint
(Point location) Selects a point for further manipulationvoid
setSamplingStrength
(int strength) Sets sampling strengthvoid
setSelectedPoint
(Point point) Sets selected pointvoid
setShiftPoint
(Point point) Sets shift pointabstract void
shiftMask
(int dx, int dy) Shifts the mask by a delta in the x and y direction.void
updateSelectedPoint
(Point location) Updates selected point by changing it's location
-
Constructor Details
-
SurfaceMask2DImpl
public SurfaceMask2DImpl()
-
-
Method Details
-
getPointsToProject
Description copied from interface:SurfaceMask2D
Gets points to be projected.- Specified by:
getPointsToProject
in interfaceSurfaceMask2D
- Returns:
- a list of Point
-
shiftMask
public abstract void shiftMask(int dx, int dy) Description copied from interface:SurfaceMask2D
Shifts the mask by a delta in the x and y direction. Delta is calculated from the previous and the current shift point- Specified by:
shiftMask
in interfaceSurfaceMask2D
- Parameters:
dx
- delta in the x directiondy
- delta in the y direction
-
selectPoint
Description copied from interface:SurfaceMask2D
Selects a point for further manipulation- Specified by:
selectPoint
in interfaceSurfaceMask2D
- Parameters:
location
- of the point to select- Returns:
- true if selected
-
addNewPoint
Description copied from interface:SurfaceMask2D
Define a new point for the mask- Specified by:
addNewPoint
in interfaceSurfaceMask2D
- Parameters:
point
- new point to add- Returns:
- true if addition succeded
-
containsPoint
Description copied from interface:SurfaceMask2D
check if location is within the mask shape- Specified by:
containsPoint
in interfaceSurfaceMask2D
- Parameters:
middle
- location to check- Returns:
- true is inside
-
getSelectedPoint
Gets selected point- Specified by:
getSelectedPoint
in interfaceSurfaceMask2D
- Returns:
- selected point
-
setSelectedPoint
Sets selected point- Specified by:
setSelectedPoint
in interfaceSurfaceMask2D
- Parameters:
point
- to set
-
getSamplingStrength
public int getSamplingStrength()Gets sampling strength- Returns:
-
setSamplingStrength
public void setSamplingStrength(int strength) Sets sampling strength- Specified by:
setSamplingStrength
in interfaceSurfaceMask2D
- Parameters:
strength
- to set
-
updateSelectedPoint
Updates selected point by changing it's location- Specified by:
updateSelectedPoint
in interfaceSurfaceMask2D
- Parameters:
location
- to set
-
getShiftPoint
Gets shift point- Specified by:
getShiftPoint
in interfaceSurfaceMask2D
- Returns:
- shift point
-
setShiftPoint
Sets shift point- Specified by:
setShiftPoint
in interfaceSurfaceMask2D
- Parameters:
point
- to set
-