Home
last modified time | relevance | path

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

1234567

/dports/graphics/opencv/opencv-4.5.3/samples/java/tutorial_code/ImgTrans/remap/
H A DRemapDemo.java9 private Mat mapX = new Mat(); field in Remap
16 float buffX[] = new float[(int) (mapX.total() * mapX.channels())]; in updateMap()
17 mapX.get(0, 0, buffX); in updateMap()
22 for (int i = 0; i < mapX.rows(); i++) { in updateMap()
23 for (int j = 0; j < mapX.cols(); j++) { in updateMap()
26 …if( j > mapX.cols()*0.25 && j < mapX.cols()*0.75 && i > mapX.rows()*0.25 && i < mapX.rows()*0.75 )… in updateMap()
27 buffX[i*mapX.cols() + j] = 2*( j - mapX.cols()*0.25f ) + 0.5f; in updateMap()
30 buffX[i*mapX.cols() + j] = 0; in updateMap()
35 buffX[i*mapX.cols() + j] = j; in updateMap()
51 mapX.put(0, 0, buffX); in updateMap()
[all …]
/dports/graphics/qgis/qgis-3.22.3/tests/src/app/
H A Dtestqgsmaptoolutils.h62 QPoint mapToScreen( double mapX, double mapY ) in mapToScreen() argument
68 void mouseMove( double mapX, double mapY ) in mouseMove() argument
70 QgsMapMouseEvent e( mMapTool->canvas(), QEvent::MouseMove, mapToScreen( mapX, mapY ) ); in mouseMove()
96 mousePress( mapX, mapY, button, stateKey, snap );
97 mouseRelease( mapX, mapY, button, stateKey, snap );
104 mouseClick( mapX, mapY, button, stateKey, snap );
111 mouseRelease( mapX, mapY, button, stateKey );
163 QPoint mapToScreen( double mapX, double mapY ) in mapToScreen() argument
169 void mouseMove( double mapX, double mapY ) in mouseMove() argument
207 mousePress( mapX, mapY, button, stateKey, snap );
[all …]
/dports/graphics/qgis-ltr/qgis-3.16.16/tests/src/app/
H A Dtestqgsmaptoolutils.h62 QPoint mapToScreen( double mapX, double mapY ) in mapToScreen() argument
64 QgsPointXY pt = mMapTool->canvas()->mapSettings().mapToPixel().transform( mapX, mapY ); in mapToScreen()
68 void mouseMove( double mapX, double mapY ) in mouseMove() argument
70 QgsMapMouseEvent e( mMapTool->canvas(), QEvent::MouseMove, mapToScreen( mapX, mapY ) ); in mouseMove()
96 mousePress( mapX, mapY, button, stateKey, snap );
97 mouseRelease( mapX, mapY, button, stateKey, snap );
148 QPoint mapToScreen( double mapX, double mapY ) in mapToScreen() argument
150 QgsPointXY pt = mMapTool->canvas()->mapSettings().mapToPixel().transform( mapX, mapY ); in mapToScreen()
154 void mouseMove( double mapX, double mapY ) in mouseMove() argument
182 mousePress( mapX, mapY, button, stateKey, snap );
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/dm/
H A Dgroup.h198 bool groupIsDoorDestoryedByAttack(uint16 mapX, uint16 mapY, int16 attack,
200 Thing groupGetThing(int16 mapX, int16 mapY); // @ F0175_GROUP_GetThing
203 void groupDelete(int16 mapX, int16 mapY); // @ F0189_GROUP_Delete
204 void groupDeleteEvents(int16 mapX, int16 mapY); // @ F0181_GROUP_DeleteEvents
209 bool isMovementPossible(CreatureInfo *creatureInfo, int16 mapX, int16 mapY,
217 bool isViewPartyBlocked(uint16 mapX, uint16 mapY); // @ F0197_GROUP_IsViewPartyBlocked
224 int16 getFirstPossibleMovementDirOrdinal(CreatureInfo *info, int16 mapX, int16 mapY,
236 void startWandering(int16 mapX, int16 mapY); // @ F0180_GROUP_StartWandering
247 void fluxCageAction(int16 mapX, int16 mapY); // @ F0224_GROUP_FluxCageAction
249 bool isFluxcageOnSquare(int16 mapX, int16 mapY); // @ F0221_GROUP_IsFluxcageOnSquare
[all …]
H A Dgroup.cpp415 dropGroupPossessions(mapX, mapY, groupGetThing(mapX, mapY), kDMSoundModePlayOneTickLater); in groupGetDamageCreatureOutcome()
416 groupDelete(mapX, mapY); in groupGetDamageCreatureOutcome()
518 groupDeleteEvents(mapX, mapY); in groupDelete()
1109 !(((mapX >= 0) && (mapX < dungeon._currMapWidth)) && in isMovementPossible()
1779 for (uint16 mapX = 0; mapX < dungeon._currMapWidth; mapX++) { in addAllActiveGroups() local
1982 fluxcageCount += isFluxcageOnSquare(mapX, mapY - 1) + isFluxcageOnSquare(mapX - 1, mapY); in fluxCageAction()
1984 mapX--; in fluxCageAction()
1986 fluxcageCount += isFluxcageOnSquare(mapX, mapY - 1) + isFluxcageOnSquare(mapX - 1, mapY); in fluxCageAction()
1988 mapX++; in fluxCageAction()
1990 fluxcageCount += isFluxcageOnSquare(mapX, mapY + 1) + isFluxcageOnSquare(mapX + 1, mapY); in fluxCageAction()
[all …]
H A Dtimeline.cpp386 uint16 mapX = event->_Bu._location._mapX; in processEventDoorAnimation() local
453 uint16 mapX = event->_Bu._location._mapX; in processEventSquareFakewall() local
497 uint16 mapX = event->_Bu._location._mapX; in processEventSquarePit() local
514 _vm->_moveSens->getMoveResult(_vm->_thingParty, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
520 _vm->_moveSens->getMoveResult(curThing, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
537 _vm->_moveSens->getMoveResult(curThing, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
579 int16 mapX = event->_Bu._location._mapX; in processEventSquareWall() local
645 int16 mapX = event->_Bu._location._mapX; in triggerProjectileLauncher() local
787 mapX--; in processEventsMoveGroup()
790 mapX++; in processEventsMoveGroup()
[all …]
H A Dmovesens.cpp369 if (mapX >= 0) in getMoveResult()
370 _vm->_groupMan->groupDelete(mapX, mapY); in getMoveResult()
413 if (mapX >= 0) { in getMoveResult()
442 if (mapX >= 0) in getMoveResult()
443 _vm->_groupMan->groupDeleteEvents(mapX, mapY); in getMoveResult()
472 if (mapX >= 0) { in getMoveResult()
476 _vm->_groupMan->groupDeleteEvents(mapX, mapY); in getMoveResult()
599 newEvent._Bu._location._mapX = mapX; in addEvent()
732 Thing curThing = dungeon.getSquareFirstThing(mapX, mapY); in processThingAdditionOrRemoval()
759 dungeon.linkThingToList(thing, Thing(0), mapX, mapY); in processThingAdditionOrRemoval()
[all …]
H A Ddungeonman.cpp804 bool isMapXInBounds = (mapX >= 0) && (mapX < _currMapWidth); in getSquare()
807 return Square(_currMapData[mapX][mapY]); in getSquare()
835 unsigned char *curSquare = _currMapData[mapX]; in getSquareFirstThingIndex()
1327 if (mapX >= 0) { in linkThingToList()
1328 byte *currSquare = &_currMapData[mapX][mapY]; in linkThingToList()
1395 int16 newMapX = map->_offsetMapX + *mapX; in getLocationAfterLevelChange()
1405 *mapX = newMapX - map->_offsetMapX; in getLocationAfterLevelChange()
1414 Thing thing = getSquareFirstThing(mapX, mapY); in getSquareFirstObject()
1573 if (mapX >= 0) { in unlinkThingFromList()
1619 mapX = mapX + _vm->_dirIntoStepCountEast[kDMDirEast]; in getStairsExitDirection()
[all …]
H A Dmovesens.h63 …bool sensorIsTriggeredByClickOnWall(int16 mapX, int16 mapY, uint16 cellParam); // @ F0275_SENSOR_I…
64 …bool getMoveResult(Thing thing, int16 mapX, int16 mapY, int16 destMapX, int16 destMapY); // @ F026…
67 …void addEvent(TimelineEventType type, byte mapX, byte mapY, Cell cell, SensorEffect effect, int32 …
71 …void processThingAdditionOrRemoval(uint16 mapX, uint16 mapY, Thing thing, bool partySquare, bool a…
73 …void triggerEffect(Sensor *sensor, SensorEffect effect, int16 mapX, int16 mapY, uint16 cell); // @…
77 …void createEventMoveGroup(Thing groupThing, int16 mapX, int16 mapY, int16 mapIndex, bool audible);…
78 …Thing getObjectOfTypeInCell(int16 mapX, int16 mapY, int16 cell, int16 objectType); // @ F0273_SENS…
H A Dsounds.cpp135 bool SoundMan::soundGetVolume(int16 mapX, int16 mapY, uint8 *leftVolume, uint8 *rightVolume) { in soundGetVolume() argument
168 rightVolumeColumnIndex = mapX - _vm->_dungeonMan->_partyMapX; in soundGetVolume()
173 lineIndex = -(mapX - _vm->_dungeonMan->_partyMapX); in soundGetVolume()
176 rightVolumeColumnIndex = -(mapX - _vm->_dungeonMan->_partyMapX); in soundGetVolume()
181 lineIndex = mapX - _vm->_dungeonMan->_partyMapX; in soundGetVolume()
199 void SoundMan::requestPlay(uint16 soundIndex, int16 mapX, int16 mapY, SoundMode soundMode) { in requestPlay() argument
210 newEvent._Bu._location._mapX = mapX; in requestPlay()
217 if (!soundGetVolume(mapX, mapY, &leftVolume, &rightVolume)) in requestPlay()
/dports/games/scummvm/scummvm-2.5.1/engines/dm/
H A Dgroup.h198 bool groupIsDoorDestoryedByAttack(uint16 mapX, uint16 mapY, int16 attack,
200 Thing groupGetThing(int16 mapX, int16 mapY); // @ F0175_GROUP_GetThing
203 void groupDelete(int16 mapX, int16 mapY); // @ F0189_GROUP_Delete
204 void groupDeleteEvents(int16 mapX, int16 mapY); // @ F0181_GROUP_DeleteEvents
209 bool isMovementPossible(CreatureInfo *creatureInfo, int16 mapX, int16 mapY,
217 bool isViewPartyBlocked(uint16 mapX, uint16 mapY); // @ F0197_GROUP_IsViewPartyBlocked
224 int16 getFirstPossibleMovementDirOrdinal(CreatureInfo *info, int16 mapX, int16 mapY,
236 void startWandering(int16 mapX, int16 mapY); // @ F0180_GROUP_StartWandering
247 void fluxCageAction(int16 mapX, int16 mapY); // @ F0224_GROUP_FluxCageAction
249 bool isFluxcageOnSquare(int16 mapX, int16 mapY); // @ F0221_GROUP_IsFluxcageOnSquare
[all …]
H A Dgroup.cpp418 dropGroupPossessions(mapX, mapY, groupGetThing(mapX, mapY), kDMSoundModePlayOneTickLater); in groupGetDamageCreatureOutcome()
419 groupDelete(mapX, mapY); in groupGetDamageCreatureOutcome()
521 groupDeleteEvents(mapX, mapY); in groupDelete()
1112 !(((mapX >= 0) && (mapX < dungeon._currMapWidth)) && in isMovementPossible()
1786 for (uint16 mapX = 0; mapX < dungeon._currMapWidth; mapX++) { in addAllActiveGroups() local
1989 fluxcageCount += isFluxcageOnSquare(mapX, mapY - 1) + isFluxcageOnSquare(mapX - 1, mapY); in fluxCageAction()
1991 mapX--; in fluxCageAction()
1993 fluxcageCount += isFluxcageOnSquare(mapX, mapY - 1) + isFluxcageOnSquare(mapX - 1, mapY); in fluxCageAction()
1995 mapX++; in fluxCageAction()
1997 fluxcageCount += isFluxcageOnSquare(mapX, mapY + 1) + isFluxcageOnSquare(mapX + 1, mapY); in fluxCageAction()
[all …]
H A Dtimeline.cpp386 uint16 mapX = event->_Bu._location._mapX; in processEventDoorAnimation() local
453 uint16 mapX = event->_Bu._location._mapX; in processEventSquareFakewall() local
497 uint16 mapX = event->_Bu._location._mapX; in processEventSquarePit() local
514 _vm->_moveSens->getMoveResult(_vm->_thingParty, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
520 _vm->_moveSens->getMoveResult(curThing, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
537 _vm->_moveSens->getMoveResult(curThing, mapX, mapY, mapX, mapY); in moveTeleporterOrPitSquareThings()
579 int16 mapX = event->_Bu._location._mapX; in processEventSquareWall() local
645 int16 mapX = event->_Bu._location._mapX; in triggerProjectileLauncher() local
787 mapX--; in processEventsMoveGroup()
790 mapX++; in processEventsMoveGroup()
[all …]
H A Dmovesens.cpp369 if (mapX >= 0) in getMoveResult()
370 _vm->_groupMan->groupDelete(mapX, mapY); in getMoveResult()
413 if (mapX >= 0) { in getMoveResult()
442 if (mapX >= 0) in getMoveResult()
443 _vm->_groupMan->groupDeleteEvents(mapX, mapY); in getMoveResult()
472 if (mapX >= 0) { in getMoveResult()
476 _vm->_groupMan->groupDeleteEvents(mapX, mapY); in getMoveResult()
599 newEvent._Bu._location._mapX = mapX; in addEvent()
733 Thing curThing = dungeon.getSquareFirstThing(mapX, mapY); in processThingAdditionOrRemoval()
760 dungeon.linkThingToList(thing, Thing(0), mapX, mapY); in processThingAdditionOrRemoval()
[all …]
H A Ddungeonman.cpp804 bool isMapXInBounds = (mapX >= 0) && (mapX < _currMapWidth); in getSquare()
807 return Square(_currMapData[mapX][mapY]); in getSquare()
835 unsigned char *curSquare = _currMapData[mapX]; in getSquareFirstThingIndex()
1329 if (mapX >= 0) { in linkThingToList()
1330 byte *currSquare = &_currMapData[mapX][mapY]; in linkThingToList()
1397 int16 newMapX = map->_offsetMapX + *mapX; in getLocationAfterLevelChange()
1407 *mapX = newMapX - map->_offsetMapX; in getLocationAfterLevelChange()
1416 Thing thing = getSquareFirstThing(mapX, mapY); in getSquareFirstObject()
1577 if (mapX >= 0) { in unlinkThingFromList()
1623 mapX = mapX + _vm->_dirIntoStepCountEast[kDMDirEast]; in getStairsExitDirection()
[all …]
H A Dmovesens.h63 …bool sensorIsTriggeredByClickOnWall(int16 mapX, int16 mapY, uint16 cellParam); // @ F0275_SENSOR_I…
64 …bool getMoveResult(Thing thing, int16 mapX, int16 mapY, int16 destMapX, int16 destMapY); // @ F026…
67 …void addEvent(TimelineEventType type, byte mapX, byte mapY, Cell cell, SensorEffect effect, int32 …
71 …void processThingAdditionOrRemoval(uint16 mapX, uint16 mapY, Thing thing, bool partySquare, bool a…
73 …void triggerEffect(Sensor *sensor, SensorEffect effect, int16 mapX, int16 mapY, uint16 cell); // @…
77 …void createEventMoveGroup(Thing groupThing, int16 mapX, int16 mapY, int16 mapIndex, bool audible);…
78 …Thing getObjectOfTypeInCell(int16 mapX, int16 mapY, int16 cell, int16 objectType); // @ F0273_SENS…
H A Dsounds.cpp135 bool SoundMan::soundGetVolume(int16 mapX, int16 mapY, uint8 *leftVolume, uint8 *rightVolume) { in soundGetVolume() argument
168 rightVolumeColumnIndex = mapX - _vm->_dungeonMan->_partyMapX; in soundGetVolume()
173 lineIndex = -(mapX - _vm->_dungeonMan->_partyMapX); in soundGetVolume()
176 rightVolumeColumnIndex = -(mapX - _vm->_dungeonMan->_partyMapX); in soundGetVolume()
181 lineIndex = mapX - _vm->_dungeonMan->_partyMapX; in soundGetVolume()
201 void SoundMan::requestPlay(uint16 soundIndex, int16 mapX, int16 mapY, SoundMode soundMode) { in requestPlay() argument
212 newEvent._Bu._location._mapX = mapX; in requestPlay()
219 if (!soundGetVolume(mapX, mapY, &leftVolume, &rightVolume)) in requestPlay()
/dports/games/blobwars/blobwars-2.00/src/
H A DmapEditor.cpp43 void drawMap(int mapX, int mapY) in drawMap() argument
56 tile = map.data[x + mapX][y + mapY]; in drawMap()
76 void showMap(int *mapX, int *mapY) in showMap() argument
120 *mapX -= 1; in showMap()
123 *mapX += 1; in showMap()
476 int mapX, mapY, allowMove, x, y; in main() local
477 mapX = mapY = allowMove = x = y = 0; in main()
505 drawMap(mapX, mapY); in main()
539 map.data[mapX + x][mapY + y] = currentBlock; in main()
638 if (mapX < 0) mapX = 0; in main()
[all …]
/dports/games/7kaa/7kaa-2.15.4p1/src/
H A DOTORNADO.cpp349 int i, mapX, mapY; in draw_dot() local
359 mapX = MAP_X1 + tornadoPtr->cur_x_loc(); in draw_dot()
363 if( mapX < MAP_X1 || mapX > MAP_X2 || mapY < MAP_Y1 || mapY > MAP_Y2 ) in draw_dot()
367 writePtr = vgaBufPtr + mapY*vgaBufPitch + mapX; in draw_dot()
371 if( mapX > MAP_X1 && writePtr[-vgaBufPitch-1] != UNEXPLORED_COLOR) in draw_dot()
375 if( mapX < MAP_X2 && writePtr[-vgaBufPitch+1] != UNEXPLORED_COLOR) in draw_dot()
379 if( mapX > MAP_X1 && writePtr[-1] != UNEXPLORED_COLOR) in draw_dot()
381 if( mapX < MAP_X2 && writePtr[1] != UNEXPLORED_COLOR) in draw_dot()
386 if( mapX > MAP_X1 && writePtr[vgaBufPitch-1] != UNEXPLORED_COLOR) in draw_dot()
390 if( mapX < MAP_X2 && writePtr[vgaBufPitch+1] != UNEXPLORED_COLOR) in draw_dot()
/dports/games/stendhal/stendhal-1.35/src/games/stendhal/client/gui/map/
H A DPlayerMapObject.java98 int mapX = worldToCanvas(x, scale); in draw() local
103 mapX += scale_2; in draw()
107 g.drawLine(mapX - size, mapY, mapX + size, mapY); in draw()
108 g.drawLine(mapX, mapY - size, mapX, mapY + size); in draw()
/dports/games/scummvm/scummvm-2.5.1/engines/gob/minigames/geisha/
H A Dpenetration.cpp929 if (enemy.mapX > _sub->mapX) in enemiesMove()
931 else if (enemy.mapX < _sub->mapX) in enemiesMove()
1027 checkSelf.mapX = x; in isBlocked()
1068 obj.mapX = newX; in findPath()
1137 bullet.mapX = sub.mapX; in setBulletPosition()
1156 bullet.mapX += sWidth; in setBulletPosition()
1164 bullet.mapX += sWidth; in setBulletPosition()
1172 bullet.mapX += sWidth; in setBulletPosition()
1188 bullet.mapX -= bWidth; in setBulletPosition()
1196 bullet.mapX -= bWidth; in setBulletPosition()
[all …]
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/gob/minigames/geisha/
H A Dpenetration.cpp926 if (enemy.mapX > _sub->mapX) in enemiesMove()
928 else if (enemy.mapX < _sub->mapX) in enemiesMove()
1028 checkSelf.mapX = x; in isBlocked()
1069 obj.mapX = newX; in findPath()
1138 bullet.mapX = sub.mapX; in setBulletPosition()
1157 bullet.mapX += sWidth; in setBulletPosition()
1165 bullet.mapX += sWidth; in setBulletPosition()
1173 bullet.mapX += sWidth; in setBulletPosition()
1189 bullet.mapX -= bWidth; in setBulletPosition()
1197 bullet.mapX -= bWidth; in setBulletPosition()
[all …]
/dports/games/ags/ags_linux_v.3.4.4.1/Plugins/agspalrender/
H A Draycast.cpp837 int mapX = int(rayPosX); in Raycast_Render() local
899 mapX += stepX; in Raycast_Render()
900 mapX = abs(mapX) % mapHeight; in Raycast_Render()
949 seenMap[mapX][mapY] = 1; in Raycast_Render()
1116 if (mapX == 0 || mapX == mapWidth || mapY == 0 || mapY == mapHeight) in Raycast_Render()
1131 prevmapX = mapX; in Raycast_Render()
1148 prevmapX = mapX; in Raycast_Render()
1160 floorXWall = mapX; in Raycast_Render()
1166 floorXWall = mapX + 1.0; in Raycast_Render()
1172 floorXWall = mapX + wallX; in Raycast_Render()
[all …]
/dports/games/scummvm/scummvm-2.5.1/engines/ags/plugins/ags_pal_render/
H A Draycast.cpp793 int mapX = int(rayPosX); in Raycast_Render() local
845 mapX += stepX; in Raycast_Render()
846 mapX = abs(mapX) % MAP_HEIGHT; in Raycast_Render()
887 seenMap[mapX][mapY] = 1; in Raycast_Render()
1023 if (mapX == 0 || mapX == MAP_WIDTH || mapY == 0 || mapY == MAP_HEIGHT) { in Raycast_Render()
1035 prevmapX = mapX; in Raycast_Render()
1048 prevmapX = mapX; in Raycast_Render()
1063 floorXWall = mapX; in Raycast_Render()
1067 floorXWall = mapX + 1.0; in Raycast_Render()
1071 floorXWall = mapX + wallX; in Raycast_Render()
[all …]
/dports/graphics/libboard/libboard-5b38274/src/
H A DPath.cpp203 stream << transform.mapX( i->x ) << " " << transform.mapY( i->y ) << " m"; in flushPostscript()
206 stream << " " << transform.mapX( i->x ) << " " << transform.mapY( i->y ) << " l"; in flushPostscript()
223 stream << " " << static_cast<int>( transform.mapX( i->x ) ) in flushFIG()
228 stream << " " << static_cast<int>( transform.mapX( _points.begin()->x ) ) in flushFIG()
243 stream << "M " << transform.mapX( i->x ) << " " << transform.mapY( i->y ); in flushSVGCommands()
246 stream << " L " << transform.mapX( i->x ) << " " << transform.mapY( i->y ); in flushSVGCommands()
264 stream << transform.mapX( i->x ) << "," << transform.mapY( i->y ); in flushSVGPoints()
267 stream << " " << transform.mapX( i->x ) << "," << transform.mapY( i->y ); in flushSVGPoints()
282 stream << '(' << transform.mapX( i->x ) << "," << transform.mapY( i->y ) << ')'; in flushTikZPoints()
286 << '(' << transform.mapX( i->x ) << "," << transform.mapY( i->y ) << ')'; in flushTikZPoints()

1234567