VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLightEditorInterface.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 
12 #include "lightEditorPlugin.h"
13 
14 #include <boost/signals.hpp>
15 
16 #include <vector>
17 #include <string>
18 
19 namespace makVrv
20 {
24  {
25  public:
27 
28  virtual void setLights(const std::vector<std::string>& lightNames) = 0;
29  virtual void setAmbient(float r, float g, float b, float a) = 0;
30  virtual void setDiffuse(float r, float g, float b, float a) = 0;
31  virtual void setSpecular(float r, float g, float b, float a) = 0;
32  virtual void setConstantAttenuation(float constantAttenuation) = 0;
33  virtual void setLinearAttenuation(float linearAttenuation) = 0;
34  virtual void setQuadraticAttenuation(float quadraticAttenuation) = 0;
35  virtual void setSpotExponent(float spotExponent) = 0;
36  virtual void setSpotCutoff(float spotCutoff) = 0;
37 
38  boost::signal<void (const std::string&)> signal_lightSelected;
39  boost::signal<void (float, float, float, float)> signal_ambientChanged;
40  boost::signal<void (float, float, float, float)> signal_diffuseChanged;
41  boost::signal<void (float, float, float, float)> signal_specularChanged;
42  boost::signal<void (float)> signal_constantAttenuationChanged;
43  boost::signal<void (float)> signal_linearAttenuationChanged;
44  boost::signal<void (float)> signal_quadraticAttenuationChanged;
45  boost::signal<void (float)> signal_spotExponentChanged;
46  boost::signal<void (float)> signal_spotCutoffChanged;
47  };
48 
49 }
boost::signal< void(float)> signal_spotExponentChanged
Definition: DtLightEditorInterface.h:45
boost::signal< void(float)> signal_spotCutoffChanged
Definition: DtLightEditorInterface.h:46
boost::signal< void(float)> signal_linearAttenuationChanged
Definition: DtLightEditorInterface.h:43
boost::signal< void(const std::string &)> signal_lightSelected
Definition: DtLightEditorInterface.h:38
Contains DLL export macros.
boost::signal< void(float)> signal_quadraticAttenuationChanged
Definition: DtLightEditorInterface.h:44
boost::signal< void(float, float, float, float)> signal_specularChanged
Definition: DtLightEditorInterface.h:41
virtual ~DtLightEditorInterface()
Definition: DtLightEditorInterface.h:26
boost::signal< void(float, float, float, float)> signal_diffuseChanged
Definition: DtLightEditorInterface.h:40
Example Interface (based on the humble dialog pattern).
Definition: DtLightEditorInterface.h:23
#define DT_DLL_EXAMPLELIGHTEDITOR
Definition: lightEditorPlugin.h:19
boost::signal< void(float)> signal_constantAttenuationChanged
Definition: DtLightEditorInterface.h:42
boost::signal< void(float, float, float, float)> signal_ambientChanged
Definition: DtLightEditorInterface.h:39

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)