![]() |
http://www.sim.no http://www.coin3d.org |
The SoVectorizePSAction class is used for rendering to a Postscript file. More...
#include <HardCopy/SoVectorizePSAction.h>
Public Member Functions | |
SoVectorizePSAction (void) | |
virtual | ~SoVectorizePSAction () |
void | setDefault2DFont (const SbString &fontname) |
const SbString & | getDefault2DFont (void) const |
void | setGouraudThreshold (const double eps) |
SoPSVectorOutput * | getOutput (void) const |
SoPSVectorOutput * | getPSOutput (void) const |
Static Public Member Functions | |
static void | initClass (void) |
Protected Member Functions | |
virtual void | printHeader (void) const |
virtual void | printFooter (void) const |
virtual void | printBackground (void) const |
virtual void | printItem (const SoVectorizeItem *item) const |
virtual void | printViewport (void) const |
Friends | |
class | SoVectorizePSActionP |
The SoVectorizePSAction class is used for rendering to a Postscript file.
SoVectorizePSAction::SoVectorizePSAction | ( | void | ) |
Default constructor.
References SoVectorizeAction::setOutput().
SoVectorizePSAction::~SoVectorizePSAction | ( | ) | [virtual] |
Default destructor.
void SoVectorizePSAction::initClass | ( | void | ) | [static] |
Initializes the run-time type system for this class, and sets up the enabled elements and action method list.
Reimplemented from SoVectorizeAction.
Referenced by SoHardCopy::init().
void SoVectorizePSAction::setDefault2DFont | ( | const SbString & | fontname | ) |
Sets the default font name. This font will be used for rendering Text2-nodes which have no Font-nodes preceding them. The default value is "Courier".
const SbString & SoVectorizePSAction::getDefault2DFont | ( | void | ) | const |
Returns the default font name.
void SoVectorizePSAction::setGouraudThreshold | ( | const double | eps | ) |
Sets the Gouraud shading threshold. A threshold of 0.0 will disable Gouraud shading. A smaller value will yield more accurate Gouraud shading. Default is 0.1.
Since the postscript language has no support for Gouraud shaded triangles, each triangle will be split into subtriangles approximately of size eps postscript units. One postscript unit is approximately 1/72 inch.
SoPSVectorOutput * SoVectorizePSAction::getOutput | ( | void | ) | const |
Returns the SoPSVectorOutput used by this instance.
Reimplemented from SoVectorizeAction.
Referenced by getPSOutput(), printBackground(), printFooter(), printHeader(), and printViewport().
SoPSVectorOutput * SoVectorizePSAction::getPSOutput | ( | void | ) | const |
Returns the SoPSVectorOutput used by this instance. Provided for API compatibility with TGS HardCopy support.
References getOutput().
void SoVectorizePSAction::printHeader | ( | void | ) | const [protected, virtual] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Implements SoVectorizeAction.
References SoVectorOutput::getFilePointer(), SoVectorizeAction::getOrientation(), getOutput(), SoVectorizeAction::getPageSize(), and SoVectorizeAction::getPageStartpos().
void SoVectorizePSAction::printFooter | ( | void | ) | const [protected, virtual] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Should be overridden by subclasses to print file footer data.
Reimplemented from SoVectorizeAction.
References SoVectorOutput::getFilePointer(), and getOutput().
void SoVectorizePSAction::printBackground | ( | void | ) | const [protected, virtual] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Should be overridden by subclasses to print background data.
Reimplemented from SoVectorizeAction.
References SoVectorizeAction::getBackgroundColor(), SoVectorOutput::getFilePointer(), getOutput(), SoVectorizeAction::getRotatedViewportSize(), and SoVectorizeAction::getRotatedViewportStartpos().
void SoVectorizePSAction::printItem | ( | const SoVectorizeItem * | item | ) | const [protected, virtual] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Should be overridden by subclasses to print an item.
Implements SoVectorizeAction.
void SoVectorizePSAction::printViewport | ( | void | ) | const [protected, virtual] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Should be overridden by subclasses to set up the current page viewport.
Reimplemented from SoVectorizeAction.
References SoVectorOutput::getFilePointer(), getOutput(), SoVectorizeAction::getRotatedViewportSize(), and SoVectorizeAction::getRotatedViewportStartpos().
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Feb 28 2011 10:12:23 for Coin by Doxygen. 1.7.3