VR-Forces 4.7 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
vrvCore
DtObserverModeSettingCommand.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvCore/DtVrvCommand.h
>
13
#include <
vrvCore/DtObserverMode.h
>
14
#include <
vrvCore/DtObserverSettingsManager.h
>
15
16
namespace
makVrv
17
{
21
class
DT_DLL_VRVCORE
DtObserverModeSettingCommand
:
public
DtVrvCommand
22
{
23
public
:
25
DtObserverModeSettingCommand
();
26
28
virtual
~
DtObserverModeSettingCommand
();
29
31
virtual
DtObserverSettingsManager::ObserverSetting
settingToControl()
const
= 0;
32
34
35
virtual
std::string observerModeName()
const
;
36
virtual
void
setObserverModeName(
const
std::string&
mode
);
38
40
41
virtual
bool
isEnabled()
const
;
42
virtual
void
setEnabled(
bool
state);
44
47
virtual
void
execute(
DtDe
& de);
48
50
virtual
void
setFromControlPacket(
vrvControlToolkit::DtVrvControl_v1
* control );
51
52
protected
:
54
// Apply the current state to the specified observer mode, if that mode has
55
// view control enabled. Called by execute()
56
virtual
void
setSettingByObserverModeIntKey(
DtDe
& de,
int
observerModeIntKey );
57
virtual
void
setSettingByObserverModeName(
DtDe
& de,
const
std::string& observerModeName );
59
60
protected
:
61
std::string
myObserverModeName
;
62
bool
myState
;
63
};
64
}
//makVrv::
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)