VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
26
class
DtOsgExtractedNodesLogic
27
{
28
public
:
29
DtOsgExtractedNodesLogic
(
DtOsgTerrainPatchObject
& patch);
30
~DtOsgExtractedNodesLogic
();
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
39
struct
ExtractedNode
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
;
51
ExtractedNodeListMap
myExtractedNodes
;
52
53
DtOsgTerrainPatchObject
&
myPatch
;
54
};
55
}
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
)