Class SurfaceMask
java.lang.Object
cz.fidentis.analyst.data.surfacemask.SurfaceMask
Class representing the Interactive Mask, it is defined as a list of points
lines between them and bounding cylinders.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Class representing a single point of Interactive Mask. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoint
(javax.vecmath.Point3d surfacePoint, MeshFacet facet, javax.vecmath.Vector3d normal, boolean isSelected, boolean isSampled, boolean isPrimary) Adds point of Interactive Maskget points of interactive maskboolean
isEmpty()
void
shiftPoint
(SurfaceMask.MaskPoint3D point, javax.vecmath.Point3d newPoint) Shifts the position of a single point by a given offset.void
shiftPointsEllipse
(SurfaceMask.MaskPoint3D point, javax.vecmath.Point3d newPoint, SurfaceMask ellipseMask) Shifts the position of a points of rectangle points which have inscribed ellipse by a given offset.toString()
-
Constructor Details
-
SurfaceMask
public SurfaceMask()
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
true
if the mast has no point defined so far.
-
addPoint
public void addPoint(javax.vecmath.Point3d surfacePoint, MeshFacet facet, javax.vecmath.Vector3d normal, boolean isSelected, boolean isSampled, boolean isPrimary) Adds point of Interactive Mask- Parameters:
surfacePoint
- a point lying on the surfacefacet
- facet of the surfacenormal
- Normal vectorisSelected
- Determines if the new point is selectedisSampled
- Determines if the new point is sampledisPrimary
- Determines if the new point is primary
-
getPoints
get points of interactive mask- Returns:
- point
-
shiftPoint
Shifts the position of a single point by a given offset.- Parameters:
point
- the MaskPoint3D to shiftnewPoint
- new position
-
shiftPointsEllipse
public void shiftPointsEllipse(SurfaceMask.MaskPoint3D point, javax.vecmath.Point3d newPoint, SurfaceMask ellipseMask) Shifts the position of a points of rectangle points which have inscribed ellipse by a given offset. Calculates new inscribed ellipse points- Parameters:
point
- dragged MaskPoint3DnewPoint
- new position of dragged pointellipseMask
- The mask representing the inscribed ellipse.
-
toString
-