VR-Forces 4.1 Class Documentation
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  virtual void drawImplementation(osg::RenderInfo& renderInfo) const;
51 
54  void setFogBlend(osg::Vec4f rgbA,float density);
55 
57  const osg::Vec4f& fogColor() const;
58 
60  float fogDensity() const;
61 
63  virtual void releaseGLObjects(osg::State* state=0) const;
64 
66  void setSkyBoxSize(double size);
67 
68  protected:
69 
71  DtSkyDrawable(DtSilverliningGroup* parent = 0);
72 
73  protected:
74 
76  bool myGeocentricFlag;
77  osg::Vec4f myFogColor;
78  float myFogDensity;
79  double myBoxSize;
80  };
81 
85  {
86  public:
87 
90  static DtSkyDrawableCreator& instance(DtDe& de);
91 
93  static void registerInstance(DtDe& de, DtSkyDrawableCreator* anInstance);
94 
96  virtual DtSkyDrawable* create(DtSilverliningGroup* parent);
97  };
98 
99 }
100 
101 #endif

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)