2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADAFramework.
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
#ifndef __COLLADAFW_INDEXLIST_H__
12
#define __COLLADAFW_INDEXLIST_H__
14
#include "COLLADAFWPrerequisites.h"
15
#include "COLLADAFWTypes.h"
25
UIntValuesArray mIndices;
33
, mIndices ( UIntValuesArray::OWNER )
38
/** IndexList ( size_t setIndex, size_t stride, UIntValuesArray& indices )
42
, mSetIndex (setIndex)
45
virtual ~IndexList () {}
47
UIntValuesArray& getIndices () { return mIndices; }
48
const UIntValuesArray& getIndices () const { return mIndices; }
49
unsigned int getIndex ( size_t index ) const { return mIndices [index]; }
50
size_t getIndicesCount () const { return mIndices.getCount (); }
52
void setSetIndex ( size_t inputSet ) { mSetIndex = inputSet; }
53
size_t getSetIndex () const { return mSetIndex; }
55
void setStride ( size_t stride ) { mStride = stride; }
56
size_t getStride () const { return mStride; }
58
const String& getName () const { return mName; }
59
void setName ( const String& val ) { mName = val; }
61
size_t getInitialIndex () const { return mInitialIndex; }
62
void setInitialIndex ( size_t val ) { mInitialIndex = val; }
66
/** Disable default copy ctor. */
67
IndexList( const IndexList& pre );
69
/** Disable default assignment operator. */
70
const IndexList& operator= ( const IndexList& pre );
74
typedef ArrayPrimitiveType<IndexList*> IndexListArray;
78
} // namespace COLLADAFW
80
#endif // __COLLADAFW_INDEXLIST_H__