Package org.jzy3d.plot3d.primitives
Class CoplanarityManager
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.CoplanarityManager
- All Implemented Interfaces:
IGLBindedResource
,IGLRenderer
,ISortableDraw
This pseudo-drawable will handle drawing outlines (such as polygon border), contour line (lying
exactly ON a polygon), or text which position is ON a polygon) that may be coplanar or partially
hidden by a collection of polygons.
This allows rendering outlines properly and hence deals with Z-fighting artifacts, 2d text
crossing 3D contents, etc.
- Author:
- Martin Pernollet
-
Field Summary
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
Constructor Summary
ConstructorDescriptionCoplanarityManager
(List<? extends Drawable> outlines, Drawable plane) CoplanarityManager
(Drawable outline, Drawable plane) -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyGeometryTransform
(Transform transform) protected void
computeBounds
(List<? extends Drawable> outlines, Drawable plane) Will try to compute bounds if they are available.void
Implements recipe given byboolean
Return true if mount(...) has been called at least one timevoid
Mount resources to gl contextprotected void
void
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
Field Details
-
outlines
-
plane
-
-
Constructor Details
-
CoplanarityManager
-
CoplanarityManager
-
-
Method Details
-
computeBounds
Will try to compute bounds if they are available. This should be invoked- While building the object
- While mounting the object, has it may contain resource that have their bounds known after mounting.
- Parameters:
outlines
-plane
-
-
draw
Implements recipe given by- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
applyGeometryTransform
- Specified by:
applyGeometryTransform
in classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBounds
in classDrawable
-
mount
Description copied from interface:IGLBindedResource
Mount resources to gl context- Specified by:
mount
in interfaceIGLBindedResource
-
mount
-
hasMountedOnce
public boolean hasMountedOnce()Description copied from interface:IGLBindedResource
Return true if mount(...) has been called at least one time- Specified by:
hasMountedOnce
in interfaceIGLBindedResource
-