VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgScribeBoxModel.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
/*****************************************************************************
6
* $RCSfile: DtOsgScribeBoxModel.h,v $ $Revision: 1.13 $ $State: Exp $
7
*****************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvOsg/vrvOsg.h
>
16
17
#include <
vrvCore/DtScribeBoxModel.h
>
18
#include <
vrvCore/DtUniqueID.h
>
19
20
#include <matrix/vlVector.h>
21
#include <matrix/vlTaitBryan.h>
22
23
#include <osg/MatrixTransform>
24
25
namespace
osg
26
{
27
class
Group
;
28
}
29
30
namespace
makVrv
31
{
32
33
class
DtDe;
34
class
DtOsgSceneConnector;
35
41
class
DT_DLL_VRVOSG
DtOsgScribeBoxModel
42
:
public
DtScribeBoxModel
43
{
44
public
:
45
47
DtOsgScribeBoxModel
(
DtDe
& de,
DtUniqueID
&
id
);
48
50
virtual
~
DtOsgScribeBoxModel
();
51
52
//@name Distributed Interface
54
55
virtual
void
setColor(
float
r,
float
g,
float
b,
float
alpha );
56
virtual
void
setLineWidth(
double
lineWidth );
57
58
virtual
void
setVisible(
bool
visible );
59
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
60
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
61
62
virtual
void
setSolid(
bool
solid );
63
65
67
virtual
void
setOccluded(
bool
);
68
72
virtual
void
setLineSmoothing(
bool
);
73
74
//@name Local Interface
76
77
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
78
int
visualizerType );
79
virtual
void
addToSceneAsProp(
const
DtUniqueID
& sceneObjectId );
80
virtual
void
removeFromScene();
81
83
86
virtual
void
setModelScalingEnabled(
bool
b );
87
89
virtual
void
setLocalModelScalingEnabled(
bool
enabled );
90
92
virtual
void
setLocalModelScalingAmount(
float
localScale );
93
94
protected
:
95
96
DtOsgSceneConnector
*
mySceneConnector
;
97
osg::Vec4
myColor
;
98
double
myLineWidth
;
99
100
};
101
102
}
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
)