VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSkyDrawable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 #include <osg/Drawable>
15 
16 namespace SilverLining
17 {
18  class Atmosphere;
19 }
20 
21 namespace makVrv
22 {
23  class DtSilverliningGroup;
24 
27  class DT_DLL_VRVOSG DtSkyDrawable : public osg::Drawable
28  {
29 
30  public:
31 
32  friend class DtSkyDrawableCreator;
33 
35  DtSkyDrawable(const DtSkyDrawable& copy, const osg::CopyOp& copyop);
36 
38  virtual ~DtSkyDrawable();
39 
40  META_Object(vrvOsg,DtSkyDrawable)
41 
42 
43  void setGeocentricMode(bool mode);
44 
46  void setLensFlare(bool enabled);
47 
49  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
50 
52  virtual void releaseGLObjects(osg::State* state=0) const;
53 
55  void setSkyBoxSize(double size);
56 
58  double getSkyBoxSize() const;
59 
60  protected:
61 
63  DtSkyDrawable(DtSilverliningGroup* parent = 0);
64 
65  protected:
66 
68  bool myGeocentricFlag;
69  osg::Vec4f myFogColor;
70  float myFogDensity;
71  double myBoxSize;
72  bool myLensFlareFlag;
73  };
74 
78  {
79  public:
80 
83  static DtSkyDrawableCreator& instance(DtDe& de);
84 
86  static void registerInstance(DtDe& de, DtSkyDrawableCreator* anInstance);
87 
89  virtual DtSkyDrawable* create(DtSilverliningGroup* parent);
90  };
91 
92 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)