VR-Forces Developer's Guide
 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) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
15 
16 #include <osg/Drawable>
17 
18 namespace SilverLining
19 {
20  class Atmosphere;
21  class ThreadCameraStreamData;
22 }
23 
24 namespace osg
25 {
26  class Camera;
27  class GLExtensions;
28 }
29 
30 namespace makVrv
31 {
32  class DtSilverliningGroup;
33  class DtSilverLiningGroupTcsUserData;
36 
39 
41  template <>
42  inline const char* creatorTypeName<DtSkyDrawable>(void) { return "DtSkyDrawableCreator"; }
43 
46  class DT_DLL_VRVOSG DtSkyDrawable : public osg::Drawable
47  {
48 
49  public:
51 
53  DtSkyDrawable(const DtSkyDrawable& copy, const osg::CopyOp& copyop);
54 
56  virtual ~DtSkyDrawable();
57  protected:
58 
61  public:
62 
64  virtual osg::Object* cloneType() const { return nullptr; }
65  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtSkyDrawable(*this, copyop); }
66 
68  virtual void drawImplementation(osg::RenderInfo& renderInfo) const override;
69 
74  virtual void disconnectFromGroup();
75 
76  protected:
77 
78  virtual void updateSensorFXAndMultiViewUniforms(const SilverLining::Atmosphere* atmosphere, const osg::Camera* camera, osg::State& state, SilverLining::ThreadCameraStreamData* tcsData) const;
79 
81  virtual bool ensureValidTcsData(osg::Camera* osgCamera,
82  SilverLining::ThreadCameraStreamData*& tcsData, DtSilverLiningGroupTcsUserData*& userData) const;
83  protected:
84 
86 
88  };
89 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
virtual osg::Object * clone(const osg::CopyOp &copyop) const
Definition: DtSkyDrawable.h:65
This represents per camera, context (tcs) specific data for DtSilverLiningGroup.
Definition: DtSilverLiningGroupTcsUserData.h:46
virtual osg::Object * cloneType() const
required functions for derriving from osg::Drawable
Definition: DtSkyDrawable.h:64
A group node which adds a silver-lining sky and will light all Children with the proper lighting para...
Definition: DtSilverliningGroup.h:98
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
const char * creatorTypeName< DtSkyDrawable >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtSkyDrawable.h:42
DtVirtualBaseClassCreator< DtSkyDrawable, DtSilverliningGroup * > DtSkyDrawableCreator
creator
Definition: DtSkyDrawable.h:35
The sky drawable.
Definition: DtSkyDrawable.h:46
DtDe & myDe
Definition: DtSkyDrawable.h:87
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtSilverliningGroup * myParent
Definition: DtSkyDrawable.h:85
friend DtSkyDrawableCreator
Definition: DtSkyDrawable.h:50

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)