#import <Foundation/Foundation.h>
#import <CoreGraphics/CGImage.h>
#import <CoreGraphics/CGGeometry.h>
#import <CartoType/CartoTypeResultCode.h>
Go to the source code of this file.
|
enum | CartoTypeStringMatchMethod {
StringMatchPrefixFlag = 1
, StringMatchIgnoreSymbolsFlag = 2
, StringMatchFoldAccentsFlag = 4
, StringMatchFuzzyFlag = 8
,
StringMatchFoldCaseFlag = 16
, StringMatchIgnoreWhitespaceFlag = 32
, StringMatchExact = 0
, StringMatchFoldCase = StringMatchFoldCaseFlag
,
StringMatchPrefix = StringMatchPrefixFlag
, StringMatchIgnoreNonAlphanumerics = StringMatchIgnoreSymbolsFlag | StringMatchIgnoreWhitespaceFlag
, StringMatchLoose = StringMatchIgnoreNonAlphanumerics | StringMatchFoldAccentsFlag | StringMatchFoldCaseFlag
, StringMatchFuzzy = StringMatchIgnoreNonAlphanumerics | StringMatchFoldAccentsFlag | StringMatchFuzzyFlag | StringMatchFoldCaseFlag
} |
|
enum | CartoTypeFileType {
PngFileType
, JpegFileType
, TiffFileType
, Ctm1FileType
,
CtmsFileType
, KmlFileType
, CtsqlFileType
, CartoTypeRouteFileType
,
GpxFileType
} |
|
enum | CartoTypeMapObjectType {
PointMapObjectType
, LineMapObjectType
, PolygonMapObjectType
, ArrayMapObjectType
,
MapObjectTypes
, NoMapObjectType = -1
} |
|
enum | CartoTypePointType { OnCurvePointType = 0
, QuadraticPointType = 1
, CubicPointType = 2
} |
|
enum | CartoTypeAlign {
AlignCenter
, AlignStandard
, AlignReverse
, AlignLeft
,
AlignRight
} |
|
enum | CartoTypeCoordType {
DegreeCoordType
, DisplayCoordType
, ScreenCoordType = DisplayCoordType
, MapCoordType
,
MapMeterCoordType
} |
|
enum | {
CTBlack = 0xFF000000
, CTDarkGray = 0xFF555555
, CTDarkRed = 0xFF000080
, CTDarkGreen = 0xFF008000
,
CTDarkYellow = 0xFF008080
, CTDarkBlue = 0xFF800000
, CTDarkMagenta = 0xFF800080
, CTDarkCyan = 0xFF808000
,
CTRed = 0xFF0000FF
, CTGreen = 0xFF00FF00
, CTYellow = 0xFF00FFFF
, CTBlue = 0xFFFF0000
,
CTMagenta = 0xFFFF00FF
, CTCyan = 0xFFFFFF00
, CTGray = 0xFFAAAAAA
, CTWhite = 0xFFFFFFFF
,
CTTransparentBlack = 0x00000000
} |
|
enum | CartoTypeAddressPart {
AddressPartBuilding
, AddressPartFeature
, AddressPartStreet
, AddressPartSubLocality
,
AddressPartLocality
, AddressPartIsland
, AddressPartSubAdminArea
, AddressPartAdminArea
,
AddressPartCountry
, AddressPartPostCode
} |
|
enum | CartoTypePathIntersectionType {
PathIntersectionTypeUnknown
, PathIntersectionTypeSeparate
, PathIntersectionTypeIntersects
, PathIntersectionTypeContains
,
PathIntersectionTypeContained
} |
|
enum | CartoTypeClipOperation { IntersectionClipOperation
, UnionClipOperation
, DifferenceClipOperation
, XorClipOperation
} |
|
enum | CartoTypePointOfInterestType {
POINone
, POIAirport
, POIBar
, POIBeach
,
POIBusStation
, POICafe
, POICamping
, POIFastFood
,
POIFuel
, POIGolfCourse
, POIHospital
, POIHotel
,
POIPharmacy
, POIPolice
, POIRestaurant
, POIShops
,
POISportsCenter
, POISupermarket
, POISwimmingPool
, POITourism
,
POITrainStation
} |
|
enum | CartoTypeWritableMapType { MemoryWritableMapType
, SQLiteWritableMapType
} |
|
enum | CartoTypeNoticePosition {
NoticePositionTopLeft
, NoticePositionTopRight
, NoticePositionBottomLeft
, NoticePositionBottomRight
,
NoticePositionTop
, NoticePositionRight
, NoticePositionLeft
, NoticePositionBottom
,
NoticePositionCenter
} |
|
enum | CartoTypeLetterCase { LetterCaseNone
, LetterCaseLower
, LetterCaseUpper
, LetterCaseTitle
} |
|
enum | CartoTypePointFormat { PointFormatUnknown = 0
, PointFormatMeter = 2
, PointFormatScaledDegree = 7
, PointFormatMeter32nds = 8
} |
|
Base types for use with the CartoType Objective C class CartoTypeFramework and others.
◆ CartoTypeColor
Colors are represented as 32-bit integers holding 8 bits each for the read, green, blue and alpha values.
◆ anonymous enum
Enumerator |
---|
CTBlack | A value for the color black.
|
CTDarkGray | A value for the color dark gray.
|
CTDarkRed | A value for the color dark red.
|
CTDarkGreen | A value for the color dark green.
|
CTDarkYellow | A value for the color dark yellow.
|
CTDarkBlue | A value for the color dark blue.
|
CTDarkMagenta | A value for the color dark magenta.
|
CTDarkCyan | A value for the color dark cyan.
|
CTRed | A value for the color red.
|
CTGreen | A value for the color green.
|
CTYellow | A value for the color yellow.
|
CTBlue | A value for the color blue.
|
CTMagenta | A value for the color magenta.
|
CTCyan | A value for the color cyan.
|
CTGray | A value for the color gray.
|
CTWhite | A value for the color white.
|
CTTransparentBlack | A value for the 'null color' transparent black.
|
◆ CartoTypeAddressPart
Address part codes used when searching for address parts separately.
Enumerator |
---|
AddressPartBuilding | Building names or numbers.
|
AddressPartFeature | Features or points of interest.
|
AddressPartStreet | Streets or roads.
|
AddressPartSubLocality | Suburbs and neighborhoods.
|
AddressPartLocality | Cities, towns and villages.
|
AddressPartIsland | Islands.
|
AddressPartSubAdminArea | Lower-level administrative areas like counties.
|
AddressPartAdminArea | Higher-level administrative areas like states.
|
AddressPartCountry | Countries.
|
AddressPartPostCode | Postal codes.
|
◆ CartoTypeAlign
Alignments used for multi-line text.
Enumerator |
---|
AlignCenter | Center the text.
|
AlignStandard | Align to the left for left-to-right text, to the right for right-to-left text.
|
AlignReverse | Align to the right for left-to-right text, to the left for right-to-left text.
|
AlignLeft | Align to the left and leave space on the right.
|
AlignRight | Align to the right and leave space on the left.
|
◆ CartoTypeClipOperation
Types of clipping done by the Clip functions of the Geometry class.
Enumerator |
---|
IntersectionClipOperation | Returns the intersection of two paths; commutative.
|
UnionClipOperation | Returns the union of two paths; commutative.
|
DifferenceClipOperation | Returns the difference of two paths; non-commutative.
|
XorClipOperation | Returns the exclusive-or of the two paths; that is, any regions which are in neither path; commutative.
|
◆ CartoTypeCoordType
Coordinate types used when specifying points in many CartoType functions.
Enumerator |
---|
DegreeCoordType | Longitude (x) and latitude (y) in degrees.
|
DisplayCoordType | Pixels on the display: x increases to the right and y increases downwards.
|
ScreenCoordType | Pixels on the display: x increases to the right and y increases downwards.
|
MapCoordType | Map coordinates: usually 32nds of projected meters.
|
MapMeterCoordType | Map meters: projected meters.
|
◆ CartoTypeFileType
File types of interest to CartoType.
Enumerator |
---|
PngFileType | PNG (Portable Network Graphics) image files.
|
JpegFileType | JPEG (Joint Photographic Expert Group) image files.
|
TiffFileType | TIFF (Tagged Image File Format) image files.
|
Ctm1FileType | CTM1 (CartoType Map Data Type 1) map data files.
|
CtmsFileType | CTMS (CartoType Map Data, Serialized) map data files.
|
KmlFileType | KML (Keyhole Markup Language) map data files.
|
CtsqlFileType | CTSQL (CartoType SQLite format) map data files.
|
CartoTypeRouteFileType | CTROUTE (CartoType XML route) files.
|
GpxFileType | GPX (GPS Exchange) files.
|
◆ CartoTypeLetterCase
The case of letters and strings in Latin, Greek, Cyrillic and other alphabetic scripts.
Enumerator |
---|
LetterCaseNone | A code used when the letter case is to be left as it is, or is irrelevant.
|
LetterCaseLower | The case of the letters 'a', 'b', c', etc.
|
LetterCaseUpper | The case of the letters 'A', 'B', 'C, etc.
|
LetterCaseTitle | The case of letters like U+01C8 'Lj' and a few others; also indicates that the first letter of each word should be changed to titlecase.
|
◆ CartoTypeMapObjectType
Map object types.
Enumerator |
---|
PointMapObjectType | A point in two-dimensional space.
|
LineMapObjectType | A line in two-dimensional space, consisting of one or more open contours.
|
PolygonMapObjectType | A polygon in two-dimensional space, consisting of one or more closed contours.
|
ArrayMapObjectType | Information arranged as an array of values, such as an image or height data.
|
MapObjectTypes | The total number of map object types. This is not an actual type.
|
NoMapObjectType | A value to use where a null type is needed.
|
◆ CartoTypeNoticePosition
Positions for notices like the legend or scale bar.
Enumerator |
---|
NoticePositionTopLeft | The top left corner of the display.
|
NoticePositionTopRight | The top right corner of the display.
|
NoticePositionBottomLeft | The bottom left corner of the display.
|
NoticePositionBottomRight | The bottom right corner of the display.
|
NoticePositionTop | The center of the top edge of the display.
|
NoticePositionRight | The center of the right side of the display.
|
NoticePositionLeft | The center of the left side of the display.
|
NoticePositionBottom | The center of the bottom edge of the display.
|
NoticePositionCenter | The center of the display.
|
◆ CartoTypePathIntersectionType
The ways two paths can intersect.
Enumerator |
---|
PathIntersectionTypeUnknown | The intersection type is unknown.
|
PathIntersectionTypeSeparate | The paths do not intersect.
|
PathIntersectionTypeContains | The first path contains the second.
|
PathIntersectionTypeContained | The second path contains the first.
|
◆ CartoTypePointFormat
The format used for points in CTM1 data. These numbers must fit into 8 bits for the moment because of the way they are stored in the CTM1 file. The values are discontinuous because several obsolete values have been discarded.
Enumerator |
---|
PointFormatUnknown | An arbitrary or unknown point format.
|
PointFormatMeter | Units are projected map meters.
|
PointFormatScaledDegree | Units are degrees as 11.21 fixed-point numbers. That is, there are 2^21 (2097152) units to a degree. This format is used only by the makemap tool, for representing unprojected map data.
|
PointFormatMeter32nds | Units are 32nds of projected map meters. This is the default format for CTM1 data.
|
◆ CartoTypePointOfInterestType
Types of place to search for in the 'find nearby' function.
Enumerator |
---|
POINone | No point of interest.
|
POIAirport | An airport.
|
POIBar | A bar, pub or other drinking establishment.
|
POIBeach | A beach.
|
POIBusStation | A bus station.
|
POICafe | A cafe or other place serving snacks and soft drinks.
|
POICamping | A camp site.
|
POIFastFood | A fast food restaurant, for example a place serving beefburgers.
|
POIFuel | A fuel station for motor vehicles.
|
POIGolfCourse | A golf course.
|
POIHospital | A hospital.
|
POIHotel | A hotel or motel.
|
POIPharmacy | A pharmacy or chemist's shop.
|
POIPolice | A police station.
|
POIRestaurant | A restaurant or other place serving hot meals.
|
POIShops | An area of retail shops.
|
POISportsCenter | A public sports center.
|
POISupermarket | A supermarket or other shop selling groceries.
|
POISwimmingPool | A public swimming pool.
|
POITourism | A tourist attraction.
|
POITrainStation | A train station.
|
◆ CartoTypePointType
The type of a CartoTypePathPoint.
Enumerator |
---|
OnCurvePointType | The point is on the curve.
|
QuadraticPointType | The point is a control point for a quadratic (conic) Bezier spline.
|
CubicPointType | The point is a control point for a cubic Bezier spline.
|
◆ CartoTypeStringMatchMethod
Flags and constants to tell text searching how to match search terms with found strings.
Enumerator |
---|
StringMatchPrefixFlag | A flag to match all strings for which the search term is a perfect match or a prefix.
|
StringMatchIgnoreSymbolsFlag | A flag to ignore all characters that are not letters, digits or whitespace when matching.
|
StringMatchFoldAccentsFlag | A flag to match accented and unaccented letters.
|
StringMatchFuzzyFlag | A flag to allow imperfect matches with a small number of omitted, incorrect or extra characters.
|
StringMatchFoldCaseFlag | A flag to fold letter case.
|
StringMatchIgnoreWhitespaceFlag | A flag to ignore whitespace.
|
StringMatchExact | Strings must match exactly.
|
StringMatchFoldCase | Fold case when matching strings.
|
StringMatchPrefix | The search term must be an exact match or a prefix of the found string.
|
StringMatchIgnoreNonAlphanumerics | Ignore characters that are not letters, digits or whitespace.
|
StringMatchLoose | Loose matching: ignore non-alphanumerics and fold accents and case.
|
StringMatchFuzzy | Allow fuzzy matches: ignore non-alphanumerics, fold accents and allow imperfect matches.
|
◆ CartoTypeWritableMapType
Types of writable maps.
Enumerator |
---|
MemoryWritableMapType | A writable map stored in memory.
|
SQLiteWritableMapType | A writable map stored in an SQLite database.
|