Package cz.fidentis.analyst.drawables
Class DrawableInteractiveMask
java.lang.Object
cz.fidentis.analyst.drawables.Drawable
cz.fidentis.analyst.drawables.DrawableInteractiveMask
Drawable interactive mask drawn as points connected by lines.
-
Nested Class Summary
Nested classes/interfaces inherited from class cz.fidentis.analyst.drawables.Drawable
Drawable.TransparencyComparator
-
Field Summary
Fields inherited from class cz.fidentis.analyst.drawables.Drawable
GLU_CONTEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoxes()
Legacy code to get bounding boxes for lines between pointsCalculates bounding cylinders to draw a connecting line between two points correctlyprotected CrossSection3D
Interpolates a single curve between surface mask points using a cutting plane defined by the said two points and a normal of mesh triangle upon which a point lies.protected List
<CrossSection3D> interpolates curves to draw onto faceprotected static boolean
isPointOutsideBox
(javax.vecmath.Point3d point, Box box) legacy expression determining if point is within bounding boxprotected void
renderObject
(com.jogamp.opengl.GL2 gl) Methods inherited from class cz.fidentis.analyst.drawables.Drawable
finishRendering, getColor, getHighlights, getRenderMode, getTransparency, initRendering, isShown, render, setColor, setHighlights, setPolygonMode, setRenderMode, setTransparency, show
-
Constructor Details
-
DrawableInteractiveMask
Constructor.- Parameters:
mask
- mask with points projected onto face and ready to be drawn- Throws:
IllegalArgumentException
- if themask
isnull
-
-
Method Details
-
renderObject
protected void renderObject(com.jogamp.opengl.GL2 gl) - Specified by:
renderObject
in classDrawable
-
interpolatePoints
interpolates curves to draw onto face- Returns:
- list of curves
-
interpolateLine
Interpolates a single curve between surface mask points using a cutting plane defined by the said two points and a normal of mesh triangle upon which a point lies.- Parameters:
p1
-p2
-- Returns:
- a single curve
-
getCylinders
Calculates bounding cylinders to draw a connecting line between two points correctly- Returns:
- a list of bounding cylinders
-
isPointOutsideBox
legacy expression determining if point is within bounding box- Parameters:
point
- point to checkbox
- box to check- Returns:
- true if outside else false
-
getBoxes
Legacy code to get bounding boxes for lines between points- Returns:
- list of boxes for neighbouring points
-