/usr/include/vtk-6.2/QVTKPaintEngine.h is in libvtk6-qt-dev 6.2.0+dfsg1-10build1.
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 | /*=========================================================================
Copyright 2004 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
license for use of this work by or on behalf of the
U.S. Government. Redistribution and use in source and binary forms, with
or without modification, are permitted provided that this Notice and any
statement of authorship are reproduced on all copies.
=========================================================================*/
/*========================================================================
For general information about using VTK and Qt, see:
http://www.trolltech.com/products/3rdparty/vtksupport.html
=========================================================================*/
/*========================================================================
!!! WARNING for those who want to contribute code to this file.
!!! If you use a commercial edition of Qt, you can modify this code.
!!! If you use an open source version of Qt, you are free to modify
!!! and use this code within the guidelines of the GPL license.
!!! Unfortunately, you cannot contribute the changes back into this
!!! file. Doing so creates a conflict between the GPL and BSD-like VTK
!!! license.
=========================================================================*/
// .NAME QVTKPaintEngine - directs QPainter calls to a VTK window
#ifndef QVTK_PAINT_ENGINE_HPP
#define QVTK_PAINT_ENGINE_HPP
#include "QVTKWin32Header.h"
#include <QPaintEngine>
class QVTKWidget;
class QVTKPaintEngineInternal;
//! A paint engine class to direct QPainter calls into a VTK window
class QVTKPaintEngine : public QPaintEngine
{
public:
QVTKPaintEngine();
~QVTKPaintEngine();
// Description:
// begin painting on device (QVTKWidget)
bool begin(QPaintDevice* dev);
// Description:
// end painting on device
bool end();
// Description:
// returns type User
QPaintEngine::Type type() const;
// Description:
// updateState
void updateState(const QPaintEngineState&);
// Description:
// draw a pixmap
void drawPixmap(const QRectF& r, const QPixmap& pm, const QRectF& sr);
// Description:
// draw a path
void drawPath(const QPainterPath& path);
// Description:
// draw a polygon
void drawPolygon(const QPointF* points, int pointCount, PolygonDrawMode mode);
void drawPolygon(const QPoint* points, int pointCount, PolygonDrawMode mode);
protected:
QVTKWidget* Widget;
QVTKPaintEngineInternal* Internal;
};
#endif
|