# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
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 Reference

CZoneSearch 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

Inheritance graph
[legend]
List of all members.

Public Methods

 CZoneSearch ()
 Constructor : Initialize some privates members. More...

std::pair<std::string, uint32getZoneName (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)

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(s):
Alain Saffray , Nevrax France
Date:
2000

Definition at line 44 of file zone_search.h.


Constructor & Destructor Documentation

NL3D::CZoneSearch::CZoneSearch ( )
 

Constructor : Initialize some privates members.

Definition at line 41 of file zone_search.cpp.


Member Function Documentation

void NL3D::CZoneSearch::getListZoneName ( uint x,
uint y,
uint sizeArea,
std::list< std::pair< std::string,uint32 > >& l )
 

Definition at line 94 of file zone_search.cpp.

pair< string,uint32 > NL3D::CZoneSearch::getZoneName ( uint x,
uint y,
uint cx,
uint cy )
 

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 65 of file zone_search.cpp.


Member Data Documentation

uint NL3D::CZoneSearch::_NbZoneX [private]
 

Definition at line 73 of file zone_search.h.

uint NL3D::CZoneSearch::_NbZoneY [private]
 

Number zones on Y axis of landscape.

Definition at line 76 of file zone_search.h.

uint NL3D::CZoneSearch::_SizeZoneX [private]
 

Definition at line 79 of file zone_search.h.

uint NL3D::CZoneSearch::_SizeZoneY [private]
 

Definition at line 82 of file zone_search.h.


The documentation for this class was generated from the following files: