QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt3d_io_gl2ps.h
1#ifndef qwt3d_io_gl2ps_h
2#define qwt3d_io_gl2ps_h
3
4#include <time.h>
5
6#include "qwt3d_types.h"
7#include "qwt3d_io.h"
8
9namespace Qwt3D {
10
24class QWT3D_EXPORT VectorWriter : public IO::Functor
25{
26 friend class IO;
27
28public:
29 // The possible output formats for the text parts of the scene
30 enum TEXTMODE {
31 PIXEL,
32 NATIVE,
33 TEX
34 };
35
36 // The possible behaviour for landscape settings
37 enum LANDSCAPEMODE {
38 ON,
39 OFF,
40 AUTO
41 };
42
43 // The possible sorting types which are translated in gl2ps types
44 enum SORTMODE {
45 NOSORT,
46 SIMPLESORT,
47 BSPSORT
48 };
49
51
52 // Sets landscape mode
53 void setLandscape(LANDSCAPEMODE val) { landscape_ = val; }
54 // Returns the current landscape mode
55 LANDSCAPEMODE landscape() const { return landscape_; }
56
57 void setTextMode(TEXTMODE val, QString fname = "");
58 // Return current text output mode
59 TEXTMODE textMode() const { return textmode_; }
60
61 // Sets one of the SORTMODE sorting modes
62 void setSortMode(SORTMODE val) { sortmode_ = val; }
63 // Returns gl2ps sorting type
64 SORTMODE sortMode() const { return sortmode_; }
65 // Turns compressed output on or off (no effect if zlib support is not available)
66 void setCompressed(bool val);
67 // Returns compression mode (always false if zlib support has not been set)
68 bool compressed() const { return compressed_; }
69
70 bool setFormat(QString const &format);
71
72private:
73 IO::Functor *clone() const;
74 bool operator()(Plot3D *plot, QString const &fname);
75
76 GLint gl2ps_format_;
77 bool formaterror_;
78 bool compressed_;
79 SORTMODE sortmode_;
80 LANDSCAPEMODE landscape_;
81 TEXTMODE textmode_;
82 QString texfname_;
83};
84
85GLint setDeviceLineWidth(GLfloat val);
86GLint setDevicePointSize(GLfloat val);
87GLint drawDevicePixels(GLsizei width, GLsizei height, GLenum format, GLenum type,
88 const void *pixels);
89GLint drawDeviceText(const char *str, const char *fontname, int fontsize, Qwt3D::Triple pos,
90 Qwt3D::RGBA rgba, Qwt3D::ANCHOR align, double gap);
91void setDevicePolygonOffset(GLfloat factor, GLfloat units);
92
93} // ns
94
95#endif /* include guarded */
更灵活的 IO 处理器实现的 Functor 类
Definition qwt3d_io.h:52
标准和用户自定义 I/O 处理器的通用接口
Definition qwt3d_io.h:33
所有绘图控件的基类
Definition qwt3d_plot.h:31
提供 EPS, PS, PDF, SVG, PGF 和 TeX 输出
Definition qwt3d_io_gl2ps.h:25
红-绿-蓝-透明度值
Definition qwt3d_types.h:480
三元组 [x,y,z]
Definition qwt3d_types.h:240