VR-Forces 5.0.2 Developer's Guide
 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 
9 
10 #ifndef DtOsgOverlayOperation_H_
11 #define DtOsgOverlayOperation_H_
12 
13 #include <vrvOsg/vrvOsg.h>
14 #include <vrvCore/DtDe.h>
16 
17 #include <osg/Node>
18 #include <osg/Texture>
19 #include <osg/TexEnv>
20 
21 #include <string>
22 #include <vector>
23 
24 namespace makVrv
25 {
30  {
31  public:
32  typedef std::vector<int> TextureUnitList;
33 
34  public:
36 
38 
41 
42  DtOsgTerrainOverlayOperation(OverlayType type, std::string definition);
43 
48  osg::Node* node, DtDe& de,
50 
53  int countUnitsNeeded( osg::Node* node,
55 
56  virtual void restoreDefaults(osg::Node* node, DtDe& de);
57 
58  void setWrapMode(osg::Texture::WrapMode);
59  osg::Texture::WrapMode wrapMode() const;
60 
61  void setBlendMode(osg::TexEnv::Mode);
62  osg::TexEnv::Mode blendMode() const;
63 
64  protected:
65  void unitsUsed(osg::Node* node, std::set<int> &usedunits,
67 
68  protected:
69  osg::Texture::WrapMode myWrapMode;
70  osg::TexEnv::Mode myBlendMode;
71  };
72 }
73 #endif /* DtOsgOverlayOperation_H_ */
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
OverlayType
Definition: DtTerrainOverlayOperation.h:25
Contains makVrv::DtDe class.
An osg terrain overlay operation is an operation that affects terrain texture overlaying.
Definition: DtOsgTerrainOverlayOperation.h:29
osg::TexEnv::Mode myBlendMode
Definition: DtOsgTerrainOverlayOperation.h:70
std::vector< int > TextureUnitList
Definition: DtOsgTerrainOverlayOperation.h:32
A class specifying a single overlay operation.
Definition: DtTerrainOverlayOperation.h:22
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
osg::Texture::WrapMode myWrapMode
Definition: DtOsgTerrainOverlayOperation.h:69

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)