VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtInstancedLightPointUpdate.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
14 
15 #include <osg/Geometry>
16 #include <osg/BlendFunc>
17 
18 #include <osgSim/LightPoint>
19 #include <osgSim/LightPointNode>
20 #include <osg/Depth>
21 
22 namespace makVrv
23 {
24 
28  class DT_DLL_VRVOSG DtInstancedLightPointUpdate : public osg::Referenced
29  {
30  public:
33  DtInstancedLightPointUpdate( osgSim::LightPoint lp, osg::ref_ptr<osgSim::LightPointNode> lpn, osg::Geometry *geom, DtDe& de);
34 
36  bool isShadowCamera(osg::RenderInfo renderInfo) const;
37 
39  virtual bool isSmallFeature(const osg::Matrixf& drawableMatrix, osg::ref_ptr<osg::Camera> camera);
40 
42  virtual bool processSector(const osg::Matrixd& drawableMatrix);
43 
45  virtual bool update(double frameTime, osg::Drawable* drw, double lastShaderReload);
46 
48  virtual void setDaylightControlled(bool b);
49 
51  virtual bool daylightControlled();
52 
53  private:
54  osg::ref_ptr<osgSim::LightPointNode> myLightPointNode;
55  osgSim::LightPoint myLightPoint;
56  double myLastSimTime;
58 
59  osg::ref_ptr<osg::DrawElementsUInt> myGeomPrimitiveSet;
60  osg::ref_ptr<osg::Vec3Array> myGeomVertexArray;
61  osg::ref_ptr<osg::Vec4Array> myGeomColorArray;
62  osg::ref_ptr<osg::BlendFunc> myGeomBlendFunc;
63 
64  osg::ref_ptr<osg::Uniform> myLightPointSizeUniform;
65 
66  osg::ref_ptr<DtVirtualProgramDepthOnlyCallback> myDepthOnlyCallback;
67 
70 
72 
73  osg::ref_ptr<osg::Depth> myDepth;
74  };
75 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)