java.lang.Object
java.util.AbstractCollection<ObjectList<RadiationModel.RayPoint>>
java.util.AbstractList<ObjectList<RadiationModel.RayPoint>>
de.grogra.xl.util.ObjectList<ObjectList<RadiationModel.RayPoint>>
de.grogra.ray2.tracing.LightModelProcessor.TracedRaysContainer
- All Implemented Interfaces:
ObjectConsumer<ObjectList<RadiationModel.RayPoint>>,VoidToObjectGenerator<ObjectList<RadiationModel.RayPoint>>,Serializable,Cloneable,Iterable<ObjectList<RadiationModel.RayPoint>>,Collection<ObjectList<RadiationModel.RayPoint>>,List<ObjectList<RadiationModel.RayPoint>>,RandomAccess,SequencedCollection<ObjectList<RadiationModel.RayPoint>>
- Enclosing class:
LightModelProcessor
public static final class LightModelProcessor.TracedRaysContainer
extends ObjectList<ObjectList<RadiationModel.RayPoint>>
Replaces the plain ObjectList used for traced-ray storage with a version
that enforces a per-light-source budget via AtomicInteger counters.
This prevents multi-threaded tracing from filling all storage slots from
light source 0 before other sources are reached.
- See Also:
-
Field Summary
Fields inherited from class de.grogra.xl.util.ObjectList
elements, size, useEqualsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.grogra.xl.util.ObjectList
add, add, addAll, addAll, addAll, addIfNotContained, addInOrder, addInOrder, arraycopy, clear, clear, clone, consume, contains, ensureCapacity, equals, evaluateObject, get, hashCode, indexOf, isEmpty, lastIndexOf, peek, pop, push, push, push, remove, remove, removeAt, set, setSize, size, toArray, toArray, trimToSize, valuesMethods inherited from class java.util.AbstractList
addAll, iterator, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator
-
Constructor Details
-
TracedRaysContainer
public TracedRaysContainer()
-