NLLIGO::CPrimRegion Class Reference

#include <primitive.h>


Public Member Functions

void serial (NLMISC::IStream &f)

Data Fields

std::string Name
std::vector< bool > VHidePaths
std::vector< bool > VHidePoints
std::vector< bool > VHideZones
std::vector< CPrimPathVPaths
std::vector< CPrimPointVPoints
std::vector< CPrimZoneVZones


Member Function Documentation

void NLLIGO::CPrimRegion::serial NLMISC::IStream f  ) 
 

Definition at line 928 of file primitive.cpp.

References sint, VHidePaths, VHidePoints, VHideZones, VPaths, and VZones.

Referenced by NLSOUND::CBackgroundSoundManager::load().

00929 {
00930         f.xmlPushBegin ("REGION");
00931         
00932         f.xmlSetAttrib ("NAME");
00933         f.serial (Name);
00934 
00935         f.xmlPushEnd();
00936 
00937         sint version = 2;
00938         version = f.serialVersion (version);
00939         string check = "REGION";
00940         f.serialCheck (check);
00941 
00942         f.xmlPush ("POINTS");
00943                 f.serialCont (VPoints);
00944         f.xmlPop ();
00945         f.xmlPush ("PATHES");
00946                 f.serialCont (VPaths);
00947         f.xmlPop ();
00948         f.xmlPush ("ZONES");
00949                 f.serialCont (VZones);
00950         f.xmlPop ();
00951 
00952         if (version > 1)
00953         {
00954                 f.xmlPush ("HIDEPOINTS");
00955                         f.serialCont (VHidePoints);
00956                 f.xmlPop ();
00957                 f.xmlPush ("HIDEZONES");
00958                         f.serialCont (VHideZones);
00959                 f.xmlPop ();
00960                 f.xmlPush ("HIDEPATHS");
00961                         f.serialCont (VHidePaths);
00962                 f.xmlPop ();
00963         }
00964         else
00965         {
00966                 VHidePoints.resize      (VPoints.size(), false);
00967                 VHideZones.resize       (VZones.size(), false);
00968                 VHidePaths.resize       (VPaths.size(), false);
00969         }
00970 }


Field Documentation

std::string NLLIGO::CPrimRegion::Name
 

Definition at line 501 of file primitive.h.

std::vector<bool> NLLIGO::CPrimRegion::VHidePaths
 

Definition at line 508 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), and serial().

std::vector<bool> NLLIGO::CPrimRegion::VHidePoints
 

Definition at line 506 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), and serial().

std::vector<bool> NLLIGO::CPrimRegion::VHideZones
 

Definition at line 507 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), and serial().

std::vector<CPrimPath> NLLIGO::CPrimRegion::VPaths
 

Definition at line 504 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion(), and serial().

std::vector<CPrimPoint> NLLIGO::CPrimRegion::VPoints
 

Definition at line 502 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), and NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion().

std::vector<CPrimZone> NLLIGO::CPrimRegion::VZones
 

Definition at line 503 of file primitive.h.

Referenced by NLLIGO::CPrimitives::convert(), NLSOUND::CBackgroundSoundManager::load(), NLSOUND::CBackgroundSoundManager::loadSamplesFromRegion(), NLSOUND::CBackgroundSoundManager::loadSoundsFromRegion(), and serial().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 12:50:00 2004 for NeL by doxygen 1.3.6