2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
8 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base;
10 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
12 public class SubShape {
14 private final AbstractShape shape;
15 private boolean visible = true;
16 private String groupIdentifier;
18 public SubShape(AbstractShape shape) {
22 public boolean isUngrouped() {
23 return groupIdentifier == null;
26 public boolean matchesGroup(final String groupIdentifier) {
27 if (this.groupIdentifier == null)
28 return groupIdentifier == null;
30 return this.groupIdentifier.equals(groupIdentifier);
33 public void setGroup(final String groupIdentifier) {
34 this.groupIdentifier = groupIdentifier;
37 public AbstractShape getShape() {
41 public boolean isVisible() {
45 public void setVisible(boolean visible) {
46 this.visible = visible;