1 /* 2 Copyright (c) 2008-2009 NetAllied Systems GmbH 3 4 This file is part of COLLADAFramework. 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 #ifndef __COLLADAFW_TRIFANS_H__ 12 #define __COLLADAFW_TRIFANS_H__ 13 14 #include "COLLADAFWPrerequisites.h" 15 #include "COLLADAFWMeshPrimitiveWithFaceVertexCount.h" 16 17 18 namespace COLLADAFW 19 { 20 21 /** TODO Documentation */ 22 class Trifans : public MeshPrimitiveWithFaceVertexCount<unsigned int> 23 { 24 private: 25 /** The number of trifans.*/ 26 size_t mTrifanCount; 27 28 29 public: 30 31 /** Constructor. */ Trifans(const UniqueId & uniqueId)32 Trifans ( const UniqueId& uniqueId ) 33 : MeshPrimitiveWithFaceVertexCount<unsigned int>( uniqueId, TRIANGLE_FANS ) 34 , mTrifanCount(0) 35 {} 36 37 /** Destructor. */ ~Trifans()38 virtual ~Trifans(){} 39 40 /** Gets the number of trifans.*/ getTrifanCount()41 size_t getTrifanCount () const { return mTrifanCount; } 42 43 /** Sets the number of trifans.*/ setTrifanCount(size_t count)44 void setTrifanCount ( size_t count ) { mTrifanCount = count; } 45 46 47 private: 48 49 /** Disable default copy ctor. */ 50 Trifans( const Trifans& pre ); 51 52 /** Disable default assignment operator. */ 53 const Trifans& operator= ( const Trifans& pre ); 54 55 }; 56 57 } // namespace COLLADAFW 58 59 #endif // __COLLADAFW_TRIFANS_H__ 60