00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087 #ifndef INC_MI32_MSTYLE_H
00088 #define INC_MI32_MSTYLE_H
00089
00090 #ifndef GENERATING_DOXYGEN_OUTPUT
00091 class TRANS2D_MAPGEN;
00092 #endif
00093
00094 #define MLINE_FEATURE_NEXTVERTEX 1
00095 #define MLINE_FEATURE_PREVVERTEX 2
00096 #define MLINE_FEATURE_LINEEND 3
00097 #define MLINE_FEATURE_LINEBEGIN 4
00098
00099 typedef void *MLINEHANDLE;
00100 typedef void *LABELHANDLE;
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114 #define POSITION_DELETE 0
00115 #define POSITION_1 1
00116 #define POSITION_2 2
00117 #define POSITION_3 3
00118 #define POSITION_4 4
00119 #define POSITION_5 5
00120 #define POSITION_6 6
00121 #define POSITION_7 7
00122 #define POSITION_8 8
00123 #define POSITION_9 9
00124 #define POSITION_10 10
00125 #define POSITION_11 11
00126 #define POSITION_12 12
00127 #define POSITION_13 13
00128 #define POSITION_14 14
00129 #define POSITION_15 15
00130 #define POSITION_16 16
00131 #define POSITION_17 17
00132 #define POSITION_LAST POSITION_17
00133
00134 #define POSITION_CENTER POSITION_17
00135 #define POSITION_LEFTBOTTOM POSITION_1
00136 #define POSITION_RIGHTBOTTOM POSITION_2
00137 #define POSITION_LEFTUP POSITION_3
00138 #define POSITION_RIGHTUP POSITION_4
00139 #define POSITION_CENTERLEFT POSITION_5
00140 #define POSITION_CENTERBOTTOM POSITION_6
00141 #define POSITION_CENTERRIGHT POSITION_7
00142 #define POSITION_CENTERUP POSITION_8
00143
00144 #if defined(__cplusplus)
00145 extern "C" {
00146 #endif
00147
00151
00152
00153
00172 int MlabelPlaceInit (
00173 LABELHANDLE *handle,
00174 const DRECT2D *space,
00175 INT32 NumLabelsInit
00176 );
00177
00187 int MlabelPlaceAddRect (
00188 LABELHANDLE handle,
00189 DRECT2D *Label,
00190 INT32 ElemNum,
00191 DOUBLE Rank
00192 );
00193
00210 int MlabelPlaceAddRectAtAnchor (
00211 LABELHANDLE handle,
00212 DRECT2D *Label,
00213 INT32 ElemNum,
00214 DOUBLE Rank,
00215 DPOINT2D *Anchor
00216 );
00217
00234 int MlabelPlaceAddRectAtPosition (
00235 LABELHANDLE handle,
00236 DRECT2D *Label,
00237 INT32 ElemNum,
00238 DOUBLE Rank,
00239 int PosIndex
00240 );
00241
00247 int MlabelPlaceOptimize (
00248 LABELHANDLE handle,
00249 int DoOptimize,
00250 int DoDelete,
00251 INT32 *NumObscured
00252 );
00253
00257 int MlabelPlaceGetLabelPosition (
00258 LABELHANDLE handle,
00259 INT32 ElemNum,
00260 DRECT2D *rect
00261 );
00262
00264 int MlabelPlaceFree (
00265 LABELHANDLE handle
00266 );
00267
00272 int MlabelPlaceGetPositionFactors (
00273 LABELHANDLE handle,
00274 DOUBLE *PosWeight,
00275
00276
00277 UINT8 startentry,
00278 UINT8 numentries
00279 );
00280
00282 int MlabelPlaceSetPositionFactors (
00283 LABELHANDLE handle,
00284 DOUBLE *PosWeight,
00285
00286
00287 UINT8 startentry,
00288 UINT8 numentries
00289 );
00290
00292
00293 #if defined(__cplusplus)
00294 }
00295 #endif
00296
00297 #endif