ImageStuff
Class Triangle
java.lang.Object
ImageStuff.GeometricObject
ImageStuff.Triangle
public class Triangle
- extends GeometricObject
|
Field Summary |
static int |
JA
|
static int |
NEE
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NEE
public static final int NEE
- See Also:
- Constant Field Values
JA
public static final int JA
- See Also:
- Constant Field Values
Triangle
public Triangle(Configuration configuration)
Triangle
public Triangle(GenericEdge nul,
GenericEdge een,
GenericEdge twee,
Configuration configuration)
- Parameters:
nul - een - twee -
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