Package com.j3d.engine.scene.draw
Class SortMethod
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<RenderState<?,,?>> Collection<RenderState<?,,?>> List<RenderState<?,,?>> RandomAccess,SequencedCollection<RenderState<?,?>>
- Direct Known Subclasses:
CamDepthSort,CamDistSort,DDUUIDSort,VisibleSort
SortMethod is an abstract class which extends ArrayList of GTri and represents
a method for sorting triangles.
- Author:
- Lehlogonolo Poole
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(RenderState<?, ?> drawable) booleanbackFaceCulled(GTri tri) Determines if a triangle should be culled based on back-face culling.abstract voidsort()Methods inherited from class java.util.ArrayList
add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
SortMethod
public SortMethod()
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<RenderState<?,?>> - Specified by:
addin interfaceList<RenderState<?,?>> - Overrides:
addin classArrayList<RenderState<?,?>>
-
backFaceCulled
Determines if a triangle should be culled based on back-face culling.- Parameters:
tri- The triangle to be culled.- Returns:
trueif the triangle should be culled,falseotherwise.
-
sort
public abstract void sort()
-