~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADAMax/include/COLLADAMaxLightImporter.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
This file is part of COLLADAMax.
 
5
 
 
6
Portions of the code are:
 
7
Copyright (c) 2005-2007 Feeling Software Inc.
 
8
Copyright (c) 2005-2007 Sony Computer Entertainment America
 
9
 
 
10
Based on the 3dsMax COLLADASW Tools:
 
11
Copyright (c) 2005-2006 Autodesk Media Entertainment
 
12
 
 
13
Licensed under the MIT Open Source License, 
 
14
for details please see LICENSE file or the website
 
15
http://www.opensource.org/licenses/mit-license.php
 
16
*/
 
17
 
 
18
#ifndef __COLLADAMAX_LIGHTIMPORTER_H__
 
19
#define __COLLADAMAX_LIGHTIMPORTER_H__
 
20
 
 
21
#include "COLLADAMaxPrerequisites.h"
 
22
#include "COLLADAMaxImporterBase.h"
 
23
 
 
24
class GenLight;
 
25
 
 
26
namespace COLLADAFW
 
27
{
 
28
        class Light;
 
29
};
 
30
 
 
31
 
 
32
namespace COLLADAMax
 
33
{
 
34
 
 
35
    /** Imports a light into the max scene. */
 
36
        class LightImporter : public ImporterBase 
 
37
        {
 
38
        private:
 
39
                /** The light to import.*/
 
40
                const COLLADAFW::Light* mLight;
 
41
        
 
42
        public:
 
43
 
 
44
        /** Constructor. */
 
45
                LightImporter( DocumentImporter* documentImporter, const COLLADAFW::Light* light );
 
46
 
 
47
        /** Destructor. */
 
48
                virtual ~LightImporter();
 
49
 
 
50
                /** Performs the import of the light.
 
51
                @return True on success, false otherwise.*/
 
52
                bool import();
 
53
 
 
54
                /** Creates a new light from @a camera and returns a pointer to it. */
 
55
                LightObject* createLight( const COLLADAFW::Light* light );
 
56
 
 
57
                /** creates and adds an ambient light to the document. Since such a light is global 
 
58
                i does not have to added to the scene.*/
 
59
                void createAndAddAmbientLight( const COLLADAFW::Light* light );
 
60
 
 
61
        private:
 
62
 
 
63
        /** Disable default copy ctor. */
 
64
                LightImporter( const LightImporter& pre );
 
65
 
 
66
        /** Disable default assignment operator. */
 
67
                const LightImporter& operator= ( const LightImporter& pre );
 
68
 
 
69
                LightObject* createSkyLight( const COLLADAFW::Light* light, const SkyLightParameters* skyLightParameters );
 
70
 
 
71
                GenLight* createGenericLight( const COLLADAFW::Light* light );
 
72
        };
 
73
 
 
74
} // namespace COLLADAMAX
 
75
 
 
76
#endif // __COLLADAMAX_LIGHTIMPORTER_H__