VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSkyDrawable.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSkyDrawable.h,v $ $Revision: 1.15 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtSkyDrawable_H_
14 #define DtSkyDrawable_H_
15 
16 #include <vrvOsg/vrvOsg.h>
18 #include <osg/Drawable>
19 
20 namespace SilverLining
21 {
22  class Atmosphere;
23 }
24 
25 namespace makVrv
26 {
27  class DtSilverliningGroup;
28 
31  class DT_DLL_VRVOSG DtSkyDrawable : public osg::Drawable
32  {
33 
34  public:
35 
36  friend class DtSkyDrawableCreator;
37 
39  DtSkyDrawable(const DtSkyDrawable& copy, const osg::CopyOp& copyop);
40 
42  virtual ~DtSkyDrawable();
43 
44  META_Object(vrvOsg,DtSkyDrawable)
45 
46 
47  void setGeocentricMode(bool mode);
48 
50  void setLensFlare(bool enabled);
51 
53  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
54 
56  virtual void releaseGLObjects(osg::State* state=0) const;
57 
59  void setSkyBoxSize(double size);
60 
62  double getSkyBoxSize() const;
63 
64  protected:
65 
67  DtSkyDrawable(DtSilverliningGroup* parent = 0);
68 
69  protected:
70 
72  bool myGeocentricFlag;
73  osg::Vec4f myFogColor;
74  float myFogDensity;
75  double myBoxSize;
76  bool myLensFlareFlag;
77  };
78 
82  {
83  public:
84 
87  static DtSkyDrawableCreator& instance(DtDe& de);
88 
90  static void registerInstance(DtDe& de, DtSkyDrawableCreator* anInstance);
91 
93  virtual DtSkyDrawable* create(DtSilverliningGroup* parent);
94  };
95 
96 }
97 
98 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)