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
osgdb_PathData
pathDataOsgObjects.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
8
#include "
osgdb_PathData/osgdb_PathDataPluginDefines.h
"
9
#include "kyruntime.h"
10
#include "matrix/vlVector.h"
11
#include <osg/Geode>
12
#include <osg/Geometry>
13
#include <deque>
14
#include "osg/LOD"
15
#include <string>
16
20
21
namespace
BHAVE
22
{
23
enum
DtBhavePdgDrawMode
24
{
25
DtDrawTriangles
,
26
DtDrawTransparentTriangles
27
};
28
32
class
DT_DLL_osgdb_PathData
DtBhaveOsgGeometry
33
{
34
public
:
35
DtBhaveOsgGeometry
(
bool
transparent =
false
);
36
virtual
~
DtBhaveOsgGeometry
();
37
39
virtual
bool
pushTriangle(
const
DtVector
&,
const
DtVector
&,
const
DtVector
&,
const
Kaim::VisualColor&);
40
42
virtual
osg::Geometry* geometry()
const
;
43
45
virtual
bool
pushLine(
const
DtVector
&,
const
DtVector
&,
const
Kaim::VisualColor&);
46
protected
:
49
virtual
void
setTransparency(
const
Kaim::VisualColor&);
50
51
osg::Geometry*
myGeometry
;
52
osg::Vec3Array*
myVertexArray
;
53
osg::Vec4Array*
myColorArray
;
54
unsigned
int
myArrayIndex
;
55
bool
myDrawTransparent
;
56
};
57
60
class
DT_DLL_osgdb_PathData
DtBhaveOsgGeode
61
{
62
public
:
63
DtBhaveOsgGeode
(
DtBhavePdgDrawMode
=
DtDrawTriangles
);
64
virtual
~
DtBhaveOsgGeode
();
65
67
virtual
osg::Geode* geode();
68
70
virtual
void
addTriangle(
const
DtVector
&,
const
DtVector
&,
const
DtVector
&,
const
Kaim::VisualColor&);
71
73
virtual
void
addLine(
const
DtVector
&,
const
DtVector
&,
const
Kaim::VisualColor&);
74
protected
:
75
osg::Geode*
myGeode
;
76
std::deque<Kaim::VisualColor>
myColorIndeces
;
77
std::deque<DtBhaveOsgGeometry*>
myGeometries
;
78
DtBhavePdgDrawMode
myDrawMode
;
79
};
80
82
class
DT_DLL_osgdb_PathData
DtBhaveOsgLOD
83
{
84
public
:
85
DtBhaveOsgLOD
();
86
virtual
~
DtBhaveOsgLOD
();
87
89
virtual
osg::LOD* lod();
90
92
virtual
void
addGeode(
DtBhaveOsgGeode
* geode);
93
95
virtual
DtBhaveOsgGeode
* lastAddedGeode();
96
98
virtual
void
setVisibleRange(
float
min,
float
max);
99
101
virtual
void
setName(
const
std::string& name);
102
103
protected
:
104
osg::LOD*
myLOD
;
105
std::deque<DtBhaveOsgGeode*>
myGeodes
;
106
float
myMinVisible
;
107
float
myMaxVisible
;
108
};
109
}
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
)