VR-Forces 4.10 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 
15 #include <osg/Uniform>
16 
17 namespace osg
18 {
19  class Fog;
20  class StateSet;
21 }
22 
23 namespace makVrv
24 {
30  {
31  public:
32 
35 
37  virtual ~DtOsgFogComponent();
38 
39  private:
40 
43 
45  DtOsgFogComponent &operator=(const DtOsgFogComponent &other);
46 
47  public:
48 
50  virtual void init();
51 
53  virtual bool install(osg::StateSet* stateset);
54 
56  virtual bool uninstall(osg::StateSet* stateset);
57 
59  virtual bool installed(void) const;
60 
63  virtual void setColor(const osg::Vec4f& fogColor);
64 
67  virtual void setDensity(float fDensity);
68 
71  virtual void setHeightFogPlane(const osg::Vec4f& fogPlane);
72 
79  virtual void setHeightFogParams(const osg::Vec4f& fogParams);
80 
83  virtual void setHeightFogColor(const osg::Vec4f& color);
84 
86  virtual osg::Vec4f color(void) const;
87 
89  virtual float density(void) const;
90 
92  virtual osg::Vec4f heightFogPlane(void) const;
93 
95  virtual osg::Vec4f heightFogParams(void) const;
96 
98  virtual osg::Vec4f heightFogColor(void) const;
99 
100  protected:
101 
107 
109  };
110 
113 
115  template <>
116  inline const char* creatorTypeName<DtOsgFogComponent>(void) { return "DtOsgFogComponentCreator"; }
117 }
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Uniform > myFogColor
Definition: DtOsgFogComponent.h:102
bool myInstalled
Definition: DtOsgFogComponent.h:108
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
osg::ref_ptr< osg::Uniform > myFogDensity
Definition: DtOsgFogComponent.h:103
osg::ref_ptr< osg::Uniform > myHeightFogColor
Definition: DtOsgFogComponent.h:106
Contains makVrv::DtVirtualBaseClass class.
State component that injects Fog rendering capabilities into a state set.
Definition: DtOsgFogComponent.h:29
DtVirtualBaseClassCreator< DtOsgFogComponent > DtOsgFogComponentCreator
creator
Definition: DtOsgFogComponent.h:112
osg::ref_ptr< osg::Uniform > myHeightFogPlane
Definition: DtOsgFogComponent.h:104
osg::ref_ptr< osg::Uniform > myHeightFogParams
Definition: DtOsgFogComponent.h:105
Base class for components that affect the state on a subset of the scene graph, injecting state...
Definition: DtOsgStateComponent.h:34
const char * creatorTypeName< DtOsgFogComponent >(void)
template specialization for the creator
Definition: DtOsgFogComponent.h:116
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtOsgStateComponent class.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)