VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtOsgCylinderModel.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgCylinderModel.h,v $ $Revision: 1.0 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvOsg/vrvOsg.h
>
16
#include <
vrvCore/DtCylinderModel.h
>
17
#include <
vrvCore/DtUniqueID.h
>
18
19
#include <matrix/vlVector.h>
20
21
#include <osg/MatrixTransform>
22
23
namespace
osg
24
{
25
class
Group
;
26
}
27
28
namespace
makVrv
29
{
30
class
DtDe;
31
class
DtOsgSceneConnector;
32
35
class
DT_DLL_VRVOSG
DtOsgCylinderModel
:
public
DtCylinderModel
36
{
37
public
:
38
DtOsgCylinderModel
(
DtDe
& de,
DtUniqueID
&
id
);
39
40
virtual
~
DtOsgCylinderModel
();
41
42
//@name Distributed Interface
44
46
virtual
void
setUseTwoPositions(
bool
twoPoints);
47
49
virtual
void
setDimensions(
float
length,
float
width,
float
height);
50
52
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
53
55
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
56
58
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
59
61
virtual
void
setLightingEnabled(
bool
enabled );
62
64
virtual
void
setVisible(
bool
isVisible);
65
67
virtual
void
setSolid(
bool
solid);
68
70
71
//@name Local Interface
73
75
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
76
int
visualizerType );
77
79
virtual
void
removeFromScene();
81
82
protected
:
83
DtOsgSceneConnector
*
mySceneConnector
;
84
bool
myUseTwoPositions
;
85
};
86
}
87
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)