2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAStreamWriter.
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
12
#ifndef __COLLADASTREAMWRITER_INSTANCE_GEOMETRY_H__
13
#define __COLLADASTREAMWRITER_INSTANCE_GEOMETRY_H__
15
#include "COLLADASWPrerequisites.h"
16
#include "COLLADASWElementWriter.h"
17
#include "COLLADASWBindMaterial.h"
18
#include "COLLADABUURI.h"
25
/** Class to write an @a \<instance_geometry\> element to the stream*/
26
class InstanceGeometry : public ElementWriter
31
/** To bind the materials. */
32
BindMaterial mBindMaterial;
34
/** The URL of the location of the object to instantiate.*/
40
@param The stream the instance geometry should be written to
42
InstanceGeometry ( StreamWriter * streamWriter )
43
: ElementWriter ( streamWriter ), mBindMaterial ( streamWriter ) {}
48
/** Sets the url of the instance geometry*/
49
void setUrl ( const URI& url )
54
/** Returns the url of the instance geometry*/
60
BindMaterial& getBindMaterial()
65
/** Adds the instance geometry to the stream*/
71
} //namespace COLLADASW
76
#endif //__COLLADASTREAMWRITER_INSTANCE_GEOMETRY_H__