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
FieldsFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
ConstructorsConstructorDescriptionCoplanarityManager(List<? extends Drawable> outlines, Drawable plane) CoplanarityManager(Drawable outline, Drawable plane) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGeometryTransform(Transform transform) protected voidcomputeBounds(List<? extends Drawable> outlines, Drawable plane) Will try to compute bounds if they are available.voidImplements recipe given bybooleanReturn true if mount(...) has been called at least one timevoidMount resources to gl contextprotected voidvoidMethods 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:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
applyGeometryTransform
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBoundsin classDrawable
-
mount
Description copied from interface:IGLBindedResourceMount resources to gl context- Specified by:
mountin interfaceIGLBindedResource
-
mount
-
hasMountedOnce
public boolean hasMountedOnce()Description copied from interface:IGLBindedResourceReturn true if mount(...) has been called at least one time- Specified by:
hasMountedOncein interfaceIGLBindedResource
-