VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgExtractedNodesLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <string>
15 #include <osg/Vec3>
16 #include <osg/Quat>
17 #include <osg/Node>
18 
19 #include <vector>
20 #include <map>
21 
22 namespace makVrv
23 {
24  class DtOsgTerrainPatchObject;
25 
27  {
28  public:
31 
32  void extractNodes( const std::string& rule, bool isRegEx, std::vector<std::string>& matches);
33 
34  osg::Node* findNode(const std::string& rule, unsigned int index);
35  osg::Node* findNode(const std::string& rule, unsigned int index, osg::Vec3& location, osg::Quat& orientation);
36 
37  private:
38 
40  {
41  osg::Vec3 location;
42  osg::Vec3 scale;
43  osg::Quat orientation;
44  osg::Quat orientationScale;
45  osg::ref_ptr<osg::Node> node;
46  osg::Node::ParentList parents;
47  };
48 
49  typedef std::vector<ExtractedNode> NodeList;
50  typedef std::map<std::string, NodeList > ExtractedNodeListMap;
52 
54  };
55 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)