VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfOsgEarthFilePseudoLoader.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
7 #include <osgDB/ReaderWriter>
8 #include <osgEarth/XmlUtils>
9 
26 class DT_DLL_features DtVrfOsgEarthFilePseudoLoader : public osgDB::ReaderWriter
27 {
28 public:
30  static void SetupLoader();
31  static void RemoveLoader();
32  DtVrfOsgEarthFilePseudoLoader(osgDB::ReaderWriter* impl);
33 
34  virtual const char* className();
35 
36  virtual bool acceptsExtension(const std::string& ext) const override;
37  virtual ReadResult readObject(const std::string& file_name, const osgDB::Options* options) const override;
38  virtual ReadResult readNode(const std::string& fileName, const Options* opts) const override;
39  virtual ReadResult readNode(std::istream& stream, const Options* options) const override;
40  void processAttributes(osgEarth::XmlElement& element) const;
41  static void SetOrCreateSetting(osgEarth::XmlElement& element, const std::string& name, bool def);
42  void processModelElement(osgEarth::XmlElement& element) const;
43  void processXmlElement(osgEarth::XmlElement& element) const;
44  static std::string ProcessName(std::string& name);
45 
46 protected:
48 };
osg::ref_ptr< osgDB::ReaderWriter > myImpl
Definition: vrfOsgEarthFilePseudoLoader.h:47
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:41
This class replaces the osgearth earth file loader and then calls into it It&#39;s purpose is to do xml p...
Definition: vrfOsgEarthFilePseudoLoader.h:26
voidpf stream
Definition: ioapi.h:39

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)