VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyLightScaleCommand.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <vrvCore/DtVrvCommand.h>
15 #include "MyViewControlDataTypes.h"
16 
17 using namespace makVrv;
18 
19 namespace MyViewControl
20 {
27  {
28  public:
31 
33  virtual ~MyLightScaleCommand();
34 
36 
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 
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:
86 
90 
94 
98  };
99 
105  : public DtVrvCommandCreator
106  {
107  public:
115 
117  virtual ~MyLightScaleCommandCreator();
118 
121  virtual DtVrvCommand* create(vrvControlToolkit::DtVrvControl_v1* control);
122  };
123 }
MyLightScaleCommandCreator creates a MyLightScaleCommand. It is registered with the DtSharedVrvComman...
Definition: MyLightScaleCommand.h:104
DtVrvCommandCreator is the base class for all command creators.
Definition: DtVrvCommand.h:44
boost::function< DtUniqueID(const std::string &)> GlobalIdConvertFunc
typedef for the function that takes a protocol specific id (as a string) and looks up the DtUniqueID ...
Definition: DtVrvCommand.h:40
int myDiffuseLightScale
The diffuse light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset) ...
Definition: MyLightScaleCommand.h:85
MyLightScaleCommand is a custom VR-Vantage class that processes view control messages with the comman...
Definition: MyLightScaleCommand.h:26
Base structure for all controls.
Definition: vrvControlToolkitDataTypes.h:277
Contains MyControlToolkit control structures and defines.
int myAmbientLightScale
The ambient light scale value as set by MyLightScaleCommandCreator::create (or 0 if unset) ...
Definition: MyLightScaleCommand.h:89
DtVrvCommand is the base class for all commands.
Definition: DtVrvCommand.h:24
#define DT_DLL_EXAMPLEVIEWCONTROL
Definition: exampleViewControlPlugin.h:18
bool myDiffuseLightScaleSet
Flag to indicate if myDiffuseLightScale was set in MyLightScaleCommandCreator::create.
Definition: MyLightScaleCommand.h:93
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
bool myAmbientLightScaleSet
Flag to indicate if myAmbientLightScale was set in MyLightScaleCommandCreator::create.
Definition: MyLightScaleCommand.h:97
Contains makVrv::DtVrvCommand and makVrv::DtVrvCommandCreator Classes.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)