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
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
18
#include <osg/MatrixTransform>
19
20
namespace
osg
21
{
22
class
Group
;
23
}
24
25
namespace
makVrv
26
{
27
class
DtDe;
28
class
DtOsgSceneConnector;
29
32
class
DT_DLL_VRVOSG
DtOsgCylinderModel
:
public
DtCylinderModel
33
{
34
public
:
35
DtOsgCylinderModel
(
DtDe
& de,
DtUniqueID
&
id
);
36
37
virtual
~
DtOsgCylinderModel
();
38
39
//@name Distributed Interface
41
43
virtual
void
setUseTwoPositions(
bool
twoPoints);
44
46
virtual
void
setDimensions(
float
length,
float
width,
float
height);
47
49
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
50
52
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
53
55
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
56
58
virtual
void
setLightingEnabled(
bool
enabled );
59
61
virtual
void
setVisible(
bool
isVisible);
62
66
virtual
void
setIsSupportModel(
bool
isSupport);
67
69
70
//@name Local Interface
72
74
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
75
int
visualizerType );
76
78
virtual
void
removeFromScene();
80
81
protected
:
82
DtOsgSceneConnector
*
mySceneConnector
;
83
bool
myUseTwoPositions
;
84
};
85
}
86
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
)