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
DtDefaultDynamicTerrainSwitch.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
14
#include <
vrvOsg/DtDynamicTerrainStateManipulatorFactory.h
>
15
#include <
vrvOsg/DtDynamicTerrainSwitchNode.h
>
16
17
#include <osg/Group>
18
19
namespace
makVrv
20
{
21
class
DT_DLL_VRVOSG
DtDefaultDynamicTerrainSwitch
:
public
DtDynamicTerrainSwitch
22
{
23
public
:
24
explicit
DtDefaultDynamicTerrainSwitch
(
const
osg::ref_ptr<DtDynamicTerrainSwitchNode>& tSwitch,
25
DynamicTerrain::NodePathHash
hashIndex);
26
27
virtual
void
setState(
unsigned
int
index );
28
30
virtual
unsigned
int
getState()
const
;
31
32
virtual
unsigned
int
getPreviousState()
const
;
33
34
virtual
unsigned
int
numStates()
const
;
35
36
protected
:
37
osg::ref_ptr<DtDynamicTerrainSwitchNode>
mySwitch
;
38
unsigned
int
myCurrentState
;
39
unsigned
int
myPreviousState
;
40
DynamicTerrain::NodePathHash
myHashIndex
;
41
};
42
43
}
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
)