VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
22 namespace osg
23 {
24  class Node;
25 }
26 
29 {
30 public:
31  DtVrfDe();
32 
33  virtual ~DtVrfDe();
34 
35  virtual void setModelDefinitionsDirectory(const DtFilename& f);
36  virtual const DtFilename& modelDefinitionsDirectory() const;
37 
38 protected:
39  virtual void postInitialize();
40 
41 protected:
43 };
44 
47 {
48 public:
51  {
52  public:
54  virtual makVrv::DtDeSharedState* create(makVrv::DtDe& de);
55  };
56 
57  friend class Creator;
58 
59 protected:
62 
64  virtual void initialize();
65 };
66 
69 {
70 public:
73  {
74  public:
76  };
77 
78  friend class Creator;
79 
80 protected:
82 
84  makVrv::DtFeatureLayer& addFeatureLayer(
85  const std::string& featureLayerFilename,
87 };
88 
91 {
92 public:
94 
96 
97  void cleanup();
98 };
99 
101  : public makVrv::DtOsgFileCache
102 {
103 public:
105  {
106  public:
107  makVrv::DtFileCache* create(makVrv::DtDe& de);
108  };
109 
110  friend class Creator;
111 
112  bool needsShaderGeneration(
113  const std::string& filename,
114  const LoadFileOptions& options) const;
115 
116  void encodeOptionsString(
117  const LoadFileOptions& loadFileOptions,
118  osgDB::ReaderWriter::Options& options) const;
119 
120  void decodeOptions(
121  const osgDB::ReaderWriter::Options& options,
122  LoadFileOptions& loadFileOptions) const;
123 
124  osg::ref_ptr<osg::Image> ts_readImageFile(
125  const std::string& inputFilename,
126  const LoadFileOptions& loadFileOptions);
127 
128 protected:
129  explicit DtVrfOsgFileCache(makVrv::DtDe& de);
130 };
131 
133 {
134 public:
136  {
137  public:
138  virtual makVrv::DtRenderer* create(makVrv::DtDe&);
139  };
140 
141  osg::Node* terrainNode();
142  osg::Node* propNode();
143 
144  explicit DtVrfOsgRenderer(makVrv::DtDe&);
145 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)