VR-Forces 4.10 Class Documentation
 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
virtual void apply(osg::State &state) const override
Apply the GLLights in the DtOsgLightManager.
virtual osg::Object * cloneType() const override
virtual ~DtLightManagerStateAttribute()
DTOR.
Contains makVrv::DtOsgLightManager class.
Contains makVrv::DtDe class.
virtual osg::Object * clone(const osg::CopyOp &copyop) const override
virtual int compare(const StateAttribute &sa) const override
DtDe & myDe
Definition: DtLightManagerStateAttribute.h:69
virtual const char * className() const override
bool myEnabled
Definition: DtLightManagerStateAttribute.h:70
virtual bool isSameKindAs(const osg::Object *obj) const override
Contains DLL export macros.
virtual const char * libraryName() const override
DtLightManagerStateAttribute(DtDe &de, bool enabled)
CTOR.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual Type getType() const override
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)