コード例 #1
0
ファイル: PolygonCreator.cs プロジェクト: wcatykid/GeoShader
 protected override IFigure CreateIntermediateFigure()
 {
     if (!FoundDependencies.All(f => f is IPoint))
     {
         return(null);
     }
     if (FoundDependencies.Count == 2)
     {
         return(Factory.CreateSegment(Drawing, FoundDependencies));
     }
     return(null);
 }
コード例 #2
0
 protected override IFigure CreateIntermediateFigure()
 {
     if (!FoundDependencies.All(f => f is IPoint))
     {
         return(null);
     }
     else if (FoundDependencies.Count >= 3)
     {
         var result = Factory.CreateAreaMeasurement(Drawing, FoundDependencies);
         return(result);
     }
     return(null);
 }