VR-Forces 4.3.1 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
examples
exampleDynamicDraw
DtExampleModelInstance.h
Go to the documentation of this file.
1
// /******************************************************************************
2
// ** Copyright (c) 2015 MAK Technologies, Inc.
3
// ** All rights reserved.
4
// ******************************************************************************/
5
// /******************************************************************************
6
// ** $RCSfile: DtOsgModelInstance.h,v $ $Revision: 1.1 $ $State: Exp $
7
// ******************************************************************************/
8
11
12
#include <
vrvOsg/DtOsgModelInstance.h
>
13
14
namespace
makVrv
15
{
16
//derive from the OsgModelInstance so we can use the OsgSceneConnector in the example model object
17
class
DtExampleModelInstance
:
public
DtOsgModelInstance
18
{
19
public
:
20
22
DtExampleModelInstance
(
DtDe
& de,
double
halfLength,
double
animateRate);
23
24
virtual
~DtExampleModelInstance
() {}
25
27
virtual
void
setVisible
(
bool
isVisible);
28
29
//adjust the current size based on the side and deltaChange passed in.
30
virtual
void
changeSideSize
(
int
side,
double
deltaChange);
31
32
//update the verticies of the geometry to match the current size of the cube.
33
virtual
void
updateSize
(
double
animationScale);
34
35
protected
:
36
37
//create the cube geode and geometry
38
void
createCubeGeode
();
39
40
protected
:
41
42
osg::Vec3
myMinSize
;
43
osg::Vec3
myMaxSize
;
44
osg::Vec3
myCurrentSize
;
45
46
osg::Vec3
myAnimateRate
;
47
48
};
49
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)