VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgTerrainOverlayOperation.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtOsgOverlayOperation.h,v $ $Revision: 1.13 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtOsgOverlayOperation_H_
14 #define DtOsgOverlayOperation_H_
15 
16 #include <vrvOsg/vrvOsg.h>
17 #include <vrvCore/DtDe.h>
19 
20 #include <osg/Node>
21 #include <osg/Texture>
22 #include <osg/TexEnv>
23 
24 #include <string>
25 #include <vector>
26 
27 namespace makVrv
28 {
33  {
34  public:
35  typedef std::vector<int> TextureUnitList;
36 
37  public:
39 
41 
44 
45  DtOsgTerrainOverlayOperation(OverlayType type, std::string definition);
46 
51  osg::Node* node, DtDe& de,
53 
56  int countUnitsNeeded( osg::Node* node,
58 
59  virtual void restoreDefaults(osg::Node* node, DtDe& de);
60 
61  void setWrapMode(osg::Texture::WrapMode);
62  osg::Texture::WrapMode wrapMode() const;
63 
64  void setBlendMode(osg::TexEnv::Mode);
65  osg::TexEnv::Mode blendMode() const;
66 
67  protected:
68  void unitsUsed(osg::Node* node, std::set<int> &usedunits,
70 
71  protected:
72  osg::Texture::WrapMode myWrapMode;
73  osg::TexEnv::Mode myBlendMode;
74  };
75 }
76 #endif /* DtOsgOverlayOperation_H_ */

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)