VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCameraPointerStateAttribute.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 {
20 
25  class DT_DLL_VRVOSG DtCameraPointerStateAttribute : public osg::StateAttribute
26  {
27  public:
28 
30  DtCameraPointerStateAttribute(const osg::Camera* camera);
31 
34  const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
35 
38 
39  public:
40 
42  // OSG-required overrides:
43 
46  virtual void apply(osg::State& state) const override;
47 
48  virtual osg::Object* cloneType() const override;
49 
50  virtual osg::Object* clone(const osg::CopyOp& copyop) const override;
51 
52  virtual bool isSameKindAs(const osg::Object* obj) const override;
53 
54  virtual const char *libraryName() const override;
55 
56  virtual const char *className() const override;
57 
58  virtual Type getType() const override;
59 
60  virtual bool getModeUsage(osg::StateAttribute::ModeUsage& usage) const override;
61 
62  virtual int compare(const StateAttribute& sa) const override;
64 
66  virtual const osg::Camera* camera() const;
67 
68  public:
72  static Type theStateAttributeType();
73 
74  protected:
75  const osg::Camera* myCamera;
76  };
77 }
const osg::Camera * myCamera
Definition: DtCameraPointerStateAttribute.h:75
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Contains makVrv::DtOsgLightManager class.
Contains makVrv::DtDe class.
Contains DLL export macros.
a state attribute which should be applied to every camera that needs lighting enabled so that the DtL...
Definition: DtCameraPointerStateAttribute.h:25

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)