This file is indexed.

/usr/include/opencollada/COLLADASaxFrameworkLoader/COLLADASaxFWLPrimitiveBase.h is in opencollada-dev 0.1.0~20140703.ddf8f47+dfsg1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
    Copyright (c) 2008-2009 NetAllied Systems GmbH

    This file is part of COLLADASaxFrameworkLoader.

    Licensed under the MIT Open Source License, 
    for details please see LICENSE file or the website
    http://www.opensource.org/licenses/mit-license.php
*/

#ifndef __COLLADASAXFWL_PRIMITIVE_BASE_H__
#define __COLLADASAXFWL_PRIMITIVE_BASE_H__

#include "COLLADASaxFWLPrerequisites.h"

// TODO
#include "COLLADAFWTypes.h"


namespace COLLADASaxFWL
{

    /** 
     * Base class for the primitives. This are the p and h elements.  
     * The indices in a <p> ("primitive") (or <h>) element refer to different inputs depending on 
     * their order. The first index in a <p> element refers to all inputs with an offset of 0. The 
     * second index refers to all inputs with an offset of 1. Each vertex of the polygon is made 
     * up of one index into each input. After each input is used, the next index again refers to 
     * the inputs with offset of 0 and begins a new vertex.
     * The winding order of vertices produced is counter-clockwise and describes the front side of 
     * each polygon. If the primitives are assembled without vertex normals then the application 
     * may generate per-primitive normals to enable lighting.
     */
    class PrimitiveBase
    {

    private:

        /**
         * Contains a list of unsigned ints that specifies the vertex attributes (indices) for an 
         * individual polygon or for a hole in a polygon.
         */
        COLLADAFW::UIntValuesArray mUIntValuesArray;

        /**
         * The face index of the current primitive indices. 
         */
        size_t mFaceIndex;

    public:

        /** Constructor. */
        PrimitiveBase () {}

        /** Destructor. */
        virtual ~PrimitiveBase () {}

        /**
         * Contains a list of unsigned ints that specifies the vertex attributes (indices) for an 
         * individual polygon or for a hole in a polygon.
         * @return const PrimitiveBase::ValuesArray& Reference to the values array.
         */
        const COLLADAFW::UIntValuesArray& getUIntValuesArray () const 
        { 
            return mUIntValuesArray; 
        }

        /**
         * Contains a list of unsigned ints that specifies the vertex attributes (indices) for an 
         * individual polygon or for a hole in a polygon.
         * @param valuesArraySize The size parameter of the returned array.
         * @return const PrimitiveBase::ValuesArray& Reference to the values array.
         */
        COLLADAFW::UIntValuesArray& getUIntValuesArray () 
        { 
            return mUIntValuesArray; 
        }

        /**
         * Contains a list of unsigned ints that specifies the vertex attributes (indices) for an 
         * individual polygon or for a hole in a polygon.
         * @param valuesArray Reference to the values array.
         * @param valuesArraySize The size parameter of the values array.
         * @param The current face index.
         */
        void setUIntValuesArray ( 
            const COLLADAFW::UIntValuesArray& valuesArray, 
            const size_t faceIndex ) 
        {
            mUIntValuesArray = valuesArray; 
            mFaceIndex = faceIndex;
        }

        /**
         * Get the face index of the current primitive indices. 
         * @return The const value of the current face index.
         */
        size_t getFaceIndex () { return mFaceIndex; }

        /**
         * Get the face index of the current primitive indices. 
         * @return The current face index.
         */
        const size_t getFaceIndex () const { return mFaceIndex; }

        /**
         * Set the face index of the current primitive indices. 
         * @param The current face index.
         */
        void setFaceIndex ( const size_t faceIndex ) { mFaceIndex = faceIndex; }

    };


    /**
     * The p element for the polygon vertex attribute indices.
     */
    typedef COLLADAFW::UIntValuesArray PElement;
    typedef COLLADAFW::ArrayPrimitiveType<PElement*> PArray;

    /**
    * The h element for the polygons hole vertex attribute indices.
    */
    typedef COLLADAFW::UIntValuesArray HElement;
    typedef COLLADAFW::ArrayPrimitiveType<HElement*> HArray;

}

#endif // __COLLADASAXFWL_PRIMITIVE_BASE_H__