/usr/include/qwtplot3d-qt4/qwt3d_io_gl2ps.h is in libqwtplot3d-qt4-dev 0.2.7+svn191-10.
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 | #ifndef qwt3d_io_gl2ps_h__2004_05_07_01_16_begin_guarded_code
#define qwt3d_io_gl2ps_h__2004_05_07_01_16_begin_guarded_code
#include <time.h>
#if QT_VERSION < 0x040000
#include <qgl.h>
#else
#include <QtOpenGL/qgl.h>
#endif
#include "qwt3d_types.h"
#include "qwt3d_io.h"
namespace Qwt3D
{
//! Provides EPS, PS, PDF and TeX output
/*!
*/
class QWT3D_EXPORT VectorWriter : public IO::Functor
{
friend class IO;
public:
//! The possible output formats for the text parts of the scene
enum TEXTMODE
{
PIXEL, //!< All text will be converted to pixmaps
NATIVE, //!< Text output in the native output format
TEX //!< Text output in additional LaTeX file as an overlay
};
//! The possible behaviour for landscape settings
enum LANDSCAPEMODE
{
ON, //!< Landscape mode on
OFF, //!< Landscape mode off
AUTO //!< The output orientation depends on the plot widgets aspect ratio (default)
};
//! The possible sorting types which are translated in gl2ps types
enum SORTMODE
{
NOSORT, //!< No sorting at all
SIMPLESORT, //!< A more simple (yet quicker) algorithm (default)
BSPSORT //!< BSP SORT (best and slow!)
};
VectorWriter();
void setLandscape(LANDSCAPEMODE val) {landscape_ = val;} //!< Sets landscape mode.
LANDSCAPEMODE landscape() const {return landscape_;} //!< Returns the current landscape mode
void setTextMode(TEXTMODE val, QString fname = "");
TEXTMODE textMode() const {return textmode_;} //!< Return current text output mode.
//! Sets one of the SORTMODE sorting modes.
void setSortMode(SORTMODE val) {sortmode_ = val;}
SORTMODE sortMode() const {return sortmode_;} //!< Returns gl2ps sorting type.
//! Turns compressed output on or off (no effect if zlib support is not available)
void setCompressed(bool val);
//! Returns compression mode (always false if zlib support has not been set)
bool compressed() const {return compressed_;}
bool setFormat(QString const& format);
private:
IO::Functor* clone() const;
bool operator()(Plot3D* plot, QString const& fname);
GLint gl2ps_format_;
bool formaterror_;
bool compressed_;
SORTMODE sortmode_;
LANDSCAPEMODE landscape_;
TEXTMODE textmode_;
QString texfname_;
};
GLint setDeviceLineWidth(GLfloat val);
GLint setDevicePointSize(GLfloat val);
GLint drawDevicePixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
GLint drawDeviceText(const char* str, const char* fontname, int fontsize, Qwt3D::Triple pos, Qwt3D::RGBA rgba, Qwt3D::ANCHOR align, double gap);
void setDevicePolygonOffset(GLfloat factor, GLfloat units);
} // ns
#endif /* include guarded */
|