VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgLightsObserver.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <osg/Observer>
14 #include <set>
15 
16 namespace osg
17 {
18  class LightSource;
19 }
20 
21 namespace makVrv
22 {
23  class DtOsgLightManager;
24  class DtOsgLightsObserver : public osg::Observer
25  {
26  public:
28  virtual ~DtOsgLightsObserver();
29  private:
31  DtOsgLightsObserver() = delete;
33  DtOsgLightsObserver(const DtOsgLightsObserver& rhs) = delete;
36  public:
38  virtual void addIfNecessary(const osg::LightSource* pLight);
39 
41  virtual void objectDeleted(void* object) override;
42  private:
44  std::set<const osg::LightSource*> myObservedLightSources;
45  };
46 }
virtual void objectDeleted(void *object) override
osg override
std::set< const osg::LightSource * > myObservedLightSources
Definition: DtOsgLightsObserver.h:44
DtOsgLightsObserver & operator=(const DtOsgLightsObserver &rhs)=delete
not allowed
DtOsgLightManager receives LightSource nodes from the DtOsgCullVisitor, and collects them all here wh...
Definition: DtOsgLightManager.h:55
DtOsgLightsObserver()=delete
not allowed
Contains DLL export macros.
Definition: DtOsgLightsObserver.h:24
virtual void addIfNecessary(const osg::LightSource *pLight)
call when added
DtOsgLightManager * myOsgLightManager
Definition: DtOsgLightsObserver.h:43

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)