2
Copyright (c) 2009 NetAllied Systems GmbH
4
This file is part of dae23ds.
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
11
#include "dae23dsStableHeaders.h"
12
#include "DAE23dsMaterialsLengthCalculator.h"
18
//------------------------------
19
MaterialsLengthCalculator::MaterialsLengthCalculator( Writer* writer3ds )
20
: MaterialsBase(writer3ds)
25
//------------------------------
26
MaterialsLengthCalculator::~MaterialsLengthCalculator()
30
//------------------------------
31
void MaterialsLengthCalculator::calculate()
33
Writer::UniqueIdFWMaterialMap::const_iterator it = mUniqueIdFWMaterialMap.begin();
34
for ( ; it != mUniqueIdFWMaterialMap.end(); ++it )
36
const COLLADAFW::Material* material = &it->second;
37
addToObjectAndMaterialBlockLength(calculateMaterialBlockLength( material ));
40
} // namespace DAE23ds