~ubuntu-branches/ubuntu/trusty/assimp/trusty-proposed

« back to all changes in this revision

Viewing changes to code/IRRMeshLoader.h

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmoelnig (gpg-key at iem)
  • Date: 2011-08-23 16:51:26 UTC
  • Revision ID: package-import@ubuntu.com-20110823165126-rvbjt1qtcusine1c
Tags: upstream-2.0.863+dfsg
ImportĀ upstreamĀ versionĀ 2.0.863+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Open Asset Import Library (ASSIMP)
 
3
----------------------------------------------------------------------
 
4
 
 
5
Copyright (c) 2006-2010, ASSIMP Development Team
 
6
All rights reserved.
 
7
 
 
8
Redistribution and use of this software in source and binary forms, 
 
9
with or without modification, are permitted provided that the 
 
10
following conditions are met:
 
11
 
 
12
* Redistributions of source code must retain the above
 
13
  copyright notice, this list of conditions and the
 
14
  following disclaimer.
 
15
 
 
16
* Redistributions in binary form must reproduce the above
 
17
  copyright notice, this list of conditions and the
 
18
  following disclaimer in the documentation and/or other
 
19
  materials provided with the distribution.
 
20
 
 
21
* Neither the name of the ASSIMP team, nor the names of its
 
22
  contributors may be used to endorse or promote products
 
23
  derived from this software without specific prior
 
24
  written permission of the ASSIMP Development Team.
 
25
 
 
26
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
 
27
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
 
28
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 
29
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
 
30
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 
31
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
 
32
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 
33
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
 
34
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
 
35
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
 
36
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
37
 
 
38
----------------------------------------------------------------------
 
39
*/
 
40
 
 
41
/** @file IRRMeshLoader.h
 
42
 *  @brief Declaration of the .irrMesh (Irrlight Engine Mesh Format)
 
43
 *  importer class. 
 
44
 */
 
45
#ifndef AI_IRRMESHLOADER_H_INCLUDED
 
46
#define AI_IRRMESHLOADER_H_INCLUDED
 
47
 
 
48
#include "BaseImporter.h"
 
49
#include "IRRShared.h"
 
50
 
 
51
namespace Assimp        {
 
52
 
 
53
// ---------------------------------------------------------------------------
 
54
/** IrrMesh importer class.
 
55
 *
 
56
 * IrrMesh is the native file format of the Irrlight engine and its editor
 
57
 * irrEdit. As IrrEdit itself is capable of importing quite many file formats,
 
58
 * it might be a good file format for data exchange.
 
59
 */
 
60
class IRRMeshImporter : public BaseImporter, public IrrlichtBase
 
61
{
 
62
        friend class Importer;
 
63
 
 
64
protected:
 
65
        /** Constructor to be privately used by Importer */
 
66
        IRRMeshImporter();
 
67
 
 
68
        /** Destructor, private as well */
 
69
        ~IRRMeshImporter();
 
70
 
 
71
public:
 
72
 
 
73
        // -------------------------------------------------------------------
 
74
        /** Returns whether the class can handle the format of the given file. 
 
75
         *  See BaseImporter::CanRead() for details.    
 
76
         */
 
77
        bool CanRead( const std::string& pFile, IOSystem* pIOHandler,
 
78
                bool checkSig) const;
 
79
 
 
80
protected:
 
81
 
 
82
        // -------------------------------------------------------------------
 
83
        /** Called by Importer::GetExtensionList() for each loaded importer.
 
84
         * See BaseImporter::GetExtensionList() for details
 
85
         */
 
86
        void GetExtensionList(std::set<std::string>& extensions);
 
87
 
 
88
        // -------------------------------------------------------------------
 
89
        /** Imports the given file into the given scene structure. 
 
90
         * See BaseImporter::InternReadFile() for details
 
91
         */
 
92
        void InternReadFile( const std::string& pFile, aiScene* pScene, 
 
93
                IOSystem* pIOHandler);
 
94
 
 
95
};
 
96
 
 
97
} // end of namespace Assimp
 
98
 
 
99
#endif // AI_IRRMESHIMPORTER_H_INC