Rechercher une page de manuel
SoVectorizePSAction.3coin2
Langue: en
Version: 373798 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- SYNOPSIS
- Detailed Description
- Constructor & Destructor Documentation
- Member Function Documentation
- SoType SoVectorizePSAction::getTypeId (void) const [virtual]Returns the type identification of an action derived from a class inheriting SoAction. This is used for run-time type checking and 'downward' casting.
- SoType SoVectorizePSAction::getClassTypeId (void) [static]Returns the run-time type object associated with instances of this class.
- void SoVectorizePSAction::addMethod (const SoType type, SoActionMethod method) [static]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
- void SoVectorizePSAction::enableElement (const SoType type, const int stackindex) [static]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
- const SoEnabledElementsList & SoVectorizePSAction::getEnabledElements (void) const [protected, virtual]Returns a list of the elements used by action instances of this class upon traversal operations.
- SoEnabledElementsList * SoVectorizePSAction::getClassEnabledElements (void) [static, protected]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
- SoActionMethodList * SoVectorizePSAction::getClassActionMethods (void) [static, protected]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
- void SoVectorizePSAction::initClass (void) [static]Initializes the run-time type system for this class, and sets up the enabled elements and action method list.
- 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) constReturns 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.
- SoPSVectorOutput * SoVectorizePSAction::getOutput (void) constReturns the SoPSVectorOutput used by this instance.
- SoPSVectorOutput * SoVectorizePSAction::getPSOutput (void) constReturns the SoPSVectorOutput used by this instance. Provided for API compatibility with TGS HardCopy support.
- 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.
- 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.
- 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.
- 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.
- 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.
- Author
NAME
SoVectorizePSAction -The SoVectorizePSAction class is used for rendering to a Postscript file.
SYNOPSIS
#include <HardCopy/SoVectorizePSAction.h>
Inherits SoVectorizeAction.
Public Member Functions
virtual SoType getTypeId (void) const
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 SoType getClassTypeId (void)
static void addMethod (const SoType type, SoActionMethod method)
static void enableElement (const SoType type, const int stackindex)
static void initClass (void)
Protected Member Functions
virtual const SoEnabledElementsList & getEnabledElements (void) const
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
Static Protected Member Functions
static SoEnabledElementsList * getClassEnabledElements (void)
static SoActionMethodList * getClassActionMethods (void)
Friends
class SoVectorizePSActionP
Detailed Description
The SoVectorizePSAction class is used for rendering to a Postscript file.
Since:
- Coin 2.1
TGS provides HardCopy support as a separate extension for TGS Inventor.
Constructor & Destructor Documentation
SoVectorizePSAction::SoVectorizePSAction (void)Default constructor.
References SoVectorizeAction::setOutput().
SoVectorizePSAction::~SoVectorizePSAction () [virtual]Default destructor.
Member Function Documentation
SoType SoVectorizePSAction::getTypeId (void) const [virtual]Returns the type identification of an action derived from a class inheriting SoAction. This is used for run-time type checking and 'downward' casting.
Usage example:
void bar(SoAction * action) { if (action->getTypeId() == SoGLRenderAction::getClassTypeId()) { // safe downward cast, know the type SoGLRenderAction * glrender = (SoGLRenderAction *)action; } return; // ignore if not renderaction }
For application programmers wanting to extend the library with new actions: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through Inventor/nodes/SoSubAction.h: SO_ACTION_SOURCE, SO_ACTION_INIT_CLASS and SO_ACTION_CONSTRUCTOR.
For more information on writing Coin extensions, see the SoAction class documentation.
Returns the actual type id of an object derived from a class inheriting SoAction. Needs to be overridden in all subclasses.
Reimplemented from SoVectorizeAction.
SoType SoVectorizePSAction::getClassTypeId (void) [static]Returns the run-time type object associated with instances of this class.
Reimplemented from SoVectorizeAction.
void SoVectorizePSAction::addMethod (const SoType type, SoActionMethod method) [static]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Reimplemented from SoVectorizeAction.
void SoVectorizePSAction::enableElement (const SoType type, const int stackindex) [static]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Reimplemented from SoVectorizeAction.
const SoEnabledElementsList & SoVectorizePSAction::getEnabledElements (void) const [protected, virtual]Returns a list of the elements used by action instances of this class upon traversal operations.
Reimplemented from SoVectorizeAction.
SoEnabledElementsList * SoVectorizePSAction::getClassEnabledElements (void) [static, protected]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
This method not available in the original OIV API, see SoSubAction.h for explanation.
Reimplemented from SoVectorizeAction.
SoActionMethodList * SoVectorizePSAction::getClassActionMethods (void) [static, protected]This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
This method not available in the original OIV API, see SoSubAction.h for explanation.
Reimplemented from SoVectorizeAction.
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) constReturns the default font name.
See also:
- setDefault2DFont()
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) constReturns the SoPSVectorOutput used by this instance.
Reimplemented from SoVectorizeAction.
Referenced by getPSOutput(), printBackground(), printFooter(), printHeader(), and printViewport().
SoPSVectorOutput * SoVectorizePSAction::getPSOutput (void) constReturns 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().
Author
Generated automatically by Doxygen for Coin from the source code.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre