OSG::RemoteAspectFieldContainerMapper Struct Reference

#include <OSGRemoteAspect.h>

Inheritance diagram for OSG::RemoteAspectFieldContainerMapper:

OSG::ContainerIdMapper List of all members.

Public Member Functions

virtual UInt32 map (UInt32 uiId)

Public Attributes

RemoteAspect_remoteAspect

Detailed Description

Definition at line 228 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::ContainerIdMapper.

Definition at line 841 of file OSGRemoteAspect.cpp.

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

00842 {
00843     UInt32                              mappedId;
00844     RemoteAspect::LocalFCMapT::iterator i;
00845 
00846     i = _remoteAspect->_localFC.find(_remoteAspect->getFullRemoteId(uiId));
00847 
00848     if(i == _remoteAspect->_localFC.end())
00849     {
00850         SWARNING << "Can't find container id:" << uiId << std::endl;
00851         mappedId = 0;
00852     }
00853     else
00854     {
00855         mappedId = i->second;
00856     }
00857 
00858     FDEBUG(("Map: %d to %d\n", uiId, mappedId)) 
00859 
00860     return mappedId;
00861 }


Member Data Documentation

Definition at line 232 of file OSGRemoteAspect.h.

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


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