Package cz.fidentis.analyst.drawables
Class DrawablePlane
java.lang.Object
cz.fidentis.analyst.drawables.Drawable
cz.fidentis.analyst.drawables.DrawablePlane
- Direct Known Subclasses:
DrawableCuttingPlane
A plane to be shown as a rectangular mesh facet.
The rectangular shape is generated at run-time from the associated plane.
-
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
ConstructorsConstructorDescriptionDrawablePlane
(Plane plane, Box bbox, boolean showBBox) Constructor.DrawablePlane
(DrawablePlane drPlane) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Box
getBBox()
getPlane()
boolean
Returnstrue
if the bounding box is to be rendered.protected void
renderObject
(com.jogamp.opengl.GL2 gl) protected void
renderObject
(com.jogamp.opengl.GL2 gl, MeshFacet facet) void
Sets the planevoid
setShowBBox
(boolean show) Switches on/off bounding box rendering.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
-
DrawablePlane
Constructor.- Parameters:
plane
- planebbox
- bounding box used to estimate cutting pale shape (rectangle)showBBox
- whether to render bounding box
-
DrawablePlane
Copy constructor.- Parameters:
drPlane
- Original plane- Throws:
NullPointerException
- if the input argument isnull
-
-
Method Details
-
getPlane
-
isShownBBobx
public boolean isShownBBobx()Returnstrue
if the bounding box is to be rendered.- Returns:
true
if the bounding box is to be rendered.
-
setShowBBox
public void setShowBBox(boolean show) Switches on/off bounding box rendering.- Parameters:
show
- Iftrue
, then the bounding box is rendered as well
-
setPlane
Sets the plane- Parameters:
plane
- new plane
-
renderObject
protected void renderObject(com.jogamp.opengl.GL2 gl) - Specified by:
renderObject
in classDrawable
-
renderObject
-
getBBox
-