示例#1
0
 def __init__(self):
     preposition.Preposition.__init__(
         self, "through", [("landmark", argTypes.Polygon, 1),
                           ("figure", argTypes.LineString, 1)],
         [
             across.AxesFeatures(),
             coaxial_distance_features.CoaxialDistanceFeatures(
                 across.lineFunction),
         ], [
             'distAlongLandmarkBtwnAxes',
             'figureCenterOfMassToLandmarkCentroid', 'ratioFigureToAxes'
         ])
示例#2
0
 def __init__(self):
     preposition.Preposition.__init__(self, "along", 
                                      [("obstacles", argTypes.Polygon, "*"),
                                       ("landmark",argTypes.Polygon, 1),
                                       ("figure",argTypes.LineString, 1)],
                                      [coaxial_distance_features.CoaxialDistanceFeatures(math2d.computeBoundaryLine),
                                       EndPointFeatures(),
                                       LinearizingFeatures(),
                                       #past.AxesFeatures(),
                                       #visibilityFeatures.VisibilityFeatures()
                                       ],
                                      ["peakDistToAxes",
                                       "stdDevToAxes",
                                       "averageDistStartEndLandmarkBoundary",
                                       "angleBtwnLinearizedObjects"])
示例#3
0
 def __init__(self):
     preposition.Preposition.__init__(
         self,
         "out",
         [("landmark", argTypes.Polygon, 1),
          ("figure", argTypes.LineString, 1)],
         [
             across.AxesFeatures(),
             along.LinearizingFeatures(),
             coaxial_distance_features.CoaxialDistanceFeatures(
                 math2d.computeBoundaryLine),
             awayFrom.DisplacementFeatures(),
             #visibilityFeatures.VisibilityFeatures()
         ],
         [
             "displacementFromLandmark",
             "figureCenterOfMassToLandmarkCentroid",
             "averageDistToAxes",
         ],
     )
示例#4
0
 def __init__(self):
     preposition.Preposition.__init__(
         self,
         "down",
         [  #("obstacles", QGis.WKBPolygon, "*"),
             ("landmark", argTypes.Polygon, 1),
             ("figure", argTypes.LineString, 1)
         ],
         [  #coaxial_distance_features.CoaxialDistanceFeatures(along.computeBoundaryLine),
             coaxial_distance_features.CoaxialDistanceFeatures(
                 math2d.computeBoundaryLine),
             across.AxesFeatures(),
             along.EndPointFeatures(),
             to.BoundingBoxFeatures(),
             across.EigenAxes(),
             #along.LinearizingFeatures(),
             #visibilityFeatures.VisibilityFeatures()
         ],
         [
             "figureCenterOfMassToAxesOrigin",
             "stdDevToAxes",
             "distAlongLandmarkBtwnAxes",
             "eigenAxesRatio",
         ])