VR-Forces 4.8 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_ */
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
OverlayType
Definition: DtTerrainOverlayOperation.h:28
Contains makVrv::DtDe class.
An osg terrain overlay operation is an operation that affects terrain texture overlaying.
Definition: DtOsgTerrainOverlayOperation.h:32
osg::TexEnv::Mode myBlendMode
Definition: DtOsgTerrainOverlayOperation.h:73
std::vector< int > TextureUnitList
Definition: DtOsgTerrainOverlayOperation.h:35
A class specifying a single overlay operation.
Definition: DtTerrainOverlayOperation.h:25
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::Texture::WrapMode myWrapMode
Definition: DtOsgTerrainOverlayOperation.h:72

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)