org.deegree.geometry.linearization
Class CurveLinearizerTest

java.lang.Object
  extended by org.deegree.geometry.linearization.CurveLinearizerTest

public class CurveLinearizerTest
extends Object

Tests for CurveLinearizer.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
CurveLinearizerTest()
           
 
Method Summary
 void linearizeArcCircle()
           
 void setUp()
           
 void testFindCircleCenter()
          Tests if CurveLinearizer.calcCircleCenter(Point, Point, Point) finds the correct midpoint.
 void testIsClockwise()
          Tests if CurveLinearizer.isClockwise(Point, Point, Point) determines the correct point order.
 void testLinearizeArc()
          Test the delta (distance between two adjacent points) the number of linearization points and the end and begin points
 void testLinearizeArcFourQDs14()
          Test an arc over quadrants 1 and 4 over 3 and 2 | 4 | 1 _______|_______ | 3 | 2 |
 void testLinearizeCircle()
          Tests if interpolate(Point, Point, Point, int, boolean) produces sequences of positions that coincide with the circle arc.
 void testLinearizeCollinearArc()
          Tests the linearization of an arc with collinear control points (on a line).
 void testLinearizeCollinearCircle()
          Tests the linearization of a circle with collinear control points (on a line).
 void testLinearizeCubicSpline()
          Tests if CurveLinearizer.linearizeCubicSpline(CubicSpline, LinearizationCriterion) produces positions that coincide with the real values.
 void testVisualLinArcQDs12()
          Test an arc over quadrants 1 and 2 | 4 | 1 _______|_______ | 3 | 2 |
 void testVisualLinArcQDs14()
          Test an arc over quadrants 1 and 4 | 4 | 1 _______|_______ | 3 | 2 |
 void testVisualLinArcQDs23()
          Test an arc over quadrants 2 and 4 | 4 | 1 _______|_______ | 3 | 2 |
 void testVisualLinArcQDs34()
          Test an arc over quadrants 3 and 4 | 4 | 1 _______|_______ | 3 | 2 |
 void visualizeCircle()
          Linearize a circle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveLinearizerTest

public CurveLinearizerTest()
Method Detail

setUp

public void setUp()

linearizeArcCircle

public void linearizeArcCircle()

testIsClockwise

public void testIsClockwise()
Tests if CurveLinearizer.isClockwise(Point, Point, Point) determines the correct point order.


testFindCircleCenter

public void testFindCircleCenter()
Tests if CurveLinearizer.calcCircleCenter(Point, Point, Point) finds the correct midpoint.


testLinearizeCircle

public void testLinearizeCircle()
Tests if interpolate(Point, Point, Point, int, boolean) produces sequences of positions that coincide with the circle arc.


testLinearizeCubicSpline

public void testLinearizeCubicSpline()
Tests if CurveLinearizer.linearizeCubicSpline(CubicSpline, LinearizationCriterion) produces positions that coincide with the real values.


testLinearizeArc

public void testLinearizeArc()
Test the delta (distance between two adjacent points) the number of linearization points and the end and begin points


testLinearizeCollinearArc

public void testLinearizeCollinearArc()
Tests the linearization of an arc with collinear control points (on a line).


testLinearizeCollinearCircle

public void testLinearizeCollinearCircle()
Tests the linearization of a circle with collinear control points (on a line).


testVisualLinArcQDs34

public void testVisualLinArcQDs34()
Test an arc over quadrants 3 and 4 | 4 | 1 _______|_______ | 3 | 2 |


testVisualLinArcQDs12

public void testVisualLinArcQDs12()
Test an arc over quadrants 1 and 2 | 4 | 1 _______|_______ | 3 | 2 |


testVisualLinArcQDs14

public void testVisualLinArcQDs14()
Test an arc over quadrants 1 and 4 | 4 | 1 _______|_______ | 3 | 2 |


testVisualLinArcQDs23

public void testVisualLinArcQDs23()
Test an arc over quadrants 2 and 4 | 4 | 1 _______|_______ | 3 | 2 |


testLinearizeArcFourQDs14

public void testLinearizeArcFourQDs14()
Test an arc over quadrants 1 and 4 over 3 and 2 | 4 | 1 _______|_______ | 3 | 2 |


visualizeCircle

public void visualizeCircle()
Linearize a circle



Copyright © 2011. All Rights Reserved.