/*
- * Sixth 3D engine. Author: Svjatoslav Agejenko.
+ * Sixth 3D engine. Author: Svjatoslav Agejenko.
* This project is released under Creative Commons Zero (CC0) license.
*/
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base;
import eu.svjatoslav.sixth.e3d.gui.UserRelativityTracker;
import eu.svjatoslav.sixth.e3d.gui.humaninput.MouseInteractionController;
import eu.svjatoslav.sixth.e3d.math.Transform;
-import eu.svjatoslav.sixth.e3d.math.TransformsPipeline;
+import eu.svjatoslav.sixth.e3d.math.TransformsStack;
import eu.svjatoslav.sixth.e3d.renderer.raster.Color;
import eu.svjatoslav.sixth.e3d.renderer.raster.RenderAggregator;
import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
* This method should be overridden by anyone wanting to customize shape
* before it is rendered.
*/
- public void beforeTransformHook(final TransformsPipeline transformPipe,
+ public void beforeTransformHook(final TransformsStack transformPipe,
final RenderingContext context) {
}
public List<SubShape> getGroup(final String groupIdentifier) {
return originalSubShapes.stream().filter(
- subShape -> subShape.matchesGroup(groupIdentifier))
+ subShape -> subShape.matchesGroup(groupIdentifier))
.collect(Collectors.toList());
}
final List<AbstractShape> result = new ArrayList<>();
final Slicer slicer = new Slicer(currentSliceFactor);
- originalSubShapes.stream().filter(subShape -> subShape.isVisible()).forEach(subShape -> {
+ originalSubShapes.stream().filter(SubShape::isVisible).forEach(subShape -> {
if (subShape.getShape() instanceof TexturedPolygon)
slicer.slice((TexturedPolygon) subShape.getShape());
else
}
@Override
- public void transform(final TransformsPipeline transformPipe,
+ public void transform(final TransformsStack transformPipe,
final RenderAggregator aggregator, final RenderingContext context) {
// add current composite shape transform to the end of the transform