commandline.NormalMeshAlgorithm
Class SnijPixelStrategy

java.lang.Object
  extended by commandline.NormalMeshAlgorithm.ChildMaker
      extended by commandline.NormalMeshAlgorithm.SnijPixelStrategy
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SnijPixelFunctieWaardenStrategy, SnijPixelPiercingWaardeStrategy

public abstract class SnijPixelStrategy
extends ChildMaker

Deze klasse berekend van een 'Edge' het snijpunt met de 'Image'

See Also:
Serialized Form

Field Summary
 
Fields inherited from class commandline.NormalMeshAlgorithm.ChildMaker
configuration
 
Constructor Summary
SnijPixelStrategy(Configuration configuration)
           
 
Method Summary
abstract  float berekenMiddenHoogte(GenericEdge e)
           
abstract  float berekenRicoEdge(GenericEdge e)
           
abstract  float berekenRicoNormale(GenericEdge e)
          berekend de rico al naargelang de gaat om de echte begin en eind waarden of om de piercing waarden van de edge
 Children_OffsetsCompoud buildChildEdges(GenericEdge edge)
           
static int calculateVerticalOffset(float approx, float function)
           
abstract  boolean gebruikFunctieWaarden()
           
protected abstract  float getBeginPixelWaarde(EncoderEdge e)
          definieert of de functiewaarde of de z-waarde wordt teruggegeven van het begin of eindpunt van de edge
 Children_OffsetsCompoud getChildEdgesOfEdge(int welke_edge)
           
protected abstract  float getEindPixelWaarde(EncoderEdge e)
           
 commandline.NormalMeshAlgorithm.PiercingResult getFarestPiercingTo_a(GenericEdge e, float rico_normale, int midden_index, float midden_hoogte, int max_delta)
           
protected abstract  float getPixelWaarde(Pixel p)
           
abstract  void printName()
           
protected  Index_VertexCompound SnijPixel_echte_edge(EncoderEdge e, Image image)
           
 
Methods inherited from class commandline.NormalMeshAlgorithm.ChildMaker
maakLijn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnijPixelStrategy

public SnijPixelStrategy(Configuration configuration)
Method Detail

printName

public abstract void printName()

gebruikFunctieWaarden

public abstract boolean gebruikFunctieWaarden()

getChildEdgesOfEdge

public Children_OffsetsCompoud getChildEdgesOfEdge(int welke_edge)
Specified by:
getChildEdgesOfEdge in class ChildMaker

calculateVerticalOffset

public static int calculateVerticalOffset(float approx,
                                          float function)

buildChildEdges

public Children_OffsetsCompoud buildChildEdges(GenericEdge edge)
Specified by:
buildChildEdges in class ChildMaker
Parameters:
e -
Returns:

getBeginPixelWaarde

protected abstract float getBeginPixelWaarde(EncoderEdge e)
definieert of de functiewaarde of de z-waarde wordt teruggegeven van het begin of eindpunt van de edge

Parameters:
p -
Returns:

getEindPixelWaarde

protected abstract float getEindPixelWaarde(EncoderEdge e)

getPixelWaarde

protected abstract float getPixelWaarde(Pixel p)

berekenRicoNormale

public abstract float berekenRicoNormale(GenericEdge e)
berekend de rico al naargelang de gaat om de echte begin en eind waarden of om de piercing waarden van de edge


berekenRicoEdge

public abstract float berekenRicoEdge(GenericEdge e)

berekenMiddenHoogte

public abstract float berekenMiddenHoogte(GenericEdge e)

SnijPixel_echte_edge

protected Index_VertexCompound SnijPixel_echte_edge(EncoderEdge e,
                                                    Image image)
Parameters:
e -
image -
Returns:
normaloffset in [0,e.length()]

getFarestPiercingTo_a

public commandline.NormalMeshAlgorithm.PiercingResult getFarestPiercingTo_a(GenericEdge e,
                                                                            float rico_normale,
                                                                            int midden_index,
                                                                            float midden_hoogte,
                                                                            int max_delta)
Parameters:
e -
rico_normale -
midden_index -
midden_hoogte -
max_delta -
Returns: