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

« back to all changes in this revision

Viewing changes to COLLADAFramework/include/COLLADAFWIndexList.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 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_INDEXLIST_H__
 
12
#define __COLLADAFW_INDEXLIST_H__
 
13
 
 
14
#include "COLLADAFWPrerequisites.h"
 
15
#include "COLLADAFWTypes.h"
 
16
 
 
17
 
 
18
namespace COLLADAFW
 
19
{
 
20
 
 
21
    class IndexList
 
22
    {
 
23
    private:
 
24
        String mName;
 
25
        UIntValuesArray mIndices;
 
26
        size_t mStride;
 
27
        size_t mSetIndex;
 
28
        size_t mInitialIndex;
 
29
 
 
30
    public:
 
31
        IndexList ()
 
32
            : mName ("")
 
33
                        , mIndices ( UIntValuesArray::OWNER )
 
34
            , mStride (0)
 
35
            , mSetIndex (0)
 
36
            , mInitialIndex (0)
 
37
        {}
 
38
 /**       IndexList ( size_t setIndex, size_t stride, UIntValuesArray& indices )
 
39
            : mName ("")
 
40
            , mIndices (indices)
 
41
            , mStride (stride)
 
42
            , mSetIndex (setIndex)
 
43
            , mInitialIndex (0)
 
44
        {}*/
 
45
        virtual ~IndexList () {}
 
46
 
 
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 (); }
 
51
 
 
52
        void setSetIndex ( size_t inputSet ) { mSetIndex = inputSet; }
 
53
        size_t getSetIndex () const { return mSetIndex; }
 
54
 
 
55
        void setStride ( size_t stride ) { mStride = stride; }
 
56
        size_t getStride () const { return mStride; }
 
57
 
 
58
        const String& getName () const { return mName; }
 
59
        void setName ( const String& val ) { mName = val; }
 
60
 
 
61
        size_t getInitialIndex () const { return mInitialIndex; }
 
62
        void setInitialIndex ( size_t val ) { mInitialIndex = val; }
 
63
 
 
64
    private:
 
65
 
 
66
        /** Disable default copy ctor. */
 
67
        IndexList( const IndexList& pre );
 
68
 
 
69
        /** Disable default assignment operator. */
 
70
        const IndexList& operator= ( const IndexList& pre );
 
71
    };
 
72
 
 
73
 
 
74
    typedef ArrayPrimitiveType<IndexList*> IndexListArray;
 
75
 
 
76
 
 
77
 
 
78
} // namespace COLLADAFW
 
79
 
 
80
#endif // __COLLADAFW_INDEXLIST_H__