VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
56
virtual
void
setColor(
float
r,
float
g,
float
b,
float
alpha );
57
59
virtual
void
getColor(
float
& r,
float
& g,
float
& b,
float
& alpha);
60
62
virtual
void
setLineWidth(
double
lineWidth );
63
65
virtual
double
lineWidth()
const
;
66
68
virtual
void
setVisible(
bool
visible );
69
71
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
72
74
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
75
76
virtual
void
setIsSupportModel(
bool
isSupport);
77
79
81
virtual
void
setOccluded(
bool
);
82
86
virtual
void
setLineSmoothing(
bool
);
87
88
//@name Local Interface
90
91
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
92
int
visualizerType );
93
virtual
void
addToSceneAsProp(
const
DtUniqueID
& sceneObjectId );
94
virtual
void
removeFromScene();
95
97
100
virtual
void
setModelScalingEnabled(
bool
b );
101
103
virtual
void
setLocalModelScalingEnabled(
bool
enabled );
104
106
virtual
void
setLocalModelScalingAmount(
float
localScale );
107
108
protected
:
109
110
DtOsgSceneConnector
*
mySceneConnector
;
111
osg::Vec4
myColor
;
112
double
myLineWidth
;
113
DtVector
myPosition
;
114
};
115
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)