VR-Forces 4.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 <matrix/vlVector.h>
18
19
#include <osg/ref_ptr>
20
21
namespace
osg
22
{
23
class
Geode;
24
class
Group
;
25
}
26
27
namespace
makVrv
28
{
29
30
class
DtOsgRibbon;
31
class
DtSceneObject;
32
36
class
DT_DLL_VRVOSG
DtRibbonModelInstance
:
public
DtOsgModelInstance
37
{
38
public
:
39
41
virtual
~
DtRibbonModelInstance
();
42
45
virtual
bool
realize(
DtModelDefinition
& definition );
46
48
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
49
50
virtual
void
updateRibbonWidth();
51
53
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
54
56
virtual
void
setParentSceneObject(
const
DtUniqueID
& sceneObjID );
57
60
virtual
DtSceneObject
* parentSceneObject();
61
64
virtual
void
setOcclusionEnabled(
bool
enabled );
65
67
virtual
void
setRibbonSpacing(
float
spacing );
68
73
virtual
void
setRibbonLength(
int
maxSamples );
74
76
virtual
void
setColor(
const
osg::Vec4& color );
77
79
virtual
void
setVisible
(
bool
isVisible ) {}
80
82
virtual
void
update();
83
84
protected
:
85
86
friend
class
DtRibbonModelInstanceCreator
;
87
89
DtRibbonModelInstance
(
DtDe
& de );
90
92
virtual
osg::Node* findFromCache(
DtModelDefinition
& definition );
93
94
protected
:
95
96
osg::ref_ptr<DtOsgRibbon>
myRibbon
;
97
DtUniqueID
myParentId
;
98
bool
myOcclusionEnabled
;
99
float
myRibbonSpacing
;
100
int
myRibbonLength
;
101
bool
myColorSet
;
102
osg::Vec4
myColor
;
103
104
};
105
106
109
class
DT_DLL_VRVOSG
DtRibbonModelInstanceCreator
110
:
public
DtModelInstanceCreator
111
{
112
public
:
113
115
static
void
registerCreator(
DtDe
& de );
116
118
virtual
~
DtRibbonModelInstanceCreator
();
119
121
virtual
DtModelInstance
* create(
DtDe
& de );
122
123
protected
:
124
126
DtRibbonModelInstanceCreator
();
127
128
};
129
130
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)