VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEnvironmentInfo.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
16 
17 #include <osg/Vec3>
18 #include <osg/Vec4>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 
28  {
29  public:
30 
33  static DtEnvironmentInfo& instance(DtDe& de);
34 
36  virtual osg::Vec3 lightPosition() const;
37 
39  virtual osg::Vec4 ambientColor() const;
40 
42  virtual osg::Vec4 diffuseColor() const;
43 
45  virtual Vector4_32 fogColor() const;
46 
48  virtual float fogDensity() const;
49 
51  virtual bool heightFogEnable() const;
52 
54  virtual float heightFogAltitude() const;
55 
57  virtual float heightFogDensity() const;
58 
60  virtual float heightFogDistance() const;
61 
63  virtual Vector4_32 heightFogColor() const;
64 
67  virtual void setFogColor(const Vector4_32& color);
68 
71  virtual void setFogDensity(float density);
72 
75  virtual void setHeightFogEnable(bool enable);
76 
79  virtual void setHeightFogAltitude(float altitude);
80 
83  virtual void setHeightFogDensity(float density);
84 
88  virtual void setHeightFogDistance(float distance);
89 
92  virtual void setHeightFogColor(const Vector4_32& color);
93 
94 
97  virtual void setLightPosition(const osg::Vec3& pos);
98 
101  virtual void setAmbientColor(const osg::Vec4& color);
102 
105  virtual void setDiffuseColor(const osg::Vec4& color);
106 
107 
109  virtual ~DtEnvironmentInfo();
110 
111  private:
112 
115 
118 
120  DtEnvironmentInfo& operator=(const DtEnvironmentInfo&);
121 
122  protected:
123 
124  osg::Vec3 myLightPosition;
125  osg::Vec4 myAmbientColor;
126  osg::Vec4 myDiffuseColor;
127 
135  };
136 }
The DtEnvironmentInfo class is responsible for holding data related to the environment such as sky li...
Definition: DtEnvironmentInfo.h:27
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
float myHeightFogAltitude
Definition: DtEnvironmentInfo.h:130
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::Vec4 myAmbientColor
Definition: DtEnvironmentInfo.h:125
float myHeightFogDensity
Definition: DtEnvironmentInfo.h:131
osg::Vec3 myLightPosition
Definition: DtEnvironmentInfo.h:124
4 dimensional vector
osg::Vec4 myDiffuseColor
Definition: DtEnvironmentInfo.h:126
Vector4_32 myFogColor
Definition: DtEnvironmentInfo.h:134
Contains makVrv::DtVirtualBaseClass class.
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
bool myHeightFogEnable
Definition: DtEnvironmentInfo.h:129
Vector4_32 myHeightFogColor
Definition: DtEnvironmentInfo.h:133
Contains DLL export macros.
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:70
float myHeightFogDistance
Definition: DtEnvironmentInfo.h:132
float myFogDensity
Definition: DtEnvironmentInfo.h:128

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)