Home
last modified time | relevance | path

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

12

/dports/graphics/rigsofrods-pagedgeometry/ogre-pagedgeometry-1.2.0/source/
H A DPropertyMaps.cpp132 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getDensityAt_Unfiltered()
145 size_t xindex = size_t(mapWidth * (x - mapBounds.left) / mapBounds.width()); in _getDensityAt_Unfiltered()
146 size_t zindex = size_t(mapHeight * (z - mapBounds.top) / mapBounds.height()); in _getDensityAt_Unfiltered()
159 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getDensityAt_Bilinear()
173 Ogre::Real xIndexFloat = (mapWidth * (x - mapBounds.left) / mapBounds.width()) - 0.5f; in _getDensityAt_Bilinear()
174 Ogre::Real zIndexFloat = (mapHeight * (z - mapBounds.top) / mapBounds.height()) - 0.5f; in _getDensityAt_Bilinear()
325 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getColorAt()
333 uint32 xindex = uint32(mapWidth * (x - mapBounds.left) / mapBounds.width()); in _getColorAt()
334 uint32 zindex = uint32(mapHeight * (z - mapBounds.top) / mapBounds.height()); in _getColorAt()
365 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getColorAt_Bilinear()
[all …]
H A DGrassLoader.cpp136 if(layer->mapBounds.right < page.bounds.left || layer->mapBounds.left > page.bounds.right || in loadPage()
137 layer->mapBounds.bottom < page.bounds.top || layer->mapBounds.top > page.bounds.bottom) in loadPage()
255 color = layer->colorMap->getColorAt(x, z, layer->mapBounds); in generateGrass_QUAD()
422 color = layer->colorMap->getColorAt(x, z, layer->mapBounds); in generateGrass_CROSSQUADS()
644 … uint32 color = layer->colorMap ? layer->colorMap->getColorAt(x, z, layer->mapBounds) : 0xFFFFFFFF; in generateGrass_SPRITE()
872 …else if (x >= mapBounds.left && x <= mapBounds.right && z >= mapBounds.top && z <= mapBounds.botto… in _populateGrassList_Uniform()
904 …} else if (x >= mapBounds.left && x <= mapBounds.right && z >= mapBounds.top && z <= mapBounds.bot… in _populateGrassList_Uniform()
934 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Unfiltered(x, z, mapBounds)){ in _populateGrassList_UnfilteredDM()
961 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Unfiltered(x, z, mapBounds)){ in _populateGrassList_UnfilteredDM()
1006 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Bilinear(x, z, mapBounds)){ in _populateGrassList_BilinearDM()
[all …]
/dports/games/stuntrally/stuntrally-2.6.1/source/paged-geom/
H A DPropertyMaps.cpp182 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getDensityAt_Unfiltered()
194 size_t xindex = size_t(mapWidth * (x - mapBounds.left) / mapBounds.width()); in _getDensityAt_Unfiltered()
195 size_t zindex = size_t(mapHeight * (z - mapBounds.top) / mapBounds.height()); in _getDensityAt_Unfiltered()
208 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getDensityAt_Bilinear()
221 Ogre::Real xIndexFloat = (mapWidth * (x - mapBounds.left) / mapBounds.width()) - 0.5f; in _getDensityAt_Bilinear()
222 Ogre::Real zIndexFloat = (mapHeight * (z - mapBounds.top) / mapBounds.height()) - 0.5f; in _getDensityAt_Bilinear()
373 if(x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getColorAt()
381 uint32 xindex = uint32(mapWidth * (x - mapBounds.left) / mapBounds.width()); in _getColorAt()
382 uint32 zindex = uint32(mapHeight * (z - mapBounds.top) / mapBounds.height()); in _getColorAt()
413 if (x < mapBounds.left || x >= mapBounds.right || z < mapBounds.top || z >= mapBounds.bottom) in _getColorAt_Bilinear()
[all …]
H A DPropertyMaps.h94 Ogre::Real getDensityAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds) in getDensityAt() argument
97 return _getDensityAt_Unfiltered(x, z, mapBounds); in getDensityAt()
99 return _getDensityAt_Bilinear(x, z, mapBounds); in getDensityAt()
102 …eal _getDensityAt_Unfiltered(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
103 …:Real _getDensityAt_Bilinear(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
172 Ogre::uint32 getColorAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds) in getColorAt() argument
174 …return filter == MAPFILTER_NONE ? _getColorAt(x, z, mapBounds) : _getColorAt_Bilinear(x, z, mapBou… in getColorAt()
182 …32 c = filter == MAPFILTER_NONE ? _getColorAt(x, z, mapBounds) : _getColorAt_Bilinear(x, z, mapBou… in getColorAt_Unpacked()
216 … Ogre::uint32 _getColorAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
219 …:uint32 _getColorAt_Bilinear(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
[all …]
H A DGrassLoader.cpp143 if (layer->mapBounds.right < page.bounds.left || layer->mapBounds.left > page.bounds.right || in loadPage()
144 layer->mapBounds.bottom < page.bounds.top || layer->mapBounds.top > page.bounds.bottom) in loadPage()
261 color = layer->colorMap->getColorAt(x, z, layer->mapBounds); in generateGrass_QUAD()
428 color = layer->colorMap->getColorAt(x, z, layer->mapBounds); in generateGrass_CROSSQUADS()
650 … uint32 color = layer->colorMap ? layer->colorMap->getColorAt(x, z, layer->mapBounds) : 0xFFFFFFFF; in generateGrass_SPRITE()
885 …else if (x >= mapBounds.left && x <= mapBounds.right && z >= mapBounds.top && z <= mapBounds.botto… in _populateGrassList_Uniform()
917 …} else if (x >= mapBounds.left && x <= mapBounds.right && z >= mapBounds.top && z <= mapBounds.bot… in _populateGrassList_Uniform()
947 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Unfiltered(x, z, mapBounds)){ in _populateGrassList_UnfilteredDM()
974 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Unfiltered(x, z, mapBounds)){ in _populateGrassList_UnfilteredDM()
1019 if (parent->rTable->getUnitRandom() < densityMap->_getDensityAt_Bilinear(x, z, mapBounds)){ in _populateGrassList_BilinearDM()
[all …]
H A DGrassLoader.h417 mapBounds = bounds; in setMapBounds()
541 TBounds mapBounds; variable
/dports/graphics/rigsofrods-pagedgeometry/ogre-pagedgeometry-1.2.0/include/
H A DPropertyMaps.h96 Ogre::Real getDensityAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds) in getDensityAt() argument
99 return _getDensityAt_Unfiltered(x, z, mapBounds); in getDensityAt()
101 return _getDensityAt_Bilinear(x, z, mapBounds); in getDensityAt()
104 …eal _getDensityAt_Unfiltered(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
105 …:Real _getDensityAt_Bilinear(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
173 Ogre::uint32 getColorAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds) in getColorAt() argument
175 …return filter == MAPFILTER_NONE ? _getColorAt(x, z, mapBounds) : _getColorAt_Bilinear(x, z, mapBou… in getColorAt()
183 …32 c = filter == MAPFILTER_NONE ? _getColorAt(x, z, mapBounds) : _getColorAt_Bilinear(x, z, mapBou… in getColorAt_Unpacked()
217 … Ogre::uint32 _getColorAt(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
220 …:uint32 _getColorAt_Bilinear(Ogre::Real x, Ogre::Real z, const Ogre::TRect<Ogre::Real> &mapBounds);
[all …]
H A DGrassLoader.h416 mapBounds = bounds; in setMapBounds()
540 TBounds mapBounds; variable
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/src/ui/widgets/
H A Dmapoutlinewidget.cpp31 Rectanglei mapBounds; in DENG_GUI_PIMPL() local
75 mapBounds = Rectanglei(); in DENG_GUI_PIMPL()
95 mapBounds.include(line.start); in DENG_GUI_PIMPL()
99 mapBounds = Rectanglei(line.start, line.start); in DENG_GUI_PIMPL()
101 mapBounds.include(line.end); in DENG_GUI_PIMPL()
117 if (mapBounds.isNull()) return Matrix4f(); in DENG_GUI_PIMPL()
120 float const scale = de::min(rect.width() / mapBounds.width(), in DENG_GUI_PIMPL()
121 rect.height() / mapBounds.height()); in DENG_GUI_PIMPL()
124 Matrix4f::translate(Vector2f(-mapBounds.middle())); in DENG_GUI_PIMPL()
/dports/games/doomsday/doomsday-2.3.1/doomsday/tools/shell/src/
H A Dstatuswidget.cpp37 QRect mapBounds; in DENG2_PIMPL() local
51 mapBounds = QRect(); in DENG2_PIMPL()
84 d->mapBounds = QRect(); in setMapOutline()
103 d->mapBounds = QRect(a, QSize(1, 1)); in setMapOutline()
105 d->mapBounds = d->mapBounds.united(QRect(a, QSize(1, 1))); in setMapOutline()
107 d->mapBounds = d->mapBounds.united(QRect(b, QSize(1, 1))); in setMapOutline()
149 if (!d->mapBounds.isNull()) in paintEvent()
151 painter.setWindow(d->mapBounds); in paintEvent()
154 float mapRatio = float(d->mapBounds.width()) / float(d->mapBounds.height()); in paintEvent()
172 float const factor = float(d->mapBounds.width()) / float(viewSize.width()); in paintEvent()
/dports/graphics/tiled/tiled-1.7.2/src/libtiled/
H A Dhexagonalrenderer.cpp70 QRect mapBounds; in mapBoundingRect() local
76 mapBounds = mapBounds.united(tileLayer->bounds()); in mapBoundingRect()
79 if (mapBounds.size() == QSize(0, 0)) in mapBoundingRect()
80 mapBounds.setSize(QSize(1, 1)); in mapBoundingRect()
82 mapBounds = QRect(0, 0, map()->width(), map()->height()); in mapBoundingRect()
87 QSize size(mapBounds.width() * p.columnWidth + p.sideOffsetX, in mapBoundingRect()
89 QPoint origin(mapBounds.x() * p.columnWidth, in mapBoundingRect()
93 if (mapBounds.width() > 1) in mapBoundingRect()
100 QPoint origin(mapBounds.x() * (p.tileWidth + p.sideLengthX), in mapBoundingRect()
101 mapBounds.y() * p.rowHeight); in mapBoundingRect()
[all …]
H A Dorthogonalrenderer.cpp50 QRect mapBounds; in mapBoundingRect() local
54 mapBounds = mapBounds.united(tileLayer->bounds()); in mapBoundingRect()
56 if (mapBounds.size() == QSize(0, 0)) in mapBoundingRect()
57 mapBounds.setSize(QSize(1, 1)); in mapBoundingRect()
59 return QRect(mapBounds.x() * map()->tileWidth(), in mapBoundingRect()
60 mapBounds.y() * map()->tileHeight(), in mapBoundingRect()
61 mapBounds.width() * map()->tileWidth(), in mapBoundingRect()
62 mapBounds.height() * map()->tileHeight()); in mapBoundingRect()
H A Disometricrenderer.cpp50 QRect mapBounds; in mapBoundingRect() local
55 mapBounds = mapBounds.united(tileLayer->bounds()); in mapBoundingRect()
58 if (mapBounds.size() == QSize(0, 0)) in mapBoundingRect()
59 mapBounds.setSize(QSize(1, 1)); in mapBoundingRect()
61 const int origin = mapBounds.x() + mapBounds.y(); in mapBoundingRect()
62 const int side = mapBounds.width() + mapBounds.height(); in mapBoundingRect()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Game/Graphics/
H A DViewport.cs48 readonly Rectangle mapBounds; field in OpenRA.Graphics.Viewport
137 if (CenterLocation.Y <= mapBounds.Top) in GetBlockedDirections()
139 if (CenterLocation.X <= mapBounds.Left) in GetBlockedDirections()
141 if (CenterLocation.Y >= mapBounds.Bottom) in GetBlockedDirections()
143 if (CenterLocation.X >= mapBounds.Right) in GetBlockedDirections()
165 mapBounds = new Rectangle(0, 0, width, height); in Viewport()
172 mapBounds = Rectangle.FromLTRB(tl.X, tl.Y, br.X, br.Y); in Viewport()
329 CenterLocation = worldRenderer.ScreenPxPosition(pos).Clamp(mapBounds); in Center()
342 CenterLocation = CenterLocation.Clamp(mapBounds); in Scroll()
/dports/games/dhewm3/dhewm3-1.5.1/neo/tools/compilers/dmap/
H A Dmap.cpp514 idBounds mapBounds; in LoadDMapFile() local
556 mapBounds.Clear(); in LoadDMapFile()
560 mapBounds.AddBounds( prim->brush->bounds ); in LoadDMapFile()
572 …ntf( "size: %5.0f,%5.0f,%5.0f to %5.0f,%5.0f,%5.0f\n", mapBounds[0][0], mapBounds[0][1],mapBounds[… in LoadDMapFile()
573 mapBounds[1][0], mapBounds[1][1], mapBounds[1][2] ); in LoadDMapFile()
/dports/graphics/digikam/digikam-7.4.0/core/utilities/geolocation/geoiface/tiles/
H A Dtilegrouper.cpp137 …QList<QPair<GeoCoordinates, GeoCoordinates> > mapBounds = d->currentBackend->getNormalizedBounds(); in updateClusters() local
173 for (int i = 0 ; i < mapBounds.count() ; ++i) in updateClusters()
175 s->markerModel->prepareTiles(mapBounds.at(i).first, mapBounds.at(i).second, markerLevel); in updateClusters()
181 … for (AbstractMarkerTiler::NonEmptyIterator tileIterator(s->markerModel, markerLevel, mapBounds) ; in updateClusters()
/dports/graphics/digikam/digikam-7.4.0/core/libs/dngwriter/extra/dng_sdk/
H A Ddng_gain_map.cpp47 const dng_rect &mapBounds,
89 const dng_rect &mapBounds, in dng_gain_map_interpolator() argument
96 , fScale (1.0 / mapBounds.H (), in dng_gain_map_interpolator()
97 1.0 / mapBounds.W ()) in dng_gain_map_interpolator()
99 , fOffset (0.5 - mapBounds.t, in dng_gain_map_interpolator()
100 0.5 - mapBounds.l) in dng_gain_map_interpolator()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/client/src/world/bsp/
H A Dpartitioner.cpp1108 static AABox blockmapBounds(AABoxd const &mapBounds) in blockmapBounds() argument
1111 mapBoundsi.minX = int( de::floor(mapBounds.minX) ); in blockmapBounds()
1112 mapBoundsi.minY = int( de::floor(mapBounds.minY) ); in blockmapBounds()
1113 mapBoundsi.maxX = int( de::ceil(mapBounds.maxX) ); in blockmapBounds()
1114 mapBoundsi.maxY = int( de::ceil(mapBounds.maxY) ); in blockmapBounds()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/plugins/doom64/src/
H A Dst_stuff.cpp336 AABoxd const *mapBounds = reinterpret_cast<AABoxd *>(DD_GetVariable(DD_MAP_BOUNDING_BOX)); in initAutomapForCurrentMap() local
337 map.setMapBounds(mapBounds->minX, mapBounds->maxX, mapBounds->minY, mapBounds->maxY); in initAutomapForCurrentMap()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/plugins/heretic/src/
H A Dst_stuff.cpp728 AABoxd const *mapBounds = reinterpret_cast<AABoxd *>(DD_GetVariable(DD_MAP_BOUNDING_BOX)); in initAutomapForCurrentMap() local
729 automap.setMapBounds(mapBounds->minX, mapBounds->maxX, mapBounds->minY, mapBounds->maxY); in initAutomapForCurrentMap()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/plugins/doom/src/
H A Dst_stuff.cpp733 AABoxd const *mapBounds = reinterpret_cast<AABoxd *>(DD_GetVariable(DD_MAP_BOUNDING_BOX)); in initAutomapForCurrentMap() local
734 automap.setMapBounds(mapBounds->minX, mapBounds->maxX, mapBounds->minY, mapBounds->maxY); in initAutomapForCurrentMap()
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/plugins/hexen/src/
H A Dst_stuff.cpp600 AABoxd const *mapBounds = reinterpret_cast<AABoxd *>(DD_GetVariable(DD_MAP_BOUNDING_BOX)); in initAutomapForCurrentMap() local
601 automap.setMapBounds(mapBounds->minX, mapBounds->maxX, mapBounds->minY, mapBounds->maxY); in initAutomapForCurrentMap()
/dports/graphics/tiled/tiled-1.7.2/src/tiled/
H A Dpropertybrowser.cpp1006 QRect mapBounds(QPoint(0, 0), mMapDocument->map()->size()); in applyMapValue() local
1011 mapBounds = mapBounds.united(tileLayer->region().boundingRect()); in applyMapValue()
1014 if (mapBounds.size() == QSize(0, 0)) in applyMapValue()
1015 mapBounds.setSize(QSize(1, 1)); in applyMapValue()
1017 mMapDocument->resizeMap(mapBounds.size(), -mapBounds.topLeft(), false); in applyMapValue()
H A Dmainwindow.cpp1906 QRect mapBounds; in resizeMap() local
1911 mapBounds = mapBounds.united(tileLayer->bounds()); in resizeMap()
1914 if (!mapBounds.isEmpty()) { in resizeMap()
1915 mapSize = mapBounds.size(); in resizeMap()
1916 mapStart = mapBounds.topLeft(); in resizeMap()
/dports/www/py-protego/Protego-0.1.16/tests/test_data/
H A Dwww.zillow.com81 Disallow: /homes/*mapBounds*

12