QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Friends | List of all members
Qwt3D::VectorWriter Class Reference

Provides EPS, PS, PDF, SVG, PGF and TeX output. More...

#include <qwt3d_io_gl2ps.h>

Inheritance diagram for Qwt3D::VectorWriter:
Qwt3D::IO::Functor

Classes

class  PrivateData
 

Public Types

enum  TEXTMODE { PIXEL , NATIVE , TEX }
 
enum  LANDSCAPEMODE { ON , OFF , AUTO }
 
enum  SORTMODE { NOSORT , SIMPLESORT , BSPSORT }
 

Public Member Functions

 VectorWriter ()
 Provides a new VectorWriter object.
 
void setLandscape (LANDSCAPEMODE val)
 Sets landscape mode.
 
LANDSCAPEMODE landscape () const
 Returns the current landscape mode.
 
void setTextMode (TEXTMODE val, QString fname="")
 Sets the mode for text output.
 
TEXTMODE textMode () const
 Returns the current text output mode.
 
void setSortMode (SORTMODE val)
 Sets the sorting mode.
 
SORTMODE sortMode () const
 Returns the current sorting mode.
 
void setCompressed (bool val)
 Turns compressed output on or off (no effect - zlib support not available)
 
bool compressed () const
 Returns compression mode.
 
bool setFormat (QString const &format)
 Sets output format.
 

Friends

class IO
 

Detailed Description

Provides EPS, PS, PDF, SVG, PGF and TeX output.

VectorWriter provides vector graphics output through the gl2ps library, supporting EPS, PS, PDF, SVG, PGF and TeX formats.

Constructor & Destructor Documentation

◆ VectorWriter()

VectorWriter::VectorWriter ( )

Provides a new VectorWriter object.

Returns
A cloned copy of this VectorWriter as Functor pointer

Member Function Documentation

◆ setFormat()

bool VectorWriter::setFormat ( QString const &  format)

Sets output format.

Parameters
formatMust be one of "EPS_GZ", "PS_GZ", "EPS", "PS", "PDF", "SVG" or "PGF" (case sensitive)
Returns
True on success, false for unknown format

◆ setLandscape()

void VectorWriter::setLandscape ( LANDSCAPEMODE  val)

Sets landscape mode.

Parameters
valLandscape mode (ON, OFF, or AUTO)

◆ setSortMode()

void VectorWriter::setSortMode ( SORTMODE  val)

Sets the sorting mode.

Parameters
valSort mode (NOSORT, SIMPLESORT, or BSPSORT)

◆ setTextMode()

void VectorWriter::setTextMode ( TEXTMODE  val,
QString  fname = "" 
)

Sets the mode for text output.

Parameters
valThe underlying format for the generated output: PIXEL - poor quality but exact positioning; NATIVE - high quality but inexact positioning; TEX - high quality and exact positioning, arbitrary TeX strings as content for the saved labels are possible. The disadvantage is the need for an additionally TeX run to get the final output.
fnameOptional, used only in conjunction with TeX output; file name for the generated TeX file. If not set, a file called "OUTPUT.FOR.tex" will be generated, where "OUTPUT.FOR" describes the file name argument for IO::save().
Note
On Linux platforms, pdflatex seems a file named 'dump_0.pdf.tex' mistakenly to identify as PDF file.

The documentation for this class was generated from the following files: