VR-Forces 4.3.1 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
bhaveSim
drawingSharedMemory.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <
bhaveSim/bhaveSimDefines.h
>
9
#include <kyruntime.h>
10
#include "
bhaveUtil/dataTransfer.h
"
11
#include <
simTerrainDrawer/debugDrawerSharedMemoryManager.h
>
12
13
namespace
BHAVE
14
{
15
16
namespace
DrawingViewer
17
{
18
22
class
DT_DLL_bhaveSim
DtDrawingSharedMemory
:
public
DtDataTransfer
23
{
24
public
:
25
class
ScopedFrame
26
{
27
public
:
28
explicit
ScopedFrame
(
DtDrawingSharedMemory
& memory)
29
: myLock(*memory.myMemoryManager)
30
{
31
}
32
33
private
:
34
DtDebugDrawerSharedMemoryManager::ScopedFrame
myLock
;
35
};
36
37
DtDrawingSharedMemory
();
38
virtual
~
DtDrawingSharedMemory
();
39
40
virtual
bool
Init(
unsigned
int
max_lines,
const
char
* path);
41
virtual
void
Exit();
42
43
virtual
void
Draw3DLine(
const
Kaim::Vec3f& p1,
const
Kaim::Vec3f& p2, KyUInt32 r, KyUInt32 g, KyUInt32 b);
44
virtual
void
Draw3DPoint(
const
Kaim::Vec3f& p1, KyUInt32 r, KyUInt32 g, KyUInt32 b);
45
virtual
void
EndFrame();
46
virtual
void
Reset();
47
48
protected
:
49
50
std::auto_ptr<DtDebugDrawerSharedMemoryManager>
myMemoryManager
;
51
std::auto_ptr<DtDebugDrawerSharedMemoryManager::ScopedFrame>
myFrame
;
52
};
53
54
}
55
56
}
//namespace BHAVE
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)