VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLightManagerStateAttribute.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtDe.h>
13 #include <vrvOsg/vrvOsg.h>
15 
16 #include <osg/StateAttribute>
17 
18 namespace makVrv
19 {
24  class DtLightManagerStateAttribute : public osg::StateAttribute
25  {
26  public:
27 
29  DtLightManagerStateAttribute(DtDe& de, bool enabled);
30 
33  const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
34 
37 
39  // OSG-required overrides:
40 
42  virtual void apply(osg::State& state) const override;
43 
44  // OSG-required overrides:
45  virtual osg::Object* cloneType() const override;
46 
47  virtual osg::Object* clone(const osg::CopyOp& copyop) const override;
48 
49  virtual bool isSameKindAs(const osg::Object* obj) const override;
50 
51  virtual const char *libraryName() const override;
52 
53  virtual const char *className() const override;
54 
55  virtual Type getType() const override;
56 
57  virtual bool getModeUsage(osg::StateAttribute::ModeUsage& usage) const override;
58 
59  virtual int compare(const StateAttribute& sa) const override;
61 
62  public:
66  static Type theStateAttributeType();
67 
68  protected:
70  bool myEnabled;
71  };
72 
73 }
74 
virtual bool getModeUsage(osg::StateAttribute::ModeUsage &usage) const override
Apply the GLLights in the DtOsgLightManager.
virtual void apply(osg::State &state) const override
Apply the GLLights in the DtOsgLightManager.
virtual osg::Object * cloneType() const override
Apply the GLLights in the DtOsgLightManager.
virtual ~DtLightManagerStateAttribute()
DTOR.
Contains makVrv::DtOsgLightManager class.
Contains makVrv::DtDe class.
virtual osg::Object * clone(const osg::CopyOp &copyop) const override
Apply the GLLights in the DtOsgLightManager.
virtual int compare(const StateAttribute &sa) const override
Apply the GLLights in the DtOsgLightManager.
DtDe & myDe
Definition: DtLightManagerStateAttribute.h:69
virtual const char * className() const override
Apply the GLLights in the DtOsgLightManager.
bool myEnabled
Definition: DtLightManagerStateAttribute.h:70
virtual bool isSameKindAs(const osg::Object *obj) const override
Apply the GLLights in the DtOsgLightManager.
Contains DLL export macros.
virtual const char * libraryName() const override
Apply the GLLights in the DtOsgLightManager.
DtLightManagerStateAttribute(DtDe &de, bool enabled)
CTOR.
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:70
virtual Type getType() const override
Apply the GLLights in the DtOsgLightManager.
static Type theStateAttributeType()
static accessor for the type of this state attribute this state attribute type is used by the type() ...
A group node which applies lights maintained in the DtOsgLightManager at the top of the render graph...
Definition: DtLightManagerStateAttribute.h:24

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)