Examples of refine()


Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 90, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testVerticalDown() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    AngleCalculationLimbRefiner testObj = new AngleCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( -90, limb.getAngle(), DOUBLE_TOLERANCE );
  }
 
  public void testFlat() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    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 );
  }
 
  public void testIncline() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    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 );
  }
 
  public void testDecline() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    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 );
  }
 
  public void testNegativeIncline() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    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 );
  }
 
  public void testNegativeDecline() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.AngleCalculationLimbRefiner.refine()

    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.refine.DistanceCalculationLimbRefiner.refine()

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    DistanceCalculationLimbRefiner testObj = new DistanceCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 50, limb.getDistance(), DOUBLE_TOLERANCE );
  }
 
  public void testDistanceFromLineToSimpleLine() throws Exception
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.DistanceCalculationLimbRefiner.refine()

    Limb limb = new Limb();
    limb.setFeature( this.feature );
    limb.setIntersection( intersectionPoint );
   
    DistanceCalculationLimbRefiner testObj = new DistanceCalculationLimbRefiner();
    testObj.refine( limb, null, null );
   
    assertEquals( 50, limb.getDistance(), DOUBLE_TOLERANCE );
  }
 
}
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.refine.LeanBeanLimbRefiner.refine()

 
  public void testNominal() throws Exception
  {
    LeanBeanLimbRefiner testObj = new LeanBeanLimbRefiner();
    testObj.setDefaultBeanProperties( "edges,label,position" );
    testObj.refine( this.limb, null, null );
   
    assertNotNull( this.limb.getEdges() );
    assertNull( this.limb.getFeature() );
    assertNull( this.limb.getIntersection() );
    assertNotNull( this.limb.getLabel() );
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.