Fiber.java
Go to the documentation of this file.00001 package theba.core;
00002
00003 import java.awt.Point;
00004
00005 import theba.core.gui.ThebaGUI;
00006
00007
00008 public class Fiber {
00009
00010 private short id;
00011
00012 private int color;
00013
00014 private int length;
00015
00016 private Point[] path;
00017
00018 private FiberSlice[] walls;
00019
00020 public Fiber(ThebaGUI f, byte id) {
00021 this.id = id;
00022 length = 0;
00023 path = new Point[f.depth];
00024 walls = new FiberSlice[f.depth];
00025 }
00026
00027 public Fiber(Point[] lumencenters, FiberSlice[] fiberwalls) {
00028 path = lumencenters;
00029 walls = fiberwalls;
00030 }
00031
00032 public void readFibre(byte[][] voxels) {
00033
00034 }
00035
00036 public int getColor() {
00037 return color;
00038 }
00039
00040 public void setColor(int color) {
00041 this.color = color;
00042 }
00043
00044 public short getId() {
00045 return id;
00046 }
00047
00048 public void setId(byte id) {
00049 this.id = id;
00050 }
00051
00052 public Point[] getPath() {
00053 return path;
00054 }
00055
00056 public void setPath(Point[] path) {
00057 this.path = path;
00058 }
00059
00060 public FiberSlice[] getWalls() {
00061 return walls;
00062 }
00063
00064 public int getLength() {
00065 return length;
00066 }
00067
00068 public void setLength(int length) {
00069 this.length = length;
00070 }
00071
00072 }