osgEarth 2.1.1
|
Public Types | |
typedef std::pair< std::string, osg::ref_ptr < StencilVolumeNode > > | StyleGroup |
Public Member Functions | |
BuildData (int renderBinStart) | |
bool | getStyleNode (const std::string &styleName, StencilVolumeNode *&out_svn, bool useLock) |
Public Attributes | |
int | _renderBin |
Threading::ReadWriteMutex | _mutex |
std::vector< StyleGroup > | _styleGroups |
Private Member Functions | |
bool | getStyleNodeWithoutLocking (const std::string &styleName, StencilVolumeNode *&out_svn) |
Definition at line 312 of file FeatureStencilModelSource.cpp.
typedef std::pair<std::string, osg::ref_ptr<StencilVolumeNode> > anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::StyleGroup |
Definition at line 317 of file FeatureStencilModelSource.cpp.
anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::BuildData | ( | int | renderBinStart | ) | [inline] |
Definition at line 315 of file FeatureStencilModelSource.cpp.
: _renderBin( renderBinStart ) { }
bool anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::getStyleNode | ( | const std::string & | styleName, |
StencilVolumeNode *& | out_svn, | ||
bool | useLock | ||
) | [inline] |
Definition at line 323 of file FeatureStencilModelSource.cpp.
{ if ( useLock ) { Threading::ScopedReadLock lock( _mutex ); return getStyleNodeWithoutLocking( styleName, out_svn ); } else { return getStyleNodeWithoutLocking( styleName, out_svn ); } }
bool anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::getStyleNodeWithoutLocking | ( | const std::string & | styleName, |
StencilVolumeNode *& | out_svn | ||
) | [inline, private] |
Definition at line 337 of file FeatureStencilModelSource.cpp.
{ for(std::vector<StyleGroup>::iterator i = _styleGroups.begin(); i != _styleGroups.end(); ++i ) { if( i->first == styleName ) { out_svn = i->second.get(); return true; } } return false; }
Threading::ReadWriteMutex anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::_mutex |
Definition at line 319 of file FeatureStencilModelSource.cpp.
int anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::_renderBin |
Definition at line 318 of file FeatureStencilModelSource.cpp.
std::vector<StyleGroup> anonymous_namespace{FeatureStencilModelSource.cpp}::BuildData::_styleGroups |
Definition at line 320 of file FeatureStencilModelSource.cpp.