]> git.mxchange.org Git - simgear.git/blob - simgear/scene/util/OptionsReadFileCallback.hxx
Placement can contain multiple nodes.
[simgear.git] / simgear / scene / util / OptionsReadFileCallback.hxx
1 // Copyright (C) 2012 Mathias Froehlich
2 //
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License as
5 // published by the Free Software Foundation; either version 2 of the
6 // License, or (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful, but
9 // WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
16 //
17
18 #ifndef SIMGEAR_READFILECALLBACK_HXX
19 #define SIMGEAR_READFILECALLBACK_HXX 1
20
21 #include <osgDB/Callbacks>
22
23 namespace simgear {
24
25 /// Read file callback that calls also back into the registrys read file callback.
26
27 class OptionsReadFileCallback : public osgDB::ReadFileCallback {
28 public:
29     virtual osgDB::ReaderWriter::ReadResult
30     openArchive(const std::string& name, osgDB::ReaderWriter::ArchiveStatus status,
31                 unsigned int indexBlockSizeHint, const osgDB::Options* options);
32
33     virtual osgDB::ReaderWriter::ReadResult
34     readObject(const std::string& name, const osgDB::Options* options);
35
36     virtual osgDB::ReaderWriter::ReadResult
37     readImage(const std::string& name, const osgDB::Options* options);
38     
39     virtual osgDB::ReaderWriter::ReadResult
40     readHeightField(const std::string& name, const osgDB::Options* options);
41
42     virtual osgDB::ReaderWriter::ReadResult
43     readNode(const std::string& name, const osgDB::Options* options);
44
45     virtual osgDB::ReaderWriter::ReadResult
46     readShader(const std::string& name, const osgDB::Options* options);
47
48 protected:
49     virtual ~OptionsReadFileCallback();
50 };
51
52 }
53
54 #endif