VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtInstancedLightPointUpdate.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 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(const osgSim::LightPoint& lp, 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  float lightMinPixelSize);
41 
43  virtual bool processSector(const osg::Matrixd& drawableMatrix);
44 
46  virtual bool update(double frameTime, osg::Drawable* drw, double lastShaderReload);
47 
49  virtual void setDaylightControlled(bool b);
50 
52  virtual bool daylightControlled();
53 
56  virtual osgSim::LightPointNode* const lightPointNode() const;
57 
58  private:
60  osgSim::LightPoint myLightPoint;
61  double myLastSimTime;
63 
68 
70 
72 
75 
77 
79  };
80 }
osg::ref_ptr< osg::DrawElementsUInt > myGeomPrimitiveSet
Definition: DtInstancedLightPointUpdate.h:64
double myLastShaderReload
Definition: DtInstancedLightPointUpdate.h:76
double myLastSimTime
Definition: DtInstancedLightPointUpdate.h:61
Class for handling light point updates and checks also is the update callback for the instanced light...
Definition: DtInstancedLightPointUpdate.h:28
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::BlendFunc > myGeomBlendFunc
Definition: DtInstancedLightPointUpdate.h:67
bool myIsVisible
Definition: DtInstancedLightPointUpdate.h:73
Contains makVrv::DtVirtualProgramDepthOnlyCallback class.
osg::ref_ptr< osg::Vec3Array > myGeomVertexArray
Definition: DtInstancedLightPointUpdate.h:65
osg::ref_ptr< osgSim::LightPointNode > myLightPointNode
Definition: DtInstancedLightPointUpdate.h:59
bool myDaylightControlled
Definition: DtInstancedLightPointUpdate.h:62
osgSim::LightPoint myLightPoint
Definition: DtInstancedLightPointUpdate.h:60
osg::ref_ptr< osg::Uniform > myLightPointSizeUniform
Definition: DtInstancedLightPointUpdate.h:69
DtDe & myDe
Definition: DtInstancedLightPointUpdate.h:74
osg::ref_ptr< DtVirtualProgramDepthOnlyCallback > myDepthOnlyCallback
Definition: DtInstancedLightPointUpdate.h:71
osg::ref_ptr< osg::Depth > myDepth
Definition: DtInstancedLightPointUpdate.h:78
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::ref_ptr< osg::Vec4Array > myGeomColorArray
Definition: DtInstancedLightPointUpdate.h:66

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)