VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgAttachableCuboidModel.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgAttachableCuboidModel.h,v $ $Revision: 1.0 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtOsgAttachableCuboidModel_H_
14
#define DtOsgAttachableCuboidModel_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvCore/DtAttachableCuboidModel.h
>
18
#include <
vrvCore/DtUniqueID.h
>
19
20
#include <matrix/vlVector.h>
21
22
#include <osg/MatrixTransform>
23
24
namespace
osg
25
{
26
class
Group
;
27
}
28
29
namespace
makVrv
30
{
31
class
DtDe;
32
class
DtOsgSceneConnector;
33
36
class
DT_DLL_VRVOSG
DtOsgAttachableCuboidModel
37
:
public
DtAttachableCuboidModel
38
{
39
public
:
40
DtOsgAttachableCuboidModel
(
DtDe
& de,
DtUniqueID
&
id
);
41
42
virtual
~
DtOsgAttachableCuboidModel
();
43
44
//@name Distributed Interface
46
48
virtual
void
setDimensions(
double
x,
double
y,
double
z);
49
51
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
52
54
virtual
void
setVisible(
bool
visible);
55
57
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
58
60
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
61
63
virtual
void
setLightingEnabled(
bool
enabled );
64
66
virtual
void
setSolid(
bool
isSolid);
67
69
70
//@name Local Interface
72
74
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectID,
int
modelSet,
75
int
visualizerType);
76
78
virtual
void
removeFromScene();
79
81
82
protected
:
83
DtOsgSceneConnector
*
mySceneConnector
;
84
85
};
86
}
87
88
#endif
89
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
)