Class AbstractOrderingStrategy
java.lang.Object
org.jzy3d.plot3d.rendering.ordering.AbstractOrderingStrategy
- All Implemented Interfaces:
Comparator<Drawable>
- Direct Known Subclasses:
BarycentreOrderingStrategy,DefaultOrderingStrategy
An ordering strategy is a
Comparator for Drawables that may compute the priority
between Drawables d1 and d2.- Author:
- Martin Pernollet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcomparison(double dist1, double dist2) Return the opposite of closest distance, so that closest distance is sorted after farest distance.getView()abstract doubleabstract doubleReturns a score for ranking this drawable among other drawables of the scenegraph.voidvoidvoidsetTransform(Transform transform) voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
view
-
camera
-
transform
-
-
Constructor Details
-
AbstractOrderingStrategy
public AbstractOrderingStrategy()
-
-
Method Details
-
score
Returns a score for ranking this drawable among other drawables of the scenegraph. -
score
-
sort
- Parameters:
monotypes-cam-
-
comparison
protected int comparison(double dist1, double dist2) Return the opposite of closest distance, so that closest distance is sorted after farest distance. -
setAll
-
getCamera
-
setCamera
-
getTransform
-
setTransform
-
getView
-
setView
-