ImageStuff
Class Triangle

java.lang.Object
  extended by ImageStuff.GeometricObject
      extended by ImageStuff.Triangle

public class Triangle
extends GeometricObject


Field Summary
static int JA
           
static int NEE
           
 
Fields inherited from class ImageStuff.GeometricObject
DEFAULT_GEOM
 
Constructor Summary
Triangle(Configuration configuration)
           
Triangle(GenericEdge nul, GenericEdge een, GenericEdge twee, Configuration configuration)
           
 
Method Summary
 void addState(CodedFile codedFile)
          Method that adds the state of this triangle to a CodedFile
 float fundamentenwaardeOn(Loc loc)
           
 int getAantalPunten()
           
 float getArea()
           
 AbstractTesselation getBestEncoderTesselation(SnijPixelStrategy snijPixelStrategy, ConnectieCriterium connectieCriterium)
          geeft de besteTesselatie terug gemaakt door de Tesselator geschikt voor dat object
 java.util.ArrayList<GeometricObject> getChildren()
           
 float getDomainArea()
           
 GenericEdge getEdge(int i)
          steeds in zulke volgorde van doorlopen.
 GenericEdge getEdgeContaining(Vertex a, Vertex b)
           
 GenericEdge[] getEdges()
           
 float getFunctiewaardeOn(Loc loc)
           
 float getHoekInDomain(int index)
           
 java.util.HashSet<Loc> getLocs()
           
 int getNbrOfEdges()
           
 myVector getNormale()
           
 int getNumberOfPixels()
           
 java.util.ArrayList<Vertex> getOrderedVertices()
           
 AbstractTesselation getTesselation(SnijPixelStrategy snijPixelStrategy, java.lang.String choise)
           
 Vertex getVertex(int i)
          enkel intern te gebruiken , ofwel voor het tekenen van een driehoek de vertices zijn hoegenaamd niet gekoppeld aan weet ik veel wat
 Vertex getVertexOtherThan(Vertex a, Vertex b)
           
 boolean hasChildren()
           
 boolean hasToBeConsidered()
           
 void invariant()
           
 boolean isAnEdge()
           
 boolean isATriangle()
           
 boolean isVertikal()
           
 void print(int[][] grenzen)
           
 void printInfo()
           
 void register(CommitDataStructure dataStructure)
          nooit wordt deze driehoek 2 maal geregistreerd
 void setChildren(java.util.ArrayList<GeometricObject> children)
           
 void setChildren(Triangle A, Triangle B, Triangle C, Triangle D)
           
 
Methods inherited from class ImageStuff.GeometricObject
contains, getAllLeaves, getError, getGeometricProperty, setGeometricProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEE

public static final int NEE
See Also:
Constant Field Values

JA

public static final int JA
See Also:
Constant Field Values
Constructor Detail

Triangle

public Triangle(Configuration configuration)

Triangle

public Triangle(GenericEdge nul,
                GenericEdge een,
                GenericEdge twee,
                Configuration configuration)
Parameters:
nul -
een -
twee -
Method Detail

isATriangle

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

isAnEdge

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

register

public void register(CommitDataStructure dataStructure)
nooit wordt deze driehoek 2 maal geregistreerd


setChildren

public void setChildren(Triangle A,
                        Triangle B,
                        Triangle C,
                        Triangle D)

setChildren

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

hasChildren

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

getChildren

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

hasToBeConsidered

public boolean hasToBeConsidered()
Specified by:
hasToBeConsidered 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

getEdge

public GenericEdge getEdge(int i)
steeds in zulke volgorde van doorlopen.

Specified by:
getEdge in class GeometricObject
Parameters:
i - =0..2
Returns:

getEdgeContaining

public GenericEdge getEdgeContaining(Vertex a,
                                     Vertex b)

getVertexOtherThan

public Vertex getVertexOtherThan(Vertex a,
                                 Vertex b)

getVertex

public Vertex getVertex(int i)
enkel intern te gebruiken , ofwel voor het tekenen van een driehoek de vertices zijn hoegenaamd niet gekoppeld aan weet ik veel wat

Specified by:
getVertex in class GeometricObject

getOrderedVertices

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

getNormale

public myVector getNormale()

getNbrOfEdges

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

getEdges

public GenericEdge[] getEdges()
Returns:
Returns the edges.

getHoekInDomain

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

isVertikal

public boolean isVertikal()

getFunctiewaardeOn

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

fundamentenwaardeOn

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

getAantalPunten

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

getArea

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

getDomainArea

public float getDomainArea()

getNumberOfPixels

public int getNumberOfPixels()

getLocs

public java.util.HashSet<Loc> getLocs()
Overrides:
getLocs in class GeometricObject
Returns:
Returns the locs.

printInfo

public void printInfo()

print

public void print(int[][] grenzen)

invariant

public void invariant()

addState

public void addState(CodedFile codedFile)
Method that adds the state of this triangle to a CodedFile