SoPSVectorOutput Class Reference
[HardCopy]

HardCopy Class used to write vector formatted files in PostScript format. More...

#include <HardCopy/SoVectorizePSAction.h>

Inheritance diagram for SoPSVectorOutput:
SoVectorOutput

List of all members.

Public Member Functions

 SoPSVectorOutput ()
virtual ~SoPSVectorOutput ()
void setColored (SbBool flag=TRUE)
SbBool getColored () const



void setLevel (unsigned int level)
unsigned int getLevel () const
void setNumericAccuracyFactor (float factor)
float getNumericAccuracy () const

Detailed Description

HardCopy Class used to write vector formatted files in PostScript format.

This class is used for writing vector formatted files in Adobe PostScript format. It provides some convenience functions for handling files. An instance of SoPSVectorOutput is contained in an SoVectorizePSAction; this is typically the only instance needed.


Constructor & Destructor Documentation

SoPSVectorOutput::SoPSVectorOutput (  ) 

Constructor.

The default constructor writes to stdout.

virtual SoPSVectorOutput::~SoPSVectorOutput (  )  [virtual]

Destructor.

The destructor closes any files opened by the SoPSVectorOutput.


Member Function Documentation

SbBool SoPSVectorOutput::getColored (  )  const [inline]

Gets the colored output flag.

unsigned int SoPSVectorOutput::getLevel (  )  const [inline]

Returns the PostScript language level.

float SoPSVectorOutput::getNumericAccuracy (  )  const [inline]

Returns the factor used to compute the accuracy of all real numeric values.

See setNumericAccuracyFactor() for details.

void SoPSVectorOutput::setColored ( SbBool  flag = TRUE  )  [inline]

Sets the colored output flag.

By default, the flag is set to TRUE.

void SoPSVectorOutput::setLevel ( unsigned int  level  ) 

Sets the PostScript language level.

Supported levels range from 1 to 3. The default level is 2. With levels 1 and 2, only flat shading is supported whereas with level 3 and higher, smooth shading is supported. See also SoVectorizeAction::setShadeModel().

void SoPSVectorOutput::setNumericAccuracyFactor ( float  factor  )  [inline]

Sets the factor used to compute the accuracy of all real numeric values.

The default value is 0.1.

In order to reduce the PostScript file size, all real numeric values are stored as integer values. The formula used to compute an integer value from a real numeric value is the following:

Integer part of (realValue / (0.24 * NumericAccuracyFactor)) + 0.5

All integer values are globally scaled by 0.24 * NumericAccuracyFactor. Thus this factor allows you to specify higher or lower accuracy, which will have a significant influence on the size of the resulting file. The range of this factor is usually 0.01 <= NumericAccuracyFactor <= 1.0


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

Open Inventor Toolkit reference manual, generated on 22 Sep 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/