VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtAttachedCylinderModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAttachedCylinderModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvOsg/vrvOsg.h
>
15
#include <
vrvOsg/DtCylinderModelInstance.h
>
16
17
namespace
makVrv
18
{
21
class
DT_DLL_VRVOSG
DtAttachedCylinderModelInstance
22
:
public
DtCylinderModelInstance
23
{
24
public
:
25
27
DtAttachedCylinderModelInstance
(
DtDe
& de);
28
30
virtual
~
DtAttachedCylinderModelInstance
();
31
33
virtual
void
setStartPoint(
const
osg::Vec3& position );
34
36
virtual
void
setEndPoint(
const
osg::Vec3& position );
37
39
virtual
void
setVisible(
bool
isVisible);
40
41
protected
:
42
43
virtual
void
updateTransform();
44
45
void
spanTwoPoints( osg::Matrix& cylinderTransform );
46
47
protected
:
48
49
osg::Vec3
myStartPoint
;
// The center of one endcap
50
osg::Vec3
myEndPoint
;
// The center of the other endcap
51
52
};
53
}
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
)