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 Drawable
s that may compute the priority
between Drawable
s d1 and d2.- Author:
- Martin Pernollet
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
comparison
(double dist1, double dist2) Return the opposite of closest distance, so that closest distance is sorted after farest distance.getView()
abstract double
abstract double
Returns a score for ranking this drawable among other drawables of the scenegraph.void
void
void
setTransform
(Transform transform) void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-