2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base;
7 import eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape;
9 public class SubShape {
11 private final AbstractShape shape;
12 private boolean visible = true;
13 private String groupIdentifier;
15 public SubShape(AbstractShape shape) {
19 public boolean isUngrouped() {
20 return groupIdentifier == null;
23 public boolean matchesGroup(final String groupIdentifier) {
24 if (this.groupIdentifier == null)
25 return groupIdentifier == null;
27 return this.groupIdentifier.equals(groupIdentifier);
30 public void setGroup(final String groupIdentifier) {
31 this.groupIdentifier = groupIdentifier;
34 public AbstractShape getShape() {
38 public boolean isVisible() {
42 public void setVisible(boolean visible) {
43 this.visible = visible;