Class DrawableInteractiveMaskRenderer
java.lang.Object
cz.fidentis.analyst.drawables.renderers.impl.AbstractDrawableRenderer<DrawableInteractiveMask>
cz.fidentis.analyst.drawables.renderers.impl.DrawableInteractiveMaskRenderer
public class DrawableInteractiveMaskRenderer
extends AbstractDrawableRenderer<DrawableInteractiveMask>
Renderer for DrawableInteractiveMask.
-
Field Summary
Fields inherited from class cz.fidentis.analyst.drawables.renderers.impl.AbstractDrawableRenderer
GLU_CONTEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBoxes
(SurfaceMask mask) Legacy code to get bounding boxes for lines between pointsgetCylinders
(SurfaceMask mask) Calculates bounding cylinders to draw a connecting line between two points correctlyClass
<?> protected 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> interpolatePoints
(SurfaceMask mask) 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, DrawableInteractiveMask drawableInteractiveMask) Methods inherited from class cz.fidentis.analyst.drawables.renderers.impl.AbstractDrawableRenderer
finishRendering, initRendering, render, setPolygonMode
-
Constructor Details
-
DrawableInteractiveMaskRenderer
public DrawableInteractiveMaskRenderer()
-
-
Method Details
-
isPointOutsideBox
legacy expression determining if point is within bounding box- Parameters:
point
- point to checkbox
- box to check- Returns:
- true if outside else false
-
getDrawableClass
-
renderObject
protected void renderObject(com.jogamp.opengl.GL2 gl, DrawableInteractiveMask drawableInteractiveMask) - Specified by:
renderObject
in classAbstractDrawableRenderer<DrawableInteractiveMask>
-
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
-
getBoxes
Legacy code to get bounding boxes for lines between points- Returns:
- list of boxes for neighbouring points
-