VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgShadowLocalSpaceTransform.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 <vrvOsg/vrvOsg.h>
13 
14 #include <osg/MatrixTransform>
15 
16 namespace makVrv
17 {
23  class DT_DLL_VRVOSG DtOsgShadowLocalSpaceTransform : public osg::MatrixTransform
24  {
25  public:
28 
31 
33  DtOsgShadowLocalSpaceTransform(const DtOsgShadowLocalSpaceTransform& ob, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
34 
36  virtual osg::Object* clone(const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY) const;
37 
42  virtual bool computeWorldToLocalMatrix(osg::Matrix& matrix, osg::NodeVisitor* nv) const;
43 
45  virtual bool computeLocalToWorldMatrix(osg::Matrix& matrix, osg::NodeVisitor* nv) const;
46 
47  // one pathway for particles, one for diguy instances
48  virtual void setParticleMode(bool value);
49 
50  protected:
51 
52  // stored by the main camera for the shadow camera to use
53  mutable osg::Vec3d myMutableCameraPosition;
55  };
56 
57 };
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Root transform for a group of diguy or particle system, allows shadow camera know about main camera p...
Definition: DtOsgShadowLocalSpaceTransform.h:23
bool myParticleMode
Definition: DtOsgShadowLocalSpaceTransform.h:54
Contains DLL export macros.
osg::Vec3d myMutableCameraPosition
Definition: DtOsgShadowLocalSpaceTransform.h:53

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)