VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfVrvOverrides.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
16 #include <vrvCore/DtDe.h>
17 #include <vrvCore/DtTerrain.h>
19 #include <vrvOsg/DtOsgFileCache.h>
20 #include <vrvOsg/DtOsgRenderer.h>
21 #include <vrvUtil/DtDebugLog.h>
22 
23 namespace osg
24 {
25  class Node;
26 }
27 
30 {
31 public:
32  DtVrfDe();
33 
34  virtual ~DtVrfDe();
35 
36  virtual void setModelDefinitionsDirectory(const DtFilename& f);
37  virtual const DtFilename& modelDefinitionsDirectory() const;
38 
39  virtual void createDebugLog(const std::string& fileName, makVrv::DtDebugLog::PrintLevel level);
40 
41 protected:
42  virtual void postInitialize();
43 
44 protected:
46 };
47 
50 {
51 public:
54  {
55  public:
57  virtual makVrv::DtDeSharedState* create(makVrv::DtDe& de);
58  };
59 
60  friend class Creator;
61 
62 protected:
65 
67  virtual void initialize();
68 };
69 
72 {
73 public:
76  {
77  public:
79  };
80 
81  friend class Creator;
82 
83 protected:
85 
87  makVrv::DtFeatureLayer& addFeatureLayer(
88  const std::string& featureLayerFilename,
90 };
91 
94 {
95 public:
97 
99 
100  void cleanup();
101 };
102 
104  : public makVrv::DtOsgFileCache
105 {
106 public:
108  {
109  public:
110  makVrv::DtFileCache* create(makVrv::DtDe& de);
111  };
112 
113  friend class Creator;
114 
115  bool needsShaderGeneration(
116  const std::string& filename,
117  const LoadFileOptions& options) const;
118 
119  void encodeOptionsString(
120  const LoadFileOptions& loadFileOptions,
121  osgDB::ReaderWriter::Options& options) const;
122 
123  void decodeOptions(
124  const osgDB::ReaderWriter::Options& options,
125  LoadFileOptions& loadFileOptions) const;
126 
127  osg::ref_ptr<osg::Image> ts_readImageFile(
128  const std::string& inputFilename,
129  const LoadFileOptions& loadFileOptions);
130 
131 protected:
132  explicit DtVrfOsgFileCache(makVrv::DtDe& de);
133 };
134 
136 {
137 public:
139  {
140  public:
141  virtual makVrv::DtRenderer* create(makVrv::DtDe&);
142  };
143 
144  osg::Node* terrainNode();
145  osg::Node* propNode();
146 
147  explicit DtVrfOsgRenderer(makVrv::DtDe&);
148 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)