VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtRibbonModelInstance.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <
vrvOsg/DtOsgModelInstance.h
>
15
#include <
vrvOsg/DtOsgRibbon.h
>
16
17
#include <
vrvUtil/DtSignalConnectionManager.h
>
18
19
#include <matrix/vlVector.h>
20
21
#include <osg/ref_ptr>
22
23
namespace
osg
24
{
25
class
Geode;
26
class
Group
;
27
}
28
29
namespace
makVrv
30
{
31
32
class
DtOsgRibbon;
33
class
DtSceneObject;
34
38
class
DT_DLL_VRVOSG
DtRibbonModelInstance
:
public
DtOsgModelInstance
39
{
40
public
:
41
43
virtual
~
DtRibbonModelInstance
();
44
47
virtual
bool
realize(
DtModelDefinition
& definition );
48
50
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
51
52
virtual
void
updateRibbonWidth();
53
55
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
56
58
virtual
void
setParentSceneObject(
const
DtUniqueID
& sceneObjID );
59
62
virtual
DtSceneObject
* parentSceneObject();
63
66
virtual
void
setOcclusionEnabled(
bool
enabled );
67
69
virtual
void
setRibbonSpacing(
float
spacing );
70
75
virtual
void
setRibbonLength(
int
maxSamples );
76
78
virtual
void
setColor(
const
osg::Vec4& color );
79
81
virtual
void
setVisible
(
bool
isVisible ) {}
82
84
virtual
void
update();
85
86
protected
:
87
88
friend
class
DtRibbonModelInstanceCreator
;
89
91
DtRibbonModelInstance
(
DtDe
& de );
92
94
virtual
osg::Node* findFromCache(
DtModelDefinition
& definition );
95
96
DtSignalConnectionManager
myConnections
;
97
protected
:
98
99
osg::ref_ptr<DtOsgRibbon>
myRibbon
;
100
DtUniqueID
myParentId
;
101
bool
myOcclusionEnabled
;
102
float
myRibbonSpacing
;
103
int
myRibbonLength
;
104
bool
myColorSet
;
105
osg::Vec4
myColor
;
106
107
};
108
109
112
class
DT_DLL_VRVOSG
DtRibbonModelInstanceCreator
113
:
public
DtModelInstanceCreator
114
{
115
public
:
116
118
static
void
registerCreator(
DtDe
& de );
119
121
virtual
~
DtRibbonModelInstanceCreator
();
122
124
virtual
DtModelInstance
* create(
DtDe
& de );
125
126
protected
:
127
129
DtRibbonModelInstanceCreator
();
130
131
};
132
133
}
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
)