commandline.ImageStuff
Class GeometricObject

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

public abstract class GeometricObject
extends java.lang.Object

Abstract class defining the interface of a geometric Object


Field Summary
protected  Configuration configuration
           
static GeometricObject DEFAULT_GEOM
           
protected  java.util.HashSet<Loc> locs
           
 
Constructor Summary
GeometricObject(Configuration configuration)
           
 
Method Summary
 boolean contains(Loc loc)
           
abstract  void disposeLocationSet()
          disposes the locations for error calculation in the first iteration
abstract  float fundamentenwaardeOn(Loc loc)
           
abstract  int getAantalPunten()
           
 java.util.ArrayList<GeometricObject> getAllLeaves()
           
abstract  float getArea()
           
abstract  AbstractTesselation getBestEncoderTesselation(SnijPixelStrategy snijPixelStrategy, ConnectieCriterium connectieCriterium)
          geeft de besteTesselatie terug gemaakt door de Tesselator geschikt voor dat object
abstract  java.util.ArrayList<GeometricObject> getChildren()
           
abstract  GenericEdge getEdge(int i)
           
 NormPakket getError(Image image)
          Calculates all norms connected to this geometric object
abstract  float getFunctiewaardeOn(Loc l)
           
 GeometricProperty getGeometricProperty()
           
abstract  float getHoekInDomain(int index)
           
 java.util.HashSet<Loc> getLocs()
           
abstract  int getNbrOfEdges()
           
abstract  java.util.ArrayList<ParametrizedPiercingVertex> getOrderedVertices()
           
protected  float getSobel(Loc loc, Image image)
           
 float getSobolevError(Image image)
          Calculates the Sobolev Error over the domain (L_2 after differential operator)
abstract  AbstractTesselation getTesselation(SnijPixelStrategy snijPixelStrategy, java.lang.String choise)
           
abstract  ParametrizedPiercingVertex getVertex(int i)
           
abstract  boolean hasChildren()
           
abstract  boolean hasToBeConsidered()
           
abstract  boolean isAnEdge()
           
abstract  boolean isATriangle()
           
abstract  void setChildren(java.util.ArrayList<GeometricObject> children)
           
 void setGeometricProperty(GeometricProperty gp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_GEOM

public static final GeometricObject DEFAULT_GEOM

locs

protected java.util.HashSet<Loc> locs

configuration

protected Configuration configuration
Constructor Detail

GeometricObject

public GeometricObject(Configuration configuration)
Method Detail

getArea

public abstract float getArea()

getAantalPunten

public abstract int getAantalPunten()

fundamentenwaardeOn

public abstract float fundamentenwaardeOn(Loc loc)

getHoekInDomain

public abstract float getHoekInDomain(int index)

getEdge

public abstract GenericEdge getEdge(int i)

isATriangle

public abstract boolean isATriangle()

isAnEdge

public abstract boolean isAnEdge()

getNbrOfEdges

public abstract int getNbrOfEdges()

hasChildren

public abstract boolean hasChildren()

getBestEncoderTesselation

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

Parameters:
snijPixelStrategy -
Returns:

getTesselation

public abstract AbstractTesselation getTesselation(SnijPixelStrategy snijPixelStrategy,
                                                   java.lang.String choise)

getLocs

public java.util.HashSet<Loc> getLocs()
Returns:
Returns the locs.

disposeLocationSet

public abstract void disposeLocationSet()
disposes the locations for error calculation in the first iteration


contains

public boolean contains(Loc loc)

setChildren

public abstract void setChildren(java.util.ArrayList<GeometricObject> children)

getChildren

public abstract java.util.ArrayList<GeometricObject> getChildren()

getFunctiewaardeOn

public abstract float getFunctiewaardeOn(Loc l)

hasToBeConsidered

public abstract boolean hasToBeConsidered()

getError

public NormPakket getError(Image image)
Calculates all norms connected to this geometric object

Parameters:
image -
Returns:
NormPakket

getSobolevError

public float getSobolevError(Image image)
Calculates the Sobolev Error over the domain (L_2 after differential operator)

Parameters:
image -
Returns:
NormPakket

getSobel

protected float getSobel(Loc loc,
                         Image image)

getVertex

public abstract ParametrizedPiercingVertex getVertex(int i)

getOrderedVertices

public abstract java.util.ArrayList<ParametrizedPiercingVertex> getOrderedVertices()

setGeometricProperty

public void setGeometricProperty(GeometricProperty gp)
Parameters:
geometricProperty - The geometricProperty to set.

getGeometricProperty

public GeometricProperty getGeometricProperty()
Returns:
Returns the geometricProperty.

getAllLeaves

public java.util.ArrayList<GeometricObject> getAllLeaves()