This file is indexed.

/usr/share/sip/PyQt4/Qwt3D/qwt3d_plot.sip is in python-qwt3d-qt4 0.1.7~cvs20090625-12build1.

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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// The SIP interface definition for:
// - class Plot3D
//
// Copyright (C) 2004-2008 Gerard Vermeulen
//
// This file is part of PyQwt3D.
//
// PyQwt3D is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// PyQwt3D is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with PyQwt3D; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//
// In addition, as a special exception, Gerard Vermeulen gives permission
// to link PyQwt3D dynamically with non-free versions of Qt and PyQt,
// and to distribute PyQwt3D in this form, provided that equally powerful
// versions of Qt and PyQt have been released under the terms of the GNU
// General Public License.
//
// If PyQwt3D is dynamically linked with non-free versions of Qt and PyQt,
// PyQwt3D becomes a free plug-in for a non-free program.


class Plot3D: QGLWidget
{

%TypeHeaderCode
#include <qwt3d_plot.h>
using namespace Qwt3D;
%End // %TypeHeaderCode

public:

%ConvertToSubClassCode
    static struct class_graph {
        const char *name;
        sipWrapperType **type;
        int yes, no;
    } graph[] = {
        {sipName_Plot3D, &sipClass_Plot3D, 1, -1},
        {sipName_SurfacePlot, &sipClass_SurfacePlot, -1, -1},
    };
    int i = 0;
    sipClass = NULL;
    do {
        struct class_graph *cg = &graph[i];
        if (cg->name != NULL && sipCpp->inherits(cg->name)) {
            sipClass = *cg->type;
            i = cg->yes;
        } else {
            i = cg->no;
        }
    } while (i >= 0);
%End

%If (HAS_QT3)
    Plot3D(QWidget * /TransferThis/ = 0, const char * = 0);
%End // (HAS_QT3) 
%If (HAS_QT4)
    Plot3D(QWidget * /TransferThis/ = 0, const QGLWidget * = 0);
%End // (HAS_QT4) 
    virtual ~Plot3D();

    void updateData();
    void createCoordinateSystem(Triple, Triple);
    CoordinateSystem * coordinates();
    ColorLegend * legend();

    double xRotation() const;
    double yRotation() const;
    double zRotation() const;

    double xShift() const;
    double yShift() const;
    double zShift() const;

    double xViewportShift() const;
    double yViewportShift() const;

    double xScale() const;
    double yScale() const;
    double zScale() const;

    double zoom() const;

    bool ortho() const;
    void setPlotStyle(PLOTSTYLE);
    Enrichment * setPlotStyle(const Enrichment &);
    PLOTSTYLE plotStyle() const;
    Enrichment * userStyle() const;
    void setShading(SHADINGSTYLE);
    SHADINGSTYLE shading() const;
    void setIsolines(int);
    int isolines() const;
    
    void setSmoothMesh(bool);
    bool smoothDataMesh() const;
    void setBackgroundColor(RGBA);
    RGBA backgroundRGBAColor() const;
    void setMeshColor(RGBA);
    RGBA meshColor() const;
    void setMeshLineWidth(double);
    double meshLineWidth() const;
    void setDataColor(Color *);
    const Color * dataColor() const;

    virtual Enrichment * addEnrichment(const Enrichment &);
    virtual bool degrade(Enrichment *);

    ParallelEpiped hull() const;

    void showColorLegend(bool);

    void setCoordinateStyle(COORDSTYLE);
    void setPolygonOffset(double);
    double polygonOffset() const;

    void setTitlePosition(double, double = 0.5, ANCHOR = TopCenter);
    void setTitleFont(const QString &, int, int = QFont::Normal, bool = false);
    void setTitleColor(RGBA);

    void setTitle(const QString &);

    void assignMouse(MouseState, MouseState, MouseState,
                     MouseState, MouseState, MouseState,
                     MouseState, MouseState, MouseState);

    bool mouseEnabled() const;
    void assignKeyboard(KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState,
                        KeyboardState, KeyboardState);

    bool keyboardEnabled() const;
    void setKeySpeed(double, double, double);
    void keySpeed(double &, double &, double &) const;

    bool lightingEnabled() const;
    void illuminate(unsigned = 0);
    void blowout(unsigned = 0);

    void setMaterialComponent(GLenum, double, double, double, double = 1.0);
    void setMaterialComponent(GLenum, double);
    void setShininess(double);

signals:
    void rotationChanged(double, double, double);
    void shiftChanged(double, double, double);
    void vieportShiftChanged(double, double);
    void scaleChanged(double, double, double);
    void zoomChanged(double);
    void projectionChanged(bool);

public slots:
    void setRotation(double, double, double);
    void setShift(double, double, double);
    void setViewportShift(double, double);
    void setScale(double, double, double);
    void setZoom(double);
    
    void setOrtho(bool);
    void enableMouse(bool = true);
    void disableMouse(bool = true);
    void enableKeyboard(bool = true);
    void disableKeyboard(bool = true);
    void enableLighting(bool = true);
    void disableLighting(bool = true);
    void setLightRotation(double, double, double, unsigned = 0);
    void setLightShift(double, double, double, unsigned = 0);
    virtual bool savePixmap(const QString &, const QString &);
    virtual bool saveVector(const QString &, const QString &,
                            VectorWriter::TEXTMODE, VectorWriter::SORTMODE);
    virtual bool save(const QString &, const QString &);

protected:
    //typedef std::list<Qwt3D::Enrichment*> EnrichmentList;
    //typedef EnrichmentList::iterator ELIT;
    //CoordinateSystem coordinates_p;
    //Color* datacolor_p;
    //Enrichment* userplotstyle_p;
    //EnrichmentList elist_p;
    //std::vector<GLuint> displaylists_p;
    //Qwt3D::Data* actualData_p;

    void initializeGL();
    void paintGL();
    void resizeGL(int, int);

    void mousePressEvent(QMouseEvent *);
    void mouseReleaseEvent(QMouseEvent *);
    void mouseMoveEvent(QMouseEvent *);
    void wheelEvent(QWheelEvent *);

    void keyPressEvent(QKeyEvent *);

    virtual void calculateHull() = 0;
    virtual void createData() = 0;
    virtual void createEnrichment(Enrichment &);
    virtual void createEnrichments();

    void createCoordinateSystem();
    void setHull(ParallelEpiped);

    bool initializedGL() const;

    enum OBJECTS {
        DataObject,
        LegendObject,
        NormalObject,
        DisplayListSize,
    };
    
}; // class Plot3D


// Local Variables:
// mode: C++
// c-file-style: "stroustrup"
// indent-tabs-mode: nil
// End: