public class SoPSVectorOutput extends SoVectorOutput
SoPSVectorOutput
is contained in an SoVectorizePSAction
; this is typically the only instance needed.Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoPSVectorOutput()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getColored()
Gets the colored output flag.
|
int |
getLevel()
Returns the PostScript language level.
|
float |
getNumericAccuracy()
Returns the factor used to compute the accuracy of all real numeric values.
|
void |
setColored()
Calls setColored(true).
|
void |
setColored(boolean flag)
Sets the colored output flag.
|
void |
setLevel(int level)
Sets the PostScript language level.
|
void |
setNumericAccuracyFactor(float factor)
Sets the factor used to compute the accuracy of all real numeric values.
|
closeFile, openFile
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public SoPSVectorOutput()
public void setColored()
public int getLevel()
public void setLevel(int level)
SoVectorizeAction.setShadeModel()
.public boolean getColored()
public float getNumericAccuracy()
setNumericAccuracyFactor()
for details.public void setColored(boolean flag)
public void setNumericAccuracyFactor(float factor)
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
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com