commandline.ImageStuff
Class GenericEdge

java.lang.Object
  extended by commandline.ImageStuff.GeometricObject
      extended by commandline.ImageStuff.GenericEdge
Direct Known Subclasses:
EncoderEdge

public class GenericEdge
extends GeometricObject


Field Summary
protected  ParametrizedPiercingVertex begin
           
protected  GenericEdge beginChild
           
protected  ParametrizedPiercingVertex eind
           
protected  GenericEdge endChild
           
protected  boolean isRegistered
           
protected  Triangle leftTriangle
           
protected  int[][] lijn
           
protected  Triangle rightTriangle
           
protected  State state
           
 boolean test_offset_set
           
 
Fields inherited from class commandline.ImageStuff.GeometricObject
configuration, DEFAULT_GEOM, locs
 
Constructor Summary
GenericEdge(ParametrizedPiercingVertex a, ParametrizedPiercingVertex b, Configuration configuration)
           
GenericEdge(ParametrizedPiercingVertex a, ParametrizedPiercingVertex b, int[][] lijn, Configuration configuration)
           
 
Method Summary
 void commit(CommitDataStructure dataStructure)
          Mesh Model
 boolean containsBothVertices(Vertex a, Vertex b)
           
 boolean containtsVertex(Vertex v)
           
 void disposeLocationSet()
          disposes nothing
 ParametrizedPiercingVertex doorsnede(GenericEdge andere)
           
 float fundamentenwaardeOn(Loc loc)
           
 int getAantalPunten()
           
 float getArea()
           
 ParametrizedPiercingVertex getBegin()
           
 GenericEdge getBeginChild()
           
 AbstractTesselation getBestEncoderTesselation(SnijPixelStrategy snijPixelStrategy, ConnectieCriterium connectieCriterium)
          geeft de besteTesselatie terug gemaakt door de Tesselator geschikt voor dat object
 java.util.ArrayList<GeometricObject> getChildren()
           
 GenericEdge getEdge(int i)
           
 ParametrizedPiercingVertex getEind()
           
 GenericEdge getEindChild()
           
 float getEuclidischeLengte()
           
 float getEuclidischeLengtePerPixel()
           
 float getFunctiewaardeOn(int index)
           
 float getFunctiewaardeOn(Loc loc)
           
 float getFundamentenWaardeOn(int index)
           
 float getHoekInDomain(int index)
           
 int getHoogte()
           
 Triangle getLeftTriangle()
           
 int getLengte()
           
 int[][] getLijn()
           
 Loc getLoc(int index)
           
 int getMiddenIndex()
           
 Loc getMidLoc()
           
 int getNbrOfEdges()
           
 float getNormalisationFactor()
          Method that returns the normalisation factor that "normalizes" the vertical offset connected with the edge.
 int getNormalOffset()
           
 float getNormalOffsetDistance()
           
 java.util.ArrayList<ParametrizedPiercingVertex> getOrderedVertices()
           
 Triangle getRightTriangle()
           
 float getShortestDomainDistance(Loc l)
          http://www.geometryalgorithms.com/Archive/algorithm_0102/algorithm_0102.htm
 State getState()
           
 AbstractTesselation getTesselation(SnijPixelStrategy snijPixelStrategy, java.lang.String choise)
           
 ParametrizedPiercingVertex getVertex(int index)
           
 int getVerticalOffset()
           
 boolean hasChildren()
           
 boolean hasCrossedContour()
          this is an heuristic to see if this edge has crossed a contour
 boolean hasToBeConsidered()
           
 boolean isAnEdge()
           
 boolean isATriangle()
           
 boolean isFlat()
           
 void print()
           
 void setChildren(java.util.ArrayList<GeometricObject> children)
           
 void setChildren(GenericEdge beginChild, GenericEdge endChild)
          Hierarchical information
 void setOffsets(int normalOffset, int verticalOffset)
          Offsets Methods*******************************
 void setState(State state)
           
 void setTriangle(Triangle t)
           
protected  void VulOp()
           
 
Methods inherited from class commandline.ImageStuff.GeometricObject
contains, getAllLeaves, getError, getGeometricProperty, getLocs, getSobel, getSobolevError, setGeometricProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lijn

protected int[][] lijn

begin

protected final ParametrizedPiercingVertex begin

eind

protected final ParametrizedPiercingVertex eind

leftTriangle

protected Triangle leftTriangle

rightTriangle

protected Triangle rightTriangle

beginChild

protected GenericEdge beginChild

endChild

protected GenericEdge endChild

isRegistered

protected boolean isRegistered

test_offset_set

public boolean test_offset_set

state

protected State state
Constructor Detail

GenericEdge

public GenericEdge(ParametrizedPiercingVertex a,
                   ParametrizedPiercingVertex b,
                   int[][] lijn,
                   Configuration configuration)

GenericEdge

public GenericEdge(ParametrizedPiercingVertex a,
                   ParametrizedPiercingVertex b,
                   Configuration configuration)
Method Detail

containsBothVertices

public boolean containsBothVertices(Vertex a,
                                    Vertex b)

containtsVertex

public boolean containtsVertex(Vertex v)

hasToBeConsidered

public boolean hasToBeConsidered()
Specified by:
hasToBeConsidered in class GeometricObject

isATriangle

public boolean isATriangle()
Specified by:
isATriangle in class GeometricObject

isAnEdge

public boolean isAnEdge()
Specified by:
isAnEdge in class GeometricObject

isFlat

public boolean isFlat()

VulOp

protected void VulOp()

commit

public void commit(CommitDataStructure dataStructure)
Mesh Model


getLeftTriangle

public Triangle getLeftTriangle()

setTriangle

public void setTriangle(Triangle t)

getRightTriangle

public Triangle getRightTriangle()

setChildren

public void setChildren(GenericEdge beginChild,
                        GenericEdge endChild)
Hierarchical information


hasChildren

public boolean hasChildren()
Specified by:
hasChildren in class GeometricObject

getBeginChild

public GenericEdge getBeginChild()

getEindChild

public GenericEdge getEindChild()

setChildren

public void setChildren(java.util.ArrayList<GeometricObject> children)
Specified by:
setChildren in class GeometricObject

getChildren

public java.util.ArrayList<GeometricObject> getChildren()
Specified by:
getChildren in class GeometricObject

getBestEncoderTesselation

public AbstractTesselation getBestEncoderTesselation(SnijPixelStrategy snijPixelStrategy,
                                                     ConnectieCriterium connectieCriterium)
geeft de besteTesselatie terug gemaakt door de Tesselator geschikt voor dat object

Specified by:
getBestEncoderTesselation in class GeometricObject
Parameters:
snijPixelStrategy -
Returns:

getTesselation

public AbstractTesselation getTesselation(SnijPixelStrategy snijPixelStrategy,
                                          java.lang.String choise)
Specified by:
getTesselation in class GeometricObject

doorsnede

public ParametrizedPiercingVertex doorsnede(GenericEdge andere)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getArea

public float getArea()
Specified by:
getArea in class GeometricObject

getHoekInDomain

public float getHoekInDomain(int index)
Specified by:
getHoekInDomain in class GeometricObject

getLoc

public Loc getLoc(int index)

disposeLocationSet

public void disposeLocationSet()
disposes nothing

Specified by:
disposeLocationSet in class GeometricObject

getBegin

public final ParametrizedPiercingVertex getBegin()

getEind

public final ParametrizedPiercingVertex getEind()

getVertex

public ParametrizedPiercingVertex getVertex(int index)
Specified by:
getVertex in class GeometricObject

getLijn

public int[][] getLijn()

getLengte

public int getLengte()

getEuclidischeLengte

public float getEuclidischeLengte()

getEuclidischeLengtePerPixel

public float getEuclidischeLengtePerPixel()

getShortestDomainDistance

public float getShortestDomainDistance(Loc l)
http://www.geometryalgorithms.com/Archive/algorithm_0102/algorithm_0102.htm

Parameters:
l -
Returns:

getAantalPunten

public int getAantalPunten()
Specified by:
getAantalPunten in class GeometricObject

getOrderedVertices

public java.util.ArrayList<ParametrizedPiercingVertex> getOrderedVertices()
Specified by:
getOrderedVertices in class GeometricObject

getHoogte

public int getHoogte()
Returns:
verschil tussen de Z-waarden van de uiteinden

getMiddenIndex

public int getMiddenIndex()

getMidLoc

public Loc getMidLoc()

getFundamentenWaardeOn

public float getFundamentenWaardeOn(int index)

getFunctiewaardeOn

public float getFunctiewaardeOn(int index)

getFunctiewaardeOn

public float getFunctiewaardeOn(Loc loc)
Specified by:
getFunctiewaardeOn in class GeometricObject

fundamentenwaardeOn

public float fundamentenwaardeOn(Loc loc)
Specified by:
fundamentenwaardeOn in class GeometricObject

setOffsets

public void setOffsets(int normalOffset,
                       int verticalOffset)
Offsets Methods*******************************


getNormalOffset

public int getNormalOffset()
Returns:
Returns the normalOffset. If e.isFlat() then it returns midden_index

getNormalOffsetDistance

public float getNormalOffsetDistance()

getVerticalOffset

public int getVerticalOffset()
Returns:
Returns the verticalOffset.

hasCrossedContour

public boolean hasCrossedContour()
this is an heuristic to see if this edge has crossed a contour


getNormalisationFactor

public float getNormalisationFactor()
Method that returns the normalisation factor that "normalizes" the vertical offset connected with the edge.

Returns:
normalisation factor

print

public void print()

getEdge

public GenericEdge getEdge(int i)
Specified by:
getEdge in class GeometricObject

getNbrOfEdges

public int getNbrOfEdges()
Specified by:
getNbrOfEdges in class GeometricObject

getState

public State getState()

setState

public void setState(State state)