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
-
Constructor Summary
ConstructorsConstructorDescriptionDrawablePlane
(Plane plane, Box bbox, boolean showBBox) Constructor.DrawablePlane
(DrawablePlane drPlane) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetBBox()
getPlane()
boolean
Returnstrue
if the bounding box is to be rendered.void
Sets the planevoid
setShowBBox
(boolean show) Switches on/off bounding box rendering.Methods inherited from class cz.fidentis.analyst.drawables.Drawable
getColor, getHighlights, getRenderMode, getTransparency, isShown, setColor, setHighlights, 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
-
getBBox
-