VR-Forces Development_Version 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) 2015 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 
21 namespace makVrv
22 {
23 
27  class DT_DLL_VRVOSG DtInstancedLightPointUpdate : public osg::Referenced
28  {
29  public:
32  DtInstancedLightPointUpdate( osgSim::LightPoint lp, osg::ref_ptr<osgSim::LightPointNode> lpn, osg::Geometry *geom);
33 
35  bool isShadowCamera(osg::RenderInfo renderInfo) const;
36 
38  virtual bool isSmallFeature(const osg::Matrixf& drawableMatrix, osg::ref_ptr<osg::Camera> camera);
39 
41  virtual bool processSector(const osg::Matrixd& drawableMatrix);
42 
44  virtual bool update(double frameTime, osg::Drawable* drw);
45 
47  virtual void setDaylightControlled(bool b);
48 
50  virtual bool daylightControlled();
51 
52  private:
53  osg::ref_ptr<osgSim::LightPointNode> myLightPointNode;
54  osgSim::LightPoint myLightPoint;
55  double myLastSimTime;
57 
58  osg::ref_ptr<osg::DrawElementsUInt> myGeomPrimitiveSet;
59  osg::ref_ptr<osg::Vec3Array> myGeomVertexArray;
60  osg::ref_ptr<osg::Vec4Array> myGeomColorArray;
61  osg::ref_ptr<osg::BlendFunc> myGeomBlendFunc;
62 
63  osg::ref_ptr<osg::Uniform> myLightPointSizeUniform;
64 
65  osg::ref_ptr<DtVirtualProgramDepthOnlyCallback> myDepthOnlyCallback;
66 
68  };
69 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)