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
examples
exampleViewControl
MyLightScaleCommand.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
9
10
#pragma once
11
12
#include "
exampleViewControlPlugin.h
"
13
14
#include <
vrvCore/DtVrvCommand.h
>
15
#include "
MyViewControlDataTypes.h
"
16
17
using namespace
makVrv;
18
19
namespace
MyViewControl
20
{
26
class
DT_DLL_EXAMPLEVIEWCONTROL
MyLightScaleCommand
:
public
DtVrvCommand
27
{
28
public
:
30
MyLightScaleCommand
();
31
33
virtual
~
MyLightScaleCommand
();
34
36
37
41
virtual
bool
diffuseLightScaleSet()
const
;
42
45
virtual
int
diffuseLightScale()
const
;
46
51
// effect of setting diffuseLightScaleSet() to true
52
virtual
void
setDiffuseLightScale(
int
scale );
54
56
57
61
virtual
bool
ambientLightScaleSet()
const
;
62
65
virtual
int
ambientLightScale()
const
;
66
71
// effect of setting ambientLightScaleSet() to true
72
virtual
void
setAmbientLightScale(
int
scale );
74
75
80
virtual
void
execute(
DtDe
& de);
81
82
protected
:
85
int
myDiffuseLightScale
;
86
89
int
myAmbientLightScale
;
90
93
bool
myDiffuseLightScaleSet
;
94
97
bool
myAmbientLightScaleSet
;
98
};
99
104
class
DT_DLL_EXAMPLEVIEWCONTROL
MyLightScaleCommandCreator
105
:
public
DtVrvCommandCreator
106
{
107
public
:
114
MyLightScaleCommandCreator
(
GlobalIdConvertFunc
func);
115
117
virtual
~
MyLightScaleCommandCreator
();
118
121
virtual
DtVrvCommand
* create(
vrvControlToolkit::DtVrvControl_v1
* control);
122
};
123
}
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
)