QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
qwt3d_io_gl2ps.h
1#ifndef QWT3D_IO_GL2PS_H
2#define QWT3D_IO_GL2PS_H
3
4#include <ctime>
5
6#include "qwt3d_types.h"
7#include "qwt3d_io.h"
8
19class QWT3D_EXPORT Qwt3DVectorWriter : public Qwt3DIO::Functor
20{
21 friend class Qwt3DIO;
22 QWT_DECLARE_PRIVATE(Qwt3DVectorWriter)
23
24public:
25 // The possible output formats for the text parts of the scene
26 enum TEXTMODE
27 {
28 PIXEL,
29 NATIVE,
30 TEX
31 };
32
33 // The possible behaviour for landscape settings
34 enum LANDSCAPEMODE
35 {
36 ON,
37 OFF,
38 AUTO
39 };
40
41 // The possible sorting types which are translated in gl2ps types
42 enum SORTMODE
43 {
44 NOSORT,
45 SIMPLESORT,
46 BSPSORT
47 };
48
50 ~Qwt3DVectorWriter() override;
51
52 // Sets landscape mode
53 void setLandscape(LANDSCAPEMODE val);
54 // Returns the current landscape mode
55 LANDSCAPEMODE landscape() const;
56
57 void setTextMode(TEXTMODE val, QString fname = "");
58 // Return current text output mode
59 TEXTMODE textMode() const;
60
61 // Sets one of the SORTMODE sorting modes
62 void setSortMode(SORTMODE val);
63 // Returns gl2ps sorting type
64 SORTMODE sortMode() const;
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;
69
70 bool setFormat(QString const& format);
71
72private:
73 Qwt3DIO::Functor* clone() const override;
74 bool operator()(Qwt3DPlot* plot, QString const& fname) override;
75};
76
77int setDeviceLineWidth(float val);
78int setDevicePointSize(float val);
79int drawDevicePixels(int width, int height, unsigned int format, unsigned int type, const void* pixels);
80int drawDeviceText(const char* str,
81 const char* fontname,
82 int fontsize,
83 Triple pos,
84 RGBA rgba,
85 ANCHOR align,
86 double gap);
87void setDevicePolygonOffset(float factor, float units);
88
89#endif // QWT3D_IO_GL2PS_H
Functor class for more flexible IO handler implementation.
Definition qwt3d_io.h:35
Generic interface for standard and user written I/O handlers.
Definition qwt3d_io.h:23
Pure rendering window for 3D plots.
Definition qwt3d_plot.h:36
Provides EPS, PS, PDF, SVG, PGF and TeX output.
Definition qwt3d_io_gl2ps.h:20
Red-Green-Blue-Alpha value.
Definition qwt3d_types.h:395
Triple [x,y,z].
Definition qwt3d_types.h:201