VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtCellToIndirectGeoMap.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2017 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvOsg/DtOsgThreadingUtils.h
>
14
#include <
vrvOsg/DtIndirectGeoComputeBoundCallback.h
>
15
16
#include <boost/unordered_map.hpp>
17
18
19
namespace
osg
20
{
21
class
Group
;
22
class
Node
;
23
}
24
25
namespace
makVrv
26
{
27
class
DtDe;
28
class
DtCellIndirectGeo;
29
class
DtIndirectGeometryRegistrar;
30
class
DtIndirectGeometryCreator;
31
class
DtIndirectGeoIntersectionGroupCreator;
32
38
class
DT_DLL_VRVOSG
DtCellToIndirectGeoMap
39
{
40
public
:
42
DtCellToIndirectGeoMap
(
DtDe
& de);
44
virtual
~
DtCellToIndirectGeoMap
();
45
50
virtual
DtCellIndirectGeo
* getOrCreateEntry(
const
osg::Node* node,
DtIndirectGeometryRegistrar
* registrar,
bool
& created);
51
53
virtual
void
keyNodeGettingDeleted(
const
osg::Node* node);
54
protected
:
56
virtual
DtCellIndirectGeo
* getEntry(
const
osg::Node* node);
58
virtual
DtCellIndirectGeo
* createEntry(
const
osg::Node* node,
DtIndirectGeometryRegistrar
* registrar);
60
virtual
void
deleteEntries();
61
protected
:
62
Threading::Mutex
myMutex
;
63
typedef
boost::unordered_map<const osg::Node*, DtCellIndirectGeo*>
KeyToEntryTypeMap
;
64
KeyToEntryTypeMap
myKeyToEntryTypeMap
;
65
66
DtDe
&
myDe
;
67
68
DtIndirectGeometryCreator
&
myIndirectGeomCreator
;
69
DtIndirectGeoComputeBoundCallbackCreator<DtCellIndirectGeo>
&
myIndirectGeoComputeBoundCallbackCreator
;
70
DtIndirectGeoIntersectionGroupCreator
&
myIndirectGeoIntersectGroupCreator
;
71
72
private
:
74
DtCellToIndirectGeoMap
();
75
};
76
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)