VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
simTerrainDrawer
debugDrawerNameManager.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
10
11
#include "
simTerrainDrawer/simTerrainDrawerDefines.h
"
12
#include "vlutil/vlString.h"
13
#include "vlutil/vlShmPool.h"
14
#include <vector>
15
#include <pthread.h>
16
17
class
DT_DLL_simTerrainDrawer
DtDebugDrawerNameManager
18
{
19
public
:
20
DtDebugDrawerNameManager
();
21
virtual
~
DtDebugDrawerNameManager
();
22
virtual
void
init
();
23
virtual
DtString
addAndCreateNewName(
int
type);
24
virtual
void
removeName(
const
DtString
& name);
25
26
virtual
DtString
getMemoryBlockNameByIndex(
unsigned
int
index);
27
28
virtual
void
lockAccess();
29
virtual
void
unlockAccess();
30
virtual
const
std::vector<int> getMemoryBlockIndexListByType(
int
memoryType);
31
32
virtual
DtString
blockDescription();
33
34
protected
:
35
struct
DtMemoryHeader
36
{
37
bool
initialized
;
38
pthread_rwlock_t
mutex
;
39
unsigned
int
count
;
40
long
memoryBlockNames[10];
41
int
memoryBlockTypes[10];
42
};
43
45
char
*
myMemoryPtr
;
47
DtMemoryHeader
*
myHeader
;
49
DtSharedMemoryPoolManager*
myManager
;
50
51
std::vector<int>
myCachedIndexList
;
52
int
myCachedOffset
;
53
};
54
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)