VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgFogComponent.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <osg/Uniform>
15 
16 namespace osg
17 {
18  class Fog;
19  class StateSet;
20 }
21 
22 namespace makVrv
23 {
29  {
30  public:
31 
34 
36  virtual ~DtOsgFogComponent();
37 
38  private:
39 
42 
44  DtOsgFogComponent &operator=(const DtOsgFogComponent &other);
45 
46  public:
47 
49  virtual void init();
50 
52  virtual bool install(osg::StateSet* stateset);
53 
55  virtual bool uninstall(osg::StateSet* stateset);
56 
58  virtual bool installed(void) const;
59 
62  virtual void setColor(const osg::Vec4f& fogColor);
63 
66  virtual void setDensity(float fDensity);
67 
70  virtual void setHeightFogPlane(const osg::Vec4f& fogPlane);
71 
78  virtual void setHeightFogParams(const osg::Vec4f& fogParams);
79 
82  virtual void setHeightFogColor(const osg::Vec4f& color);
83 
85  virtual osg::Vec4f color(void) const;
86 
88  virtual float density(void) const;
89 
91  virtual osg::Vec4f heightFogPlane(void) const;
92 
94  virtual osg::Vec4f heightFogParams(void) const;
95 
97  virtual osg::Vec4f heightFogColor(void) const;
98 
99  protected:
100 
106 
108  };
109 
110 
113  {
114  public:
117 
119  virtual ~DtOsgFogComponentCreator();
120 
121  private:
125  DtOsgFogComponentCreator &operator=(const DtOsgFogComponentCreator& other);
126 
127  public:
129  virtual DtOsgFogComponent* create() const;
130 
133  static DtOsgFogComponentCreator& instance(DtDe& de);
134 
136  static const std::string& theClassName();
137 
138  protected:
140  };
141 }
DtDe & myDe
Definition: DtOsgFogComponent.h:139
creator for DtOsgFogComponent
Definition: DtOsgFogComponent.h:112
Virtual base class.
Definition: DtVirtualBaseClass.h:22
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Uniform > myFogColor
Definition: DtOsgFogComponent.h:101
bool myInstalled
Definition: DtOsgFogComponent.h:107
osg::ref_ptr< osg::Uniform > myFogDensity
Definition: DtOsgFogComponent.h:102
osg::ref_ptr< osg::Uniform > myHeightFogColor
Definition: DtOsgFogComponent.h:105
Contains makVrv::DtVirtualBaseClass class.
State component that injects Fog rendering capabilities into a state set.
Definition: DtOsgFogComponent.h:28
osg::ref_ptr< osg::Uniform > myHeightFogPlane
Definition: DtOsgFogComponent.h:103
osg::ref_ptr< osg::Uniform > myHeightFogParams
Definition: DtOsgFogComponent.h:104
Base class for components that affect the state on a subset of the scene graph, injecting state...
Definition: DtOsgStateComponent.h:34
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains the DtOsgStateComponent class.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)