 |
|
 |
 |
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CZoneSearch Class ReferenceCZoneSearch is a class that determine which zone cooresponding to a coordinate and zones are around a position.
More...
#include <zone_search.h>
Inheritance diagram for NL3D::CZoneSearch:
List of all members.
Public Methods |
| | CZoneSearch () |
| | Constructor : Initialize some privates members. More...
|
| std::pair< std::string, uint32 > | getZoneName (uint x, uint y, uint cx, uint cy) |
| | Get the zone name corresponding to coordinate. More...
|
| void | getListZoneName (uint x, uint y, uint sizeArea, std::list< std::pair< std::string, uint32 > > &l) |
| uint16 | getZoneId (uint x, uint y) |
| void | getListZoneId (uint x, uint y, uint sizeArea, std::vector< uint16 > &l) |
| std::string | getZoneNameFromId (uint16 zoneid) |
Private Attributes |
| uint | _NbZoneX |
| uint | _NbZoneY |
| | Number zones on Y axis of landscape. More...
|
| uint | _SizeZoneX |
| uint | _SizeZoneY |
Detailed Description
CZoneSearch is a class that determine which zone cooresponding to a coordinate and zones are around a position.
-
Author:
-
Alain Saffray , Nevrax France
-
Date:
-
2000
Definition at line 44 of file zone_search.h.
Constructor & Destructor Documentation
| NL3D::CZoneSearch::CZoneSearch |
( |
|
) |
|
|
Member Function Documentation
| void NL3D::CZoneSearch::getListZoneId |
( |
uint |
x, |
|
|
uint |
y, |
|
|
uint |
sizeArea, |
|
|
std::vector< uint16 > & |
l |
|
) |
|
|
|
|
Get the zone name corresponding to coordinate.
-
Parameters:
-
| x |
is axis X coordinate (in meters) |
| y |
is axis Y coordinate (in meters) |
| cx |
is axis X coordinate of center area (in meters) |
| cy |
is axis Y coordinate of center area (in meters) |
-
Returns:
-
a pair of the zone name and square distance between zone and center area (in zone unit)
Definition at line 67 of file zone_search.cpp.
References _SizeZoneX, _SizeZoneY, x, and y. |
| std::string NL3D::CZoneSearch::getZoneNameFromId |
( |
uint16 |
zoneid |
) |
|
|
Member Data Documentation
uint NL3D::CZoneSearch::_NbZoneX [private]
|
|
uint NL3D::CZoneSearch::_NbZoneY [private]
|
|
uint NL3D::CZoneSearch::_SizeZoneX [private]
|
|
uint NL3D::CZoneSearch::_SizeZoneY [private]
|
|
The documentation for this class was generated from the following files:
|
 |