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 shapejavax.vecmath.Vector3d
Gets camera positiongetColor()
Gets the origin point.abstract List
<SurfaceMask2D.PointToProject> Gets points to be projected.Gets the resize pointint
Gets sampling strengthGets selected pointGets shift pointabstract boolean
selectPoint
(Point location) Selects a point for further manipulationvoid
setCameraPosition
(javax.vecmath.Vector3d cameraPosition) Sets camera position vectorvoid
Sets color of maskvoid
Sets the origin point.void
Sets the resize pointvoid
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 locationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.fidentis.analyst.data.surfacemask.SurfaceMask2D
getBoundingPoints
-
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:
- sampling strength value
-
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
-
getColor
- Specified by:
getColor
in interfaceSurfaceMask2D
- Returns:
- color of mask
-
setColor
Description copied from interface:SurfaceMask2D
Sets color of mask- Specified by:
setColor
in interfaceSurfaceMask2D
- Parameters:
color
- to be set
-
getOrigin
Description copied from interface:SurfaceMask2D
Gets the origin point.- Specified by:
getOrigin
in interfaceSurfaceMask2D
- Returns:
- origin point.
-
setOrigin
Description copied from interface:SurfaceMask2D
Sets the origin point.- Specified by:
setOrigin
in interfaceSurfaceMask2D
-
getResize
Description copied from interface:SurfaceMask2D
Gets the resize point- Specified by:
getResize
in interfaceSurfaceMask2D
- Returns:
- resize point
-
setResize
Description copied from interface:SurfaceMask2D
Sets the resize point- Specified by:
setResize
in interfaceSurfaceMask2D
- Parameters:
resize
- point to be set
-
getCameraPosition
public javax.vecmath.Vector3d getCameraPosition()Description copied from interface:SurfaceMask2D
Gets camera position- Specified by:
getCameraPosition
in interfaceSurfaceMask2D
- Returns:
- camera position vector
-
setCameraPosition
public void setCameraPosition(javax.vecmath.Vector3d cameraPosition) Description copied from interface:SurfaceMask2D
Sets camera position vector- Specified by:
setCameraPosition
in interfaceSurfaceMask2D
- Parameters:
cameraPosition
- to be set
-