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

« back to all changes in this revision

Viewing changes to COLLADASaxFrameworkLoader/include/COLLADASaxFWLPHElement.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 COLLADASaxFrameworkLoader.
 
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 __COLLADASAXFWL_PH_ELEMENT_H__
 
12
#define __COLLADASAXFWL_PH_ELEMENT_H__
 
13
 
 
14
#include "COLLADASaxFWLPrimitiveBase.h"
 
15
 
 
16
 
 
17
namespace COLLADASaxFWL
 
18
{
 
19
 
 
20
    /**
 
21
    * Describes a polygon that contains one or more holes.
 
22
    */
 
23
    class PHElement
 
24
    {
 
25
 
 
26
    private:  
 
27
 
 
28
        /**
 
29
         * Contains a list of UInts that specifies the vertex attributes (indices) for an 
 
30
         * individual polygon. Occures once in a ph element.
 
31
         */
 
32
        PElement mPElement;
 
33
 
 
34
        /**
 
35
         * Contains a list of unsigned ints that specifies the indices of a hole inthe polygon 
 
36
         * specified by <p>. Occures once or more in a ph element.
 
37
         */
 
38
        HArray mHArray;
 
39
 
 
40
    public:
 
41
 
 
42
        /**
 
43
        * Constructor
 
44
        */
 
45
        PHElement () {}
 
46
 
 
47
        /**
 
48
        * Destructor
 
49
        */
 
50
        virtual ~PHElement() {}
 
51
 
 
52
        /**
 
53
        * Contains a list of UInts that specifies the vertex attributes (indices) for an 
 
54
        * individual polygon. Occures once in a ph element.
 
55
        */
 
56
        PElement& getPElement () { return mPElement; }
 
57
        const PElement& getPElement () const { return mPElement; }
 
58
        void setPElement ( const PElement& pElement ) { mPElement = pElement; }
 
59
 
 
60
        /**
 
61
        * Contains a list of unsigned ints that specifies the indices of a hole inthe polygon 
 
62
        * specified by <p>. Occures once or more in a ph element.
 
63
        * @return HArray& Reference to the ph array.
 
64
        */
 
65
        HArray& getHArray () 
 
66
        { 
 
67
            return mHArray; 
 
68
        }
 
69
 
 
70
        /**
 
71
        * Contains a list of unsigned ints that specifies the indices of a hole inthe polygon 
 
72
        * specified by <p>. Occures once or more in a ph element.
 
73
        * @return HArray& Const reference to the ph array.
 
74
        */
 
75
        const HArray& getHArray () const 
 
76
        { 
 
77
            return mHArray; 
 
78
        }
 
79
 
 
80
        /**
 
81
        * Contains a list of unsigned ints that specifies the indices of a hole inthe polygon 
 
82
        * specified by <p>. Occures once or more in a ph element.
 
83
        * @param hArray Reference to the ph array.
 
84
        */
 
85
        void setHArray ( const HArray& hArray ) 
 
86
        { 
 
87
            mHArray = hArray; 
 
88
        }
 
89
 
 
90
    };
 
91
 
 
92
    /**
 
93
     * Array of ph elements.
 
94
     */
 
95
    typedef COLLADAFW::ArrayPrimitiveType<PHElement*> PHArray;
 
96
}
 
97
 
 
98
 
 
99
#endif // __COLLADASAXFWL_PH_ELEMENT_H__