VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOceanExtractorVisitor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/NodeVisitor>
17 
18 #include <ostream>
19 #include <string>
20 #include <vector>
21 
22 #include <boost/regex.hpp>
23 #include <boost/unordered_map.hpp>
24 #include <boost/unordered_set.hpp>
25 
26 namespace osg
27 {
28  class Geode;
29  class Group;
30  class Node;
31  class LOD;
32 };
33 
34 namespace makVrv
35 {
44  class DtOceanExtractorVisitor : public osg::NodeVisitor
45  {
46  public:
48  typedef std::vector<boost::regex> RegexVector;
49 
55  const std::string& rule, bool isRegEx );
56 
58  virtual ~DtOceanExtractorVisitor();
59 
65  virtual void apply(osg::Group& group);
66 
69  virtual void apply(osg::Node& node);
70 
72  virtual bool nodesExtracted() const;
73 
74  protected:
76  virtual bool extractStaticOcean(osg::Node& node);
77 
79  virtual bool checkTextures( const osg::Node& node );
80 
82  virtual bool makeNodeStaticOcean( osg::Node& node );
83 
84  protected:
85  std::string mySearchForString;
88  osg::Group* myStartGroup;
90  boost::unordered_set<int> myTexturesRemoved;
91  boost::unordered_set<int> myTextureNonMatchCache;
93  };
94 
95 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)