1
#ifndef qwt3d_io_gl2ps_h__2004_05_07_01_16_begin_guarded_code
2
#define qwt3d_io_gl2ps_h__2004_05_07_01_16_begin_guarded_code
6
#if QT_VERSION < 0x040000
9
#include <QtOpenGL/qgl.h>
12
#include "qwt3d_types.h"
18
//! Provides EPS, PS, PDF and TeX output
22
class QWT3D_EXPORT VectorWriter : public IO::Functor
27
//! The possible output formats for the text parts of the scene
30
PIXEL, //!< All text will be converted to pixmaps
31
NATIVE, //!< Text output in the native output format
32
TEX //!< Text output in additional LaTeX file as an overlay
34
//! The possible behaviour for landscape settings
37
ON, //!< Landscape mode on
38
OFF, //!< Landscape mode off
39
AUTO //!< The output orientation depends on the plot widgets aspect ratio (default)
42
//! The possible sorting types which are translated in gl2ps types
45
NOSORT, //!< No sorting at all
46
SIMPLESORT, //!< A more simple (yet quicker) algorithm (default)
47
BSPSORT //!< BSP SORT (best and slow!)
52
void setLandscape(LANDSCAPEMODE val) {landscape_ = val;} //!< Sets landscape mode.
53
LANDSCAPEMODE landscape() const {return landscape_;} //!< Returns the current landscape mode
55
void setTextMode(TEXTMODE val, QString fname = "");
56
TEXTMODE textMode() const {return textmode_;} //!< Return current text output mode.
59
//! Sets one of the SORTMODE sorting modes.
60
void setSortMode(SORTMODE val) {sortmode_ = val;}
61
SORTMODE sortMode() const {return sortmode_;} //!< Returns gl2ps sorting type.
62
//! Turns compressed output on or off (no effect if zlib support is not available)
63
void setCompressed(bool val);
64
//! Returns compression mode (always false if zlib support has not been set)
65
bool compressed() const {return compressed_;}
67
bool setFormat(QString const& format);
70
IO::Functor* clone() const;
71
bool operator()(Plot3D* plot, QString const& fname);
77
LANDSCAPEMODE landscape_;
82
GLint setDeviceLineWidth(GLfloat val);
83
GLint setDevicePointSize(GLfloat val);
84
GLint drawDevicePixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
85
GLint drawDeviceText(const char* str, const char* fontname, int fontsize, Qwt3D::Triple pos, Qwt3D::RGBA rgba, Qwt3D::ANCHOR align, double gap);
86
void setDevicePolygonOffset(GLfloat factor, GLfloat units);
91
#endif /* include guarded */