QwtPlot3D API  0.2.7
Public Types | Public Member Functions | List of all members
VectorWriter Class Reference

#include <qwt3d_io_gl2ps.h>

Inheritance diagram for VectorWriter:
IO::Functor

Public Types

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

Public Member Functions

void setLandscape (LANDSCAPEMODE val)
 
LANDSCAPEMODE landscape () const
 
void setTextMode (TEXTMODE val, QString fname="")
 
TEXTMODE textMode () const
 
void setSortMode (SORTMODE val)
 
SORTMODE sortMode () const
 
void setCompressed (bool val)
 
bool compressed () const
 
bool setFormat (QString const &format)
 

Member Enumeration Documentation

enum TEXTMODE

The possible output formats for the text parts of the scene.

Enumerator
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.

Enumerator
ON 

Landscape mode on.

OFF 

Landscape mode off.

AUTO 

The output orientation depends on the plot widgets aspect ratio (default)

enum SORTMODE

The possible sorting types which are translated in gl2ps types.

Enumerator
NOSORT 

No sorting at all.

SIMPLESORT 

A more simple (yet quicker) algorithm (default)

BSPSORT 

BSP SORT (best and slow!)

Member Function Documentation

void 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().

(04/05/27: On Linux platforms, pdflatex seems a file named 'dump_0.pdf.tex' mistakenly to identify as PDF file.)

References VectorWriter::setCompressed().

Referenced by Plot3D::saveVector().

SORTMODE sortMode ( ) const
inline

Returns gl2ps sorting type.

void setCompressed ( bool  val)

Turns compressed output on or off (no effect if zlib support is not available)

Turns compressed output on or off (no effect if zlib support has not been set)

Referenced by PixmapWriter::setQuality(), and VectorWriter::setTextMode().

bool setFormat ( QString const &  format)

Set output format, must be one of "EPS_GZ", "PS_GZ", "SVG_GZ", "EPS", "PS", "PDF", "SVG", or "PGF" (case sensitive)

References VectorWriter::AUTO, VectorWriter::BSPSORT, VectorWriter::NOSORT, VectorWriter::ON, VectorWriter::SIMPLESORT, Plot3D::updateData(), Label::useDeviceFonts(), and Triple::x.

Referenced by PixmapWriter::setQuality().


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