#include <landscapeig_manager.h>
Nevrax France
Definition at line 55 of file landscapeig_manager.h.
Public Member Functions | |
| CLandscapeIGManager () | |
| Constructor. | |
| void | getAllIG (std::vector< UInstanceGroup * > &dest) const |
| get a list of the ig | |
| void | getAllIGWithNames (std::vector< std::pair< UInstanceGroup *, std::string > > &dest) const |
| get a list of the ig, with their names | |
| UInstanceGroup * | getIG (const std::string &name) const |
| get the Ig. name is like "150_EM". NULL if not found. | |
| void | initIG (UScene *scene, const std::string &igDesc, UDriver *driver, uint selectedTexture, NLMISC::IProgressCallback *callBack) |
| bool | isIGAddedToScene (const std::string &name) const |
| is the Ig added to scene? name is like "150_EM". false if not found. | |
| void | loadArrayZoneIG (const std::vector< std::string > &names, std::vector< UInstanceGroup * > *dest=NULL) |
| UInstanceGroup * | loadZoneIG (const std::string &name) |
| void | reloadAllIgs () |
| reload all the Igs and re-add to scene. | |
| void | reset () |
| unload and delete all the zoneIgs. Call before deletion of the scene (else exception). | |
| void | unloadArrayZoneIG (const std::vector< std::string > &names) |
| void | unloadZoneIG (const std::string &name) |
| ~CLandscapeIGManager () | |
Private Types | |
| typedef TZoneInstanceGroupMap::const_iterator | ConstItZoneInstanceGroupMap |
| typedef TZoneInstanceGroupMap::iterator | ItZoneInstanceGroupMap |
| typedef std::map< std::string, void * > | TShapeMap |
| typedef std::map< std::string, CInstanceGroupElement > | TZoneInstanceGroupMap |
Private Member Functions | |
| std::string | translateName (const std::string &name) const |
Private Attributes | |
| UScene * | _Scene |
| TShapeMap | _ShapeAdded |
| TZoneInstanceGroupMap | _ZoneInstanceGroupMap |
|
|
Definition at line 130 of file landscapeig_manager.h. |
|
|
Definition at line 129 of file landscapeig_manager.h. |
|
|
Definition at line 127 of file landscapeig_manager.h. |
|
|
Definition at line 128 of file landscapeig_manager.h. |
|
|
Constructor.
|
|
|
|
|
|
get a list of the ig
|
|
|
get a list of the ig, with their names
|
|
|
get the Ig. name is like "150_EM". NULL if not found.
|
|
||||||||||||||||||||||||
|
Initialize and load Instances Group from a text file. no-op if not found. the file is just a list of filename eg: "150_EM.ig", separated with return. At this time, All UInstanceGroup are loaded, but none are addToScene() ed. |
|
|
is the Ig added to scene? name is like "150_EM". false if not found.
|
|
||||||||||||
|
same as prec loadZoneIG, but with an array of name. no-op if "". call after ULandscape::loadAllZonesAround().
|
|
|
load of an instanceGroup of a zone. name is like "150_EM". no-op if "". If exist (see initIG), The instanceGroup is added to the scene. call after ULandscape::refreshZonesAround() |
|
|
reload all the Igs and re-add to scene.
|
|
|
unload and delete all the zoneIgs. Call before deletion of the scene (else exception).
|
|
|
|
|
|
same as prec unloadZoneIG, but with an array of name. no-op if "". call after ULandscape::refreshAllZonesAround(). |
|
|
unload of an instanceGroup of a zone. name is like "150_EM". no-op if "". If exist (see initIG), The instanceGroup is removed from the scene. call after ULandscape::refreshZonesAround() |
|
|
Definition at line 114 of file landscapeig_manager.h. |
|
|
Definition at line 132 of file landscapeig_manager.h. |
|
|
Definition at line 131 of file landscapeig_manager.h. |
1.3.6