00001 package commandline.NormalMeshAlgorithm;
00002
00003 import java.io.Serializable;
00004
00005 import commandline.Encoder.Children_OffsetsCompoud;
00006 import commandline.ImageStuff.GeometricObjects.GenericEdge;
00007
00008
00009 public abstract class ChildMaker implements Serializable{
00010
00011 protected Configuration configuration;
00012 public ChildMaker(Configuration configuration) {
00013 super();
00014 this.configuration=configuration;
00015
00016 }
00017
00018 public abstract Generic_Children_Offset_Compound getChildEdgesOfEdge(int welke_edge);
00019
00020 public abstract Children_OffsetsCompoud buildChildEdges(GenericEdge edge);
00021
00022
00023 protected int[][] maakLijn(int van, int totenmet,GenericEdge grotereEdge){
00024 int[][] lijn=grotereEdge.getLijn();
00025 int[][] temp= new int[Math.abs(totenmet-van)+1][2];
00026 if(van<=totenmet){
00027 for( int i=van; i<=totenmet;i++){
00028 temp[i-van][0]=lijn[i][0];
00029 temp[i-van][1]=lijn[i][1];
00030 }
00031 }
00032 else{
00033 for( int i=van;i>=totenmet;i--){
00034 temp[van-i][0]=lijn[i][0];
00035 temp[van-i][1]=lijn[i][1];
00036 }
00037
00038 }
00039 return temp;
00040 }
00041
00042 }