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