2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAMax.
6
Portions of the code are:
7
Copyright (c) 2005-2007 Feeling Software Inc.
8
Copyright (c) 2005-2007 Sony Computer Entertainment America
10
Based on the 3dsMax COLLADASW Tools:
11
Copyright (c) 2005-2006 Autodesk Media Entertainment
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
18
#ifndef __COLLADAMAX_LIGHTIMPORTER_H__
19
#define __COLLADAMAX_LIGHTIMPORTER_H__
21
#include "COLLADAMaxPrerequisites.h"
22
#include "COLLADAMaxImporterBase.h"
35
/** Imports a light into the max scene. */
36
class LightImporter : public ImporterBase
39
/** The light to import.*/
40
const COLLADAFW::Light* mLight;
45
LightImporter( DocumentImporter* documentImporter, const COLLADAFW::Light* light );
48
virtual ~LightImporter();
50
/** Performs the import of the light.
51
@return True on success, false otherwise.*/
54
/** Creates a new light from @a camera and returns a pointer to it. */
55
LightObject* createLight( const COLLADAFW::Light* light );
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 );
63
/** Disable default copy ctor. */
64
LightImporter( const LightImporter& pre );
66
/** Disable default assignment operator. */
67
const LightImporter& operator= ( const LightImporter& pre );
69
LightObject* createSkyLight( const COLLADAFW::Light* light, const SkyLightParameters* skyLightParameters );
71
GenLight* createGenericLight( const COLLADAFW::Light* light );
74
} // namespace COLLADAMAX
76
#endif // __COLLADAMAX_LIGHTIMPORTER_H__