Home
last modified time | relevance | path

Searched refs:MS_NINT (Results 1 – 25 of 25) sorted by relevance

/dports/graphics/mapserver/mapserver-7.6.4/
H A Dmapscale.c48 return(MS_NINT(d*10000)/10000.0); in roundInterval()
50 return(MS_NINT(d*1000)/1000.0); in roundInterval()
52 return(MS_NINT(d*100)/100.0); in roundInterval()
54 return(MS_NINT(d*10)/10.0); in roundInterval()
56 return(MS_NINT(d)); in roundInterval()
58 return(MS_NINT(d/10) * 10); in roundInterval()
60 return(MS_NINT(d/100) * 100); in roundInterval()
62 return(MS_NINT(d/1000) * 1000); in roundInterval()
64 return(MS_NINT(d/10000) * 10000); in roundInterval()
66 return(MS_NINT(d/100000) * 100000); in roundInterval()
[all …]
H A Dmaplegend.c200 marker.x = dstX + MS_NINT(width / 2.0); in msDrawLegendIcon()
201 marker.y = dstY + MS_NINT(height / 2.0); in msDrawLegendIcon()
356 marker.x = dstX + MS_NINT(width / 2.0); in msDrawLegendIcon()
357 marker.y = dstY + MS_NINT(height / 2.0); in msDrawLegendIcon()
391 marker.x = dstX + MS_NINT(width / 2.0); in msDrawLegendIcon()
392 marker.y = dstY + MS_NINT(height / 2.0); in msDrawLegendIcon()
868 point.x = MS_NINT(legendSymbol->sizex/2.0); in msEmbedLegend()
876 point.x = MS_NINT(map->width/2.0); in msEmbedLegend()
881 point.y = MS_NINT(legendSymbol->sizey/2.0); in msEmbedLegend()
884 point.x = MS_NINT(legendSymbol->sizex/2.0); in msEmbedLegend()
[all …]
H A Dsym2img.c115 p.line[0].point[0].x = MS_NINT(j + CELLSIZE/2); in main()
116 p.line[0].point[0].y = MS_NINT(i + CELLSIZE/2); in main()
125 p.line[0].point[1].x = j + MS_NINT((CELLSIZE-LBUF)/3.0) - 1; in main()
127 p.line[0].point[2].x = j + MS_NINT(2*(CELLSIZE-LBUF)/3.0) - 1; in main()
H A Dmapimagemap.c358 size = MS_NINT(size*scalefactor); in msDrawMarkerSymbolIM()
360 size = MS_NINT(style->size*scalefactor); in msDrawMarkerSymbolIM()
417 offset_x = MS_NINT(p->x - d*.5*symbol->sizex + ox); in msDrawMarkerSymbolIM()
418 offset_y = MS_NINT(p->y - d*.5*symbol->sizey + oy); in msDrawMarkerSymbolIM()
448 MS_NINT(d*symbol->points[j].x + offset_x), in msDrawMarkerSymbolIM()
449 MS_NINT(d*symbol->points[j].y + offset_y) ); in msDrawMarkerSymbolIM()
483 size = MS_NINT(size*scalefactor); in msDrawLineSymbolIM()
485 size = MS_NINT(style->size*scalefactor); in msDrawLineSymbolIM()
563 size = MS_NINT(size*scalefactor); in msDrawShadeSymbolIM()
565 size = MS_NINT(style->size*scalefactor); in msDrawShadeSymbolIM()
H A Dmapmvt.c325 mvt_feature->geometry[idx++] = PARAMETER(MS_NINT(shape->line[i].point[j].x)-lastx); in mvtWriteShape()
326 mvt_feature->geometry[idx++] = PARAMETER(MS_NINT(shape->line[i].point[j].y)-lasty); in mvtWriteShape()
327 lastx = MS_NINT(shape->line[i].point[j].x); in mvtWriteShape()
328 lasty = MS_NINT(shape->line[i].point[j].y); in mvtWriteShape()
348 mvt_feature->geometry[idx++] = PARAMETER(MS_NINT(shape->line[i].point[j].x)-lastx); in mvtWriteShape()
349 mvt_feature->geometry[idx++] = PARAMETER(MS_NINT(shape->line[i].point[j].y)-lasty); in mvtWriteShape()
350 lastx = MS_NINT(shape->line[i].point[j].x); in mvtWriteShape()
351 lasty = MS_NINT(shape->line[i].point[j].y); in mvtWriteShape()
H A Dfontcache.c286 if(MS_NINT(size * 96.0/72.0) != face->face->size->metrics.x_ppem) { in msGetGlyphByIndex()
287 FT_Set_Pixel_Sizes(face->face,0,MS_NINT(size * 96/72.0)); in msGetGlyphByIndex()
336 if(MS_NINT(glyph->key.size * 96.0/72.0) != face->face->size->metrics.x_ppem) { in msGetGlyphOutline()
337 FT_Set_Pixel_Sizes(face->face,0,MS_NINT(glyph->key.size * 96/72.0)); in msGetGlyphOutline()
H A Dmaprendering.c250 glyphc = msGetGlyphByIndex(face, MS_MAX(MS_NINT(s->scale),1), unicode); in getTile()
314 glyphc = msGetGlyphByIndex(face, MS_MAX(MS_NINT(s->scale),1), unicode); in getTile()
387 glyphc = msGetGlyphByIndex(face, MS_MAX(MS_NINT(style->scale),1), unicode); in msImagePolylineMarkers()
641 pw = MS_NINT(symbol->sizex * s.scale); in msDrawLineSymbol()
642 ph = MS_NINT(symbol->sizey * s.scale); in msDrawLineSymbol()
791 pw = MS_MAX(MS_NINT(s.gap),symbol->sizex * s.scale); in msDrawShadeSymbol()
792 ph = MS_MAX(MS_NINT(s.gap),symbol->sizey * s.scale); in msDrawShadeSymbol()
794 pw = MS_NINT(symbol->sizex * s.scale); in msDrawShadeSymbol()
795 ph = MS_NINT(symbol->sizey * s.scale); in msDrawShadeSymbol()
925 glyphc = msGetGlyphByIndex(face, MS_MAX(MS_NINT(s.scale),1), unicode); in msDrawMarkerSymbol()
[all …]
H A Dmapcompositingfilter.c178 irad = MS_NINT(irad*map->resolution/map->defresolution); in msApplyCompositingFilter()
201 xtrans = MS_NINT(xtrans*map->resolution/map->defresolution); in msApplyCompositingFilter()
202 ytrans = MS_NINT(ytrans*map->resolution/map->defresolution); in msApplyCompositingFilter()
H A Dmapcairo.c289 cairo_translate (r->cr, MS_NINT(x-0.5*b->width),MS_NINT(y-0.5*b->height)); in renderPixmapSymbolCairo()
402 cairo_translate(r->cr, MS_NINT(x-0.5 * w), MS_NINT(y -0.5 * h)); in renderTileCairo()
417 cairo_set_font_size(r->cr,MS_NINT(tp->glyph_size * 96.0/72.0)); in renderGlyphs2Cairo()
427 cairo_set_font_size(r->cr,MS_NINT(tp->glyph_size * 96.0/72.0)); in renderGlyphs2Cairo()
1043 surface_w = surface_h = MS_NINT(MS_MAX(height, width) * 1.415); in msRenderRasterizedSVGSymbol()
H A Dmaplabel.c76 tgret->glyph_size = MS_NINT(MS_MIN(tgret->glyph_size, ts->label->maxsize * ts->resolutionfactor)); in msComputeTextPath()
222 x = MS_NINT(point->x); in msAddLabelGroup()
223 y = MS_NINT(point->y); in msAddLabelGroup()
406 int x = MS_NINT(point->x); in msAddLabel()
407 int y = MS_NINT(point->y); in msAddLabel()
426 int x = MS_NINT(ts->textpath->glyphs[i].pnt.x); in msAddLabel()
427 int y = MS_NINT(ts->textpath->glyphs[i].pnt.y); in msAddLabel()
H A Dmapagg.cpp245 r->dash->add_dash(MS_MAX(1,MS_NINT(style->pattern[i])), in agg2RenderLine()
246 MS_MAX(1,MS_NINT(style->pattern[i + 1]))); in agg2RenderLine()
248 patt_length += MS_MAX(1,MS_NINT(style->pattern[i])) + in agg2RenderLine()
249 MS_MAX(1,MS_NINT(style->pattern[i + 1])); in agg2RenderLine()
683 int ims_2 = MS_NINT(MS_MAX(pixmap->width,pixmap->height)*style->scale*1.415)/2+1; in agg2RenderPixmapSymbol()
695 r->m_renderer_base.blend_from(pf,0,MS_NINT(x-pixmap->width/2.),MS_NINT(y-pixmap->height/2.)); in agg2RenderPixmapSymbol()
H A Dmapserver.h332 # define MS_NINT(x) lrint(x) macro
336 static __inline long int MS_NINT (double flt)
348 static __inline long int MS_NINT( double __x )
357 # define MS_NINT(x) MS_NINT_GENERIC(x)
414 #define MS_MAP2IMAGE_X(x,minx,cx) (MS_NINT(((x) - (minx))/(cx)))
415 #define MS_MAP2IMAGE_Y(y,maxy,cy) (MS_NINT(((maxy) - (y))/(cy)))
420 #define MS_MAP2IMAGE_X_IC(x,minx,icx) (MS_NINT(((x) - (minx))*(icx)))
421 #define MS_MAP2IMAGE_Y_IC(y,maxy,icy) (MS_NINT(((maxy) - (y))*(icy)))
428 #define MS_MAP2IMAGE_X_IC_SNAP(x,minx,icx,res) ((MS_NINT(((x) - (minx))*(icx)*(res)))/(res))
429 #define MS_MAP2IMAGE_Y_IC_SNAP(y,maxy,icy,res) ((MS_NINT(((maxy) - (y))*(icy)*(res)))/(res))
H A Dmapkmlrenderer.cpp834 sprintf(layerHexColor, "%02xffffff", (unsigned int)MS_NINT(layer->compositer->opacity*2.55)); in createGroundOverlayNode()
1011 LineStyle[i].color->alpha = MS_NINT(currentLayer->compositer->opacity*2.55); in lookupPlacemarkStyle()
1037 PolygonColor.alpha = MS_NINT(currentLayer->compositer->opacity*2.55); in lookupPlacemarkStyle()
1059 LabelColor.alpha = MS_NINT(currentLayer->compositer->opacity*2.55); in lookupPlacemarkStyle()
H A Dmapchart.c407 diameter=MS_NINT( in msDrawPieChartLayer()
413 diameter=MS_NINT( in msDrawPieChartLayer()
H A Dmapraster.c1096 x21 = MS_NINT((x1 + x2)/2); in msDrawReferenceMap()
1097 y21 = MS_NINT((y1 + y2)/2); in msDrawReferenceMap()
H A Dmaputil.c79 *attribute = MS_NINT(atof(value)); /*use atof instead of atoi as a fix for bug 2394*/ in bindIntegerAttribute()
247 alpha = MS_NINT(style->opacity*2.55); in bindStyle()
903 *height = MS_NINT((rect.maxy - rect.miny)/((rect.maxx - rect.minx)/(*width))); in msAdjustImage()
905 *width = MS_NINT((rect.maxx - rect.minx)/((rect.maxy - rect.miny)/(*height))); in msAdjustImage()
H A Dmapwcs20.c4523 widthFromComputationInImageCRS = MS_NINT((part * map->width) / total); in msWCSGetCoverage20()
4528 heightFromComputationInImageCRS = MS_NINT((part * map->height) / total); in msWCSGetCoverage20()
4581 params->width = MS_NINT((bbox.maxx - bbox.minx) / params->resolutionX); in msWCSGetCoverage20()
4588 params->width = MS_NINT((part * map->width) / total); in msWCSGetCoverage20()
4605 params->height = MS_NINT((bbox.maxy - bbox.miny) / params->resolutionY); in msWCSGetCoverage20()
4612 params->height = MS_NINT((part * map->height) / total); in msWCSGetCoverage20()
H A Dmapparser.y638 | ROUND '(' math_exp ',' math_exp ')' { $$ = (MS_NINT($3/$5))*$5; }
H A Dtextlayout.c320 int reqsize = MS_NINT(font_data->glyph_size *96.0 / 72.0); in get_hb_font()
H A Dmapprimitive.c1147 p.x = MS_NINT(a.x + r*(b.x-a.x)); in generateLineIntersection()
1148 p.y = MS_NINT(a.y + r*(b.y-a.y)); in generateLineIntersection()
H A Dmapparser.c2449 { (yyval.dblval) = (MS_NINT((yyvsp[-3].dblval)/(yyvsp[-1].dblval)))*(yyvsp[-1].dblval); } in yyparse()
H A Dmapogcsld.c1301 int alpha = MS_NINT(psStyle->opacity*2.55); in msSLDParseOgcExpression()
H A Dmapdraw.c2133 … clip_buf = MS_MAX(clip_buf,MS_NINT(MS_MAX(maxsize * layer->scalefactor, maxunscaledsize) + 1)); in msDrawShape()
H A Dmapfile.c2467 alpha = MS_NINT(style->opacity*2.55); in loadStyle()
/dports/graphics/mapserver/mapserver-7.6.4/mapscript/php/
H A Dstyle.c246 … alpha = MS_NINT(php_style->style->opacity*2.55); in PHP_METHOD()