11using namespace Platform;
12using namespace Platform::Collections;
13using namespace Windows::Foundation::Collections;
15namespace CartoTypeCore
17class PathIntersectionInfo;
39 Point(
double aX,
double aY) {
X = aX;
Y = aY; }
91public ref class Rect sealed
97 Rect(
double aMinX,
double aMinY,
double aMaxX,
double aMaxY);
100 property double MinX;
102 property double MinY;
104 property double MaxX;
106 property double MaxY;
170public ref class PathIntersectionInfo
sealed
189 void Set(
const CartoTypeCore::PathIntersectionInfo& aInfo);
242 property bool IsEmpty {
bool get(); };
244 property bool IsClosed {
bool get(); };
300 Geometry(std::unique_ptr<CartoTypeCore::Geometry> aGeometry);
302 std::unique_ptr<CartoTypeCore::Geometry> m_geometry;
A geometry class for creating map objects and specifying view areas. There are also functions for the...
Definition CartoTypeGeometry.h:209
PathIntersectionInfo ^ IntersectionInfo(MapObject^ aMapObject)
Returns information about the intersection of this geometry with a map object. The nearest positions ...
bool ContourIsOuter(int aIndex)
Returns true if a contour is an outer contour, defined as being anti-clockwise, that is,...
bool Contains(MapObject^ aMapObject)
Returns true if this geometry contains the map object aMapObject.
bool Contained(MapObject^ aMapObject)
Returns true if this geometry is contained by the map object aMapObject.
bool IsEmpty
Returns true if the Geometry object has no points.
Definition CartoTypeGeometry.h:242
PathIntersectionInfoList ^ IntersectionInfos(MapObjectList^ aMapObjectList)
Returns information about the intersection of this geometry with an array of map objects....
GeometryList ^ ClipMapObjects(ClipOperation aClipOperation, MapObjectList^ aMapObjectList)
Returns the results of clipping a sequence of map objects returned by a function using this geometry,...
static Geometry ^ RectGeometry(Rect^ aRect, CoordType aCoordType)
Creates a geometry object from a grid-aligned rectangle.
CoordType CoordType
Returns the coordinate type.
Definition CartoTypeGeometry.h:224
PathIntersectionType IntersectionType(MapObject^ aMapObject)
Returns the intersection type of this geometry with a map object.
virtual int PointCount(int aContourIndex)
Returns the number of points in a contour.
static Geometry ^ Envelope(MapObject^ aMapObject, double aOffsetInMeters)
Returns a geometry that is the envelope of a map object.
Geometry ^ Clip(ClipOperation aClipOperation, MapObject^ aMapObject)
Returns the result of clipping a map object using this geometry, which must be closed.
PathIntersectionTypeList ^ IntersectionTypes(MapObjectList^ aMapObjectList)
Returns the intersection types of this geometry with a list of map objects.
void AppendPathPoint(PathPoint^ aPoint)
Appends a point to the current contour.
virtual int ContourCount()
Returns the number of contours (separate lines or closed curves).
void BeginContour()
Begins a new contour. Use this function when creating a geometry object with more than one contour.
void Clear()
Deletes all points but retains the coordinate type and open/closed state.
virtual PathPoint ^ Point(int aContourIndex, int aPointIndex)
Returns a certain point.
void SetClosed(bool aClosed)
Sets whether the Geometry object is made of closed contours.
void AppendPoint(double aX, double aY, PointType aPointType)
Appends a point to the current contour.
void Reverse()
Reverses the order of the contours and the order of the points in each contour.
Geometry ^ ContourGeometry(int aContourIndex)
Creates a geometry object representing a contour selected by its index.
void AppendPoint(double aX, double aY)
Appends a point to the current contour.
Geometry(CoordType aCoordType, bool aClosed)
Creates a geometry object using the specified coordinate type.
void AppendPoint(Point^ aPoint)
Appends a point to the current contour.
bool IsClosed
Returns true if the Geometry object is made of closed contours.
Definition CartoTypeGeometry.h:244
Geometry(MapObject^ aMapObject)
Creates a geometry object containing the geometry of a map object.
Result ConvertLinesToGreatCircles(double aMaxDistanceInMeters)
Interpolates points at a maximum distance apart to convert lines to great circles....
bool Intersects(MapObject^ aMapObject)
Returns true if this geometry intersects, contains or is contained by the map object aMapObject.
A map object: a point, linear object, polygon object, or array (texture).
Definition CartoTypeWrapper.h:235
Information about the intersection of two paths and their distance apart. For functions involving map...
Definition CartoTypeGeometry.h:171
double NearestY2
The Y coordinate of the nearest point on the second path.
Definition CartoTypeGeometry.h:186
double NearestY1
The Y coordinate of the nearest point on the first path.
Definition CartoTypeGeometry.h:182
PathIntersectionType Type
The intersection type.
Definition CartoTypeGeometry.h:176
double NearestX2
The X coordinate of the nearest point on the second path.
Definition CartoTypeGeometry.h:184
double Distance
The distance between the paths.
Definition CartoTypeGeometry.h:178
double NearestX1
The X coordinate of the nearest point on the first path.
Definition CartoTypeGeometry.h:180
An on-curve or off-curve point for use in paths.
Definition CartoTypeGeometry.h:70
PathPoint(double aX, double aY, PointType aType)
Creates the point (aX,aY,aType).
Definition CartoTypeGeometry.h:75
double X
The X coordinate.
Definition CartoTypeGeometry.h:80
PathPoint(PathPoint^ aPoint)
Creates a point by copying aPoint.
Definition CartoTypeGeometry.h:77
double Y
The Y coordinate.
Definition CartoTypeGeometry.h:82
PointType Type
The point type: on-curve, or a quadratic or cubic spline control point.
Definition CartoTypeGeometry.h:84
PathPoint()
Creates the point (0,0,OnCurve).
Definition CartoTypeGeometry.h:73
Point(Point^ aPoint)
Creates a point by copying aPoint.
Definition CartoTypeGeometry.h:41
Point(double aX, double aY)
Creates the point (aX,aY).
Definition CartoTypeGeometry.h:39
double Y
The Y coordinate.
Definition CartoTypeGeometry.h:45
Point()
Creates the point (0,0).
Definition CartoTypeGeometry.h:37
double X
The X coordinate.
Definition CartoTypeGeometry.h:43
A grid-aligned rectangle with double-precision coordinates suitable for map points.
Definition CartoTypeGeometry.h:92
double MaxX
The maximum X coordinate: the right edge.
Definition CartoTypeGeometry.h:104
double MinY
The minimum Y coordinate: usually the bottom edge.
Definition CartoTypeGeometry.h:102
double MinX
The minimum X coordinate: the left edge.
Definition CartoTypeGeometry.h:100
double MaxY
The maximum Y coordinate: usually the top edge.
Definition CartoTypeGeometry.h:106
Rect()
Creates the rectangle (0,0,0,0).
A path defining a set of open and closed curves.
Definition CartoTypeGeometry.h:124
PathPoint ^ Point(int aContourIndex, int aPointIndex)
Returns a point given its contour and point indexes.
int PointCount(int aContourIndex)
Returns the number of points in a contour.
int ContourCount()
Returns the number of contours (sub-paths).
Definition CartoTypeWrapper.h:68
CoordType
Coordinate types.
Definition CartoTypeGeometry.h:135
@ Screen
A synonym for Display. Pixels on the display: X increases to the right and Y increases downwards.
Definition CartoTypeGeometry.h:141
@ Map
Map coordinates: 32nds of projected meters. X increases to the east and Y increases to the north.
Definition CartoTypeGeometry.h:143
@ Degree
Longitude (X) and latitude (Y) in degrees. X increases to the east and Y increases to the north.
Definition CartoTypeGeometry.h:137
@ MapMeter
Map meters: projected meters. X increases to the east and Y increases to the north.
Definition CartoTypeGeometry.h:145
@ Display
Pixels on the display: X increases to the right and Y increases downwards.
Definition CartoTypeGeometry.h:139
Result
Result codes returned by CartoType API functions.
Definition CartoTypeResult.h:15
PointType
Types used by PathPoint.
Definition CartoTypeGeometry.h:59
@ OnCurve
A point on the curve.
Definition CartoTypeGeometry.h:61
@ Quadratic
A control point for a quadratic (conic) Bezier spline curve.
Definition CartoTypeGeometry.h:63
@ Cubic
A control point for a cubic Bezier spline curve.
Definition CartoTypeGeometry.h:65
IVector< PathIntersectionType > PathIntersectionTypeList
A type for lists of path intersection types returned by Geometry functions.
Definition CartoTypeGeometry.h:164
IVector< MapObject^> MapObjectList
A type for lists of map objects returned by search functions.
Definition CartoTypeGeometry.h:30
IVector< PathIntersectionInfo^> PathIntersectionInfoList
A type for lists of path intersection information objects returned by Geometry functions.
Definition CartoTypeGeometry.h:193
ClipOperation
Types of clipping done by Geometry.Clip.
Definition CartoTypeGeometry.h:111
@ Difference
Returns the difference of two paths; non-commutative.
Definition CartoTypeGeometry.h:117
@ Xor
Returns the exclusive-or of the two paths; that is, any regions which are in neither path; commutativ...
Definition CartoTypeGeometry.h:119
@ Intersection
Returns the intersection of two paths; commutative.
Definition CartoTypeGeometry.h:113
@ Union
Returns the union of two paths; commutative.
Definition CartoTypeGeometry.h:115
IVector< Geometry^> GeometryList
A type for lists of geometry objects returned by Geometry functions.
Definition CartoTypeGeometry.h:27
@ Point
A point in two-dimensional space.
Definition CartoTypeWrapper.h:101
PathIntersectionType
The ways two paths can intersect.
Definition CartoTypeGeometry.h:150
@ Contained
The second path contains the first.
Definition CartoTypeGeometry.h:160
@ Separate
The paths do not intersect.
Definition CartoTypeGeometry.h:154
@ Unknown
The intersection type is unknown.
Definition CartoTypeGeometry.h:152
@ Contains
The first path contains the second.
Definition CartoTypeGeometry.h:158
Definition CartoTypeGeometry.h:50
double Y
The Y coordinate.
Definition CartoTypeGeometry.h:54
double X
The X coordinate.
Definition CartoTypeGeometry.h:52