Examples of Limb


Examples of net.lucidviews.geoalgo.limb.data.Limb

    LineString featureGeometry = this.geometryFactory.createLineString( LimbGeneratorTest.Utils.createCoords( "0 0, 40 0" ) );
    this.feature.setDefaultGeometry( featureGeometry );
   
    Point intersectionPoint = this.geometryFactory.createPoint( new Coordinate( 20, 0 ) );
   
    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

    LineString featureGeometry = this.geometryFactory.createLineString( LimbGeneratorTest.Utils.createCoords( "0 0, 40 40" ) );
    this.feature.setDefaultGeometry( featureGeometry );
   
    Point intersectionPoint = this.geometryFactory.createPoint( new Coordinate( 20, 20 ) );
   
    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

    LineString featureGeometry = this.geometryFactory.createLineString( LimbGeneratorTest.Utils.createCoords( "0 40, 40 0" ) );
    this.feature.setDefaultGeometry( featureGeometry );
   
    Point intersectionPoint = this.geometryFactory.createPoint( new Coordinate( 20, 20 ) );
   
    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

    LineString featureGeometry = this.geometryFactory.createLineString( LimbGeneratorTest.Utils.createCoords( "40 0, 0 40" ) );
    this.feature.setDefaultGeometry( featureGeometry );
   
    Point intersectionPoint = this.geometryFactory.createPoint( new Coordinate( 20, 20 ) );
   
    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

    LineString featureGeometry = this.geometryFactory.createLineString( LimbGeneratorTest.Utils.createCoords( "40 40, 0 0" ) );
    this.feature.setDefaultGeometry( featureGeometry );
   
    Point intersectionPoint = this.geometryFactory.createPoint( new Coordinate( 20, 20 ) );
   
    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 45.0, limb.getAngle(), DOUBLE_TOLERANCE );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

    runIntersectionTest( intersection, edges );
  }
 
  public void runIntersectionTest( Geometry intersection, Set<Edge> expectedEdges )
  {
    Limb limb = new Limb();
    limb.setIntersection( intersection );
   
    new EdgeAssigmentLimbRefiner().refine( limb, this.standardView, null );
   
    assertNotNull( "Edges have not been defined.", limb.getEdges() );
    assertEquals( "Wrong edges were identified.", expectedEdges, limb.getEdges() );
  }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Limb

 
  // --------------------------------------------------------------------------------
 
  public void testLimbWithNoIntersectionGeometry()
  {
    Limb limb = new Limb();
   
    try
    {
      new EdgeAssigmentLimbRefiner().refine( limb, this.standardView, null );
      fail( "No exception thrown when limb is missing the intersection geometry." );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.