VR-Forces 4.3 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::Drawable::UpdateCallback
28  {
29  public:
32  DtInstancedLightPointUpdate( osgSim::LightPoint lp, osg::ref_ptr<osgSim::LightPointNode> lpn);
33 
35  bool isShadowCamera(osg::RenderInfo renderInfo) const;
36 
38  virtual bool isSmallFeature(osg::Matrixf drawableMatrix, osg::ref_ptr<osg::Camera> camera);
39 
41  virtual bool processSector(osg::Matrixd drawableMatrix);
42 
44  virtual void update(osg::NodeVisitor* nv, osg::Drawable* drw);
45 
46  private:
47  osg::ref_ptr<osgSim::LightPointNode> myLightPointNode;
48  osgSim::LightPoint myLightPoint;
49  double myLastSimTime;
50 
51  osg::ref_ptr<osg::DrawElementsUInt> myGeomPrimitiveSet;
52  osg::ref_ptr<osg::Vec3Array> myGeomVertexArray;
53  osg::ref_ptr<osg::Vec4Array> myGeomColorArray;
54  osg::ref_ptr<osg::BlendFunc> myGeomBlendFunc;
55 
56  osg::ref_ptr<DtVirtualProgramDepthOnlyCallback> myDepthOnlyCallback;
57 
58  };
59 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)