VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTritonBreakingWavesMapManager.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <osg/Camera>
13 #include <osg/Drawable>
14 #include <osg/Texture2D>
15 
17 
18 namespace makVrv
19 {
20  class DtTritonDrawable;
21  class DtDe;
22 
26  {
27  public:
29  DtTritonDrawable *parentDrawable);
30 
32 
34  void setupBreakingWavesMap( void );
35 
37  void setBreakingWavesMapResolution(float resolution);
38 
40  float getBreakingWavesMapResolution() const;
41 
44  bool updateBreakingWaves( unsigned int frameNum,
45  const osg::Vec3& currentPosition, bool isGeocentric );
46 
48  const osg::Matrix& getBreakingWavesMapMatrix()
49  {
51  }
52 
54  const osg::ref_ptr<osg::Texture2D> getBreakingWavesMapTexture()
55  {
56  return myBreakingWavesMap;
57  }
58 
61  {
62  return myHasBreakingWaves;
63  }
64 
66  void forceUpdate()
67  {
68  myForceUpdate = true;
69  }
70 
71  protected:
72 
73  void cleanup( );
74 
77  float myResolution;
80 
81  osg::ref_ptr<osg::Texture2D> myBreakingWavesMap;
82  osg::ref_ptr<osg::Image> myBreakingWavesImage;
85 
87 
89 
91  };
92 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)