osg::RemoteAspectFieldContainerMapper Struct Reference

#include <OSGRemoteAspect.h>

Inheritance diagram for osg::RemoteAspectFieldContainerMapper:
osg::FieldContainerMapper

List of all members.

Public Member Functions

virtual UInt32 map (UInt32 uiId)

Public Attributes

RemoteAspect_remoteAspect

Detailed Description

Definition at line 251 of file OSGRemoteAspect.h.


Member Function Documentation

UInt32 RemoteAspectFieldContainerMapper::map ( UInt32  uiId  )  [virtual]

Field container id mapper. This mapper mappes remote field container id to local ids.

Implements osg::FieldContainerMapper.

Definition at line 1205 of file OSGRemoteAspect.cpp.

References osg::RemoteAspect::_localFC, _remoteAspect, FDEBUG, osg::RemoteAspect::getFullRemoteId(), and SWARNING.

01206 {
01207     UInt32  mappedId;
01208     RemoteAspect::LocalFCMapT::iterator i;
01209 
01210     i = _remoteAspect->_localFC.find(
01211         _remoteAspect->getFullRemoteId(uiId));
01212     if(i == _remoteAspect->_localFC.end())
01213     {
01214         SWARNING << "Can't find container id:" << uiId << std::endl;
01215         mappedId = 0;
01216     }
01217     else
01218     {
01219         mappedId = i->second;
01220     }
01221 
01222     FDEBUG(("Map: %d to %d\n", uiId, mappedId)) 
01223 
01224     return mappedId;
01225 }


Member Data Documentation

Definition at line 254 of file OSGRemoteAspect.h.

Referenced by map(), and osg::RemoteAspect::receiveSync().


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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1