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

« back to all changes in this revision

Viewing changes to COLLADAStreamWriter/include/COLLADASWScene.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 COLLADAStreamWriter.
 
5
        
 
6
    Licensed under the MIT Open Source License, 
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
 
 
11
 
 
12
#ifndef __COLLADASTREAMWRITER_SCENE_H__
 
13
#define __COLLADASTREAMWRITER_SCENE_H__
 
14
 
 
15
#include "COLLADASWPrerequisites.h"
 
16
#include "COLLADASWElementWriter.h"
 
17
#include "COLLADABUURI.h"
 
18
#include <string>
 
19
 
 
20
namespace COLLADASW
 
21
{
 
22
 
 
23
 
 
24
    /** A class to add a @a \<scene\> element to the stream*/
 
25
 
 
26
    class Scene : public ElementWriter
 
27
    {
 
28
 
 
29
    private:
 
30
 
 
31
        /** The url of the instance visual scene.*/
 
32
        COLLADABU::URI mInstanceVisualSceneUrl;
 
33
 
 
34
    public:
 
35
        /** Constructor that sets the stream the scene should be written to*/
 
36
        Scene ( StreamWriter * streamWriter, COLLADABU::URI instanceURI ) 
 
37
        : ElementWriter ( streamWriter ) 
 
38
        , mInstanceVisualSceneUrl ( instanceURI )
 
39
        {}
 
40
 
 
41
        /** Adds the scene to the stream, i.e. performes the actual writing*/
 
42
        void add();
 
43
    };
 
44
 
 
45
} //namespace COLLADASW
 
46
 
 
47
 
 
48
 
 
49
#endif //__COLLADASTREAMWRITER_SCENE_H__