Coin  4.0.3
Coin3D core library
Loading...
Searching...
No Matches
SoVectorizeAction Class Referenceabstract

The SoVectorizeAction class is the base class for vectorizing Coin scene graphs. More...

#include <Inventor/annex/HardCopy/SoVectorizeAction.h>

Inheritance diagram for SoVectorizeAction:
SoCallbackAction SoAction SoVectorizePSAction

Public Types

enum  ColorTranslationMethod { REVERSE_ONLY_BLACK_AND_WHITE , AS_IS , REVERSE }
 
enum  DimensionUnit { INCH , MM , METER }
 
enum  EndLineStyle { BUTT_END , SQUARE_END , TRIANGULAR_END , ROUND_END }
 
enum  HLHSRMode {
  NO_HLHSR , HLHSR_SIMPLE_PAINTER , HLHSR_PAINTER , HLHSR_PAINTER_SURFACE_REMOVAL ,
  HIDDEN_LINES_REMOVAL
}
 
enum  JoinLineStyle {
  NO_JOIN , MITERED_JOIN , MITERED_BEVELED_JOIN , BEVELED_JOIN ,
  TRIANGULAR_JOIN , ROUNDED_JOIN
}
 
enum  Orientation { PORTRAIT , LANDSCAPE }
 
enum  PageSize {
  A0 = 0 , A1 , A2 , A3 ,
  A4 , A5 , A6 , A7 ,
  A8 , A9 , A10
}
 
enum  PointStyle { CIRCLE , SQUARE }
 
- Public Types inherited from SoCallbackAction
enum  Response { CONTINUE , ABORT , PRUNE }
 
typedef Response SoCallbackActionCB(void *userdata, SoCallbackAction *action, const SoNode *node)
 
- Public Types inherited from SoAction
enum  AppliedCode { NODE = 0 , PATH = 1 , PATH_LIST = 2 }
 
enum  PathCode { NO_PATH = 0 , IN_PATH = 1 , BELOW_PATH = 2 , OFF_PATH = 3 }
 

Public Member Functions

 SoVectorizeAction (void)
 
virtual ~SoVectorizeAction ()
 
virtual void apply (const SoPathList &pathlist, SbBool obeysrules=FALSE)
 
virtual void apply (SoNode *node)
 
virtual void apply (SoPath *path)
 
virtual void beginPage (const SbVec2f &startpagepos, const SbVec2f &pagesize, DimensionUnit u=MM)
 
void beginStandardPage (const PageSize &pagesize, const float border=10.0f)
 
virtual void beginViewport (const SbVec2f &startpos=SbVec2f(-1.0f, 1.0f), const SbVec2f &size=SbVec2f(-1.0f, -1.0f), DimensionUnit u=MM)
 
virtual void calibrate (const SbViewportRegion &vp)
 
virtual void enableLighting (SbBool flag)
 
virtual void endPage (void)
 
virtual void endViewport (void)
 
virtual SbBool getBackgroundColor (SbColor &col) const
 
virtual SbBool getColorPriority (void) const
 
virtual ColorTranslationMethod getColorTranslationMethod (void) const
 
virtual SbVec2f getDrawingDimensions (DimensionUnit u=MM) const
 
HLHSRMode getHLHSRMode (void) const
 
virtual EndLineStyle getLineEndStyle (void) const
 
virtual JoinLineStyle getLineJoinsStyle (void) const
 
virtual float getMiterLimit (void) const
 
virtual float getNominalWidth (DimensionUnit u=MM) const
 
virtual Orientation getOrientation (void) const
 
SoVectorOutputgetOutput (void) const
 
const SbVec2fgetPageSize (void) const
 
const SbVec2fgetPageStartpos (void) const
 
virtual void getPenDescription (SbColor *colors, float *widths, DimensionUnit u=MM) const
 
virtual int getPenNum (void) const
 
virtual float getPixelImageSize (DimensionUnit u=MM) const
 
virtual PointStyle getPointStyle (void) const
 
virtual SbVec2f getStartPosition (DimensionUnit u=MM) const
 
virtual SoType getTypeId (void) const
 
SbBool isLightingEnabled (void) const
 
virtual void setBackgroundColor (SbBool bg, const SbColor &col=SbColor(0.0f, 0.0f, 0.0f))
 
virtual void setBorder (float width)
 
virtual void setBorder (float width, SbColor color)
 
virtual void setColorPriority (SbBool priority)
 
virtual void setColorTranslationMethod (ColorTranslationMethod method)
 
virtual void setDrawingDimensions (const SbVec2f &d, DimensionUnit u=MM)
 
virtual void setDrawingDimensions (float w, float h, DimensionUnit u=MM)
 
virtual void setHLHSRMode (HLHSRMode mode)
 
virtual void setLineEndStyle (EndLineStyle style)
 
virtual void setLineJoinsStyle (JoinLineStyle style)
 
virtual void setMiterLimit (float limit)
 
virtual void setNominalWidth (float w, DimensionUnit u=MM)
 
virtual void setOrientation (Orientation o)
 
virtual void setPenDescription (int num_pens, const SbColor *colors=0, const float *widths=0, DimensionUnit u=MM)
 
virtual void setPixelImageSize (float w, DimensionUnit u=MM)
 
virtual void setPointStyle (const PointStyle &style)
 
virtual void setStartPosition (const SbVec2f &p, DimensionUnit u=MM)
 
virtual void setStartPosition (float x, float y, DimensionUnit u=MM)
 
- Public Member Functions inherited from SoCallbackAction
 SoCallbackAction (const SbViewportRegion &vp)
 
 SoCallbackAction (void)
 
virtual ~SoCallbackAction (void)
 
void addLineSegmentCallback (const SoType type, SoLineSegmentCB *cb, void *userdata)
 
void addPointCallback (const SoType type, SoPointCB *cb, void *userdata)
 
void addPostCallback (const SoType type, SoCallbackActionCB *cb, void *userdata)
 
void addPostTailCallback (SoCallbackActionCB *cb, void *userdata)
 
void addPreCallback (const SoType type, SoCallbackActionCB *cb, void *userdata)
 
void addPreTailCallback (SoCallbackActionCB *cb, void *userdata)
 
void addTriangleCallback (const SoType type, SoTriangleCB *cb, void *userdata)
 
float getComplexity (void) const
 
SoComplexity::Type getComplexityType (void) const
 
const SbVec3fgetCoordinate3 (const int index) const
 
const SbVec4fgetCoordinate4 (const int index) const
 
float getCreaseAngle (void) const
 
virtual SoNodegetCurPathTail (void)
 
Response getCurrentResponse (void) const
 
float getDecimationPercentage (void) const
 
SoDecimationTypeElement::Type getDecimationType (void) const
 
SoDrawStyle::Style getDrawStyle (void) const
 
SoShapeHints::FaceType getFaceType (void) const
 
float getFocalDistance (void) const
 
const SbNamegetFontName (void) const
 
float getFontSize (void) const
 
const SbVec3fgetLightAttenuation (void) const
 
SoLightModel::Model getLightModel (void) const
 
unsigned short getLinePattern (void) const
 
float getLineWidth (void) const
 
void getMaterial (SbColor &ambient, SbColor &diffuse, SbColor &specular, SbColor &emission, float &shininess, float &transparency, const int index=0) const
 
SoMaterialBinding::Binding getMaterialBinding (void) const
 
const SbMatrixgetModelMatrix (void) const
 
const SbVec3fgetNormal (const int index) const
 
SoNormalBinding::Binding getNormalBinding (void) const
 
int32_t getNumCoordinates (void) const
 
uint32_t getNumNormals (void) const
 
int32_t getNumProfileCoordinates (void) const
 
int32_t getNumTextureCoordinates (void) const
 
SoPickStyle::Style getPickStyle (void) const
 
float getPointSize (void) const
 
const SoNodeListgetProfile (void) const
 
const SbVec2fgetProfileCoordinate2 (const int index) const
 
const SbVec3fgetProfileCoordinate3 (const int index) const
 
const SbMatrixgetProjectionMatrix (void) const
 
SoShapeHints::ShapeType getShapeType (void) const
 
int32_t getSwitch (void) const
 
const SbColorgetTextureBlendColor (void) const
 
const SbVec2fgetTextureCoordinate2 (const int index) const
 
const SbVec3fgetTextureCoordinate3 (const int index) const
 
const SbVec4fgetTextureCoordinate4 (const int index) const
 
SoTextureCoordinateBinding::Binding getTextureCoordinateBinding (void) const
 
const unsigned char * getTextureImage (SbVec2s &size, int &numcomps) const
 
const unsigned char * getTextureImage (SbVec3s &size, int &numcomps) const
 
const SbMatrixgetTextureMatrix (void) const
 
SoTexture2::Model getTextureModel (void) const
 
SoTexture2::Wrap getTextureWrapR (void) const
 
SoTexture2::Wrap getTextureWrapS (void) const
 
SoTexture2::Wrap getTextureWrapT (void) const
 
SoUnits::Units getUnits (void) const
 
SoShapeHints::VertexOrdering getVertexOrdering (void) const
 
const SbMatrixgetViewingMatrix (void) const
 
const SbViewportRegiongetViewportRegion (void) const
 
const SbViewVolumegetViewVolume (void) const
 
void invokeLineSegmentCallbacks (const SoShape *const shape, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2)
 
void invokePointCallbacks (const SoShape *const shape, const SoPrimitiveVertex *const v)
 
void invokePostCallbacks (const SoNode *const node)
 
void invokePreCallbacks (const SoNode *const node)
 
void invokeTriangleCallbacks (const SoShape *const shape, const SoPrimitiveVertex *const v1, const SoPrimitiveVertex *const v2, const SoPrimitiveVertex *const v3)
 
SbBool isCallbackAll (void) const
 
void setCallbackAll (SbBool callbackall)
 
void setCurrentNode (SoNode *const node)
 
void setViewportRegion (const SbViewportRegion &vp)
 
SbBool shouldGeneratePrimitives (const SoShape *shape) const
 
- Public Member Functions inherited from SoAction
virtual ~SoAction (void)
 
void apply (SoAction *beingApplied)
 
const SoPathgetCurPath (void)
 
PathCode getCurPathCode (void) const
 
SoNodegetNodeAppliedTo (void) const
 
const SoPathListgetOriginalPathListAppliedTo (void) const
 
SoPathgetPathAppliedTo (void) const
 
PathCode getPathCode (int &numindices, const int *&indices)
 
const SoPathListgetPathListAppliedTo (void) const
 
SoStategetState (void) const
 
AppliedCode getWhatAppliedTo (void) const
 
SbBool hasTerminated (void) const
 
virtual void invalidateState (void)
 
SbBool isLastPathListAppliedTo (void) const
 
virtual SbBool isOfType (SoType type) const
 
void popCurPath (const PathCode prevpathcode)
 
void popCurPath (void)
 
void popPushCurPath (const int childindex, SoNode *node=NULL)
 
void pushCurPath (const int childindex, SoNode *node=NULL)
 
void pushCurPath (void)
 
void switchToNodeTraversal (SoNode *node)
 
void switchToPathTraversal (SoPath *path)
 
void traverse (SoNode *const node)
 
void usePathCode (int &numindices, const int *&indices)
 

Static Public Member Functions

static void addMethod (const SoType type, SoActionMethod method)
 
static void enableElement (const SoType type, const int stackindex)
 
static SoType getClassTypeId (void)
 
static void initClass (void)
 
- Static Public Member Functions inherited from SoCallbackAction
static void addMethod (const SoType type, SoActionMethod method)
 
static void enableElement (const SoType type, const int stackindex)
 
static SoType getClassTypeId (void)
 
static void initClass (void)
 
- Static Public Member Functions inherited from SoAction
static SoType getClassTypeId (void)
 
static void initClass (void)
 
static void initClasses (void)
 
static void nullAction (SoAction *action, SoNode *node)
 

Protected Member Functions

const SbBSPTreegetBSPTree (void) const
 
virtual const SoEnabledElementsListgetEnabledElements (void) const
 
SbVec2f getRotatedViewportSize (void) const
 
SbVec2f getRotatedViewportStartpos (void) const
 
virtual float pixelsToUnits (const int pixels)
 
virtual void printBackground (void) const
 
virtual void printFooter (void) const
 
virtual void printHeader (void) const =0
 
virtual void printItem (const SoVectorizeItem *item) const =0
 
virtual void printViewport (void) const
 
void setOutput (SoVectorOutput *output)
 
- Protected Member Functions inherited from SoCallbackAction
virtual void beginTraversal (SoNode *node)
 
- Protected Member Functions inherited from SoAction
 SoAction (void)
 
virtual void endTraversal (SoNode *node)
 
void setTerminated (const SbBool flag)
 
virtual SbBool shouldCompactPathList (void) const
 

Static Protected Member Functions

static SoActionMethodListgetClassActionMethods (void)
 
static SoEnabledElementsListgetClassEnabledElements (void)
 
- Static Protected Member Functions inherited from SoCallbackAction
static SoActionMethodListgetClassActionMethods (void)
 
static SoEnabledElementsListgetClassEnabledElements (void)
 
- Static Protected Member Functions inherited from SoAction
static SoActionMethodListgetClassActionMethods (void)
 
static SoEnabledElementsListgetClassEnabledElements (void)
 

Additional Inherited Members

- Protected Attributes inherited from SoAction
SoStatestate
 
SoActionMethodListtraversalMethods
 

Detailed Description

The SoVectorizeAction class is the base class for vectorizing Coin scene graphs.

SoVectorizeAction will traverse the scene graph and convert all supported geometry into vectorized data. Subclasses can then use this data to produce vector files of different formats.

Currently supported geometry:

  • Triangles (polygons will be tessellated)
  • Line segments
  • Points (can be drawn as circles or squares)
  • 2D text
  • 3D text (will be converted to triangles)
  • Images (from the SoImage node)

The geometry will be shaded based on the OpenGL shading model, so lights and material will affect the geometry in the same way as in a standard Coin viewer. Please note that neither transparency nor texture mapping is supported yet.

Since
Coin 2.1
TGS provides HardCopy support as a separate extension for TGS Inventor.

Member Enumeration Documentation

◆ DimensionUnit

The unit used by the scene graph.

◆ Orientation

The drawing orientation.

◆ PageSize

The size of the destination page.

Enumerator
A0 

841 x 1189 mm.

A1 

594 x 841 mm.

A2 

420 x 594 mm.

A3 

297 x 420 mm.

A4 

210 x 297 mm.

A5 

148 x 210 mm.

A6 

105 x 148 mm.

A7 

74 x 105 mm.

A8 

52 x 74 mm.

A9 

37 x 52 mm.

A10 

26 x 37 mm.

◆ PointStyle

Enumerates point rendering styles.

Enumerator
CIRCLE 

Render points as circles.

SQUARE 

Render points as squares.

Constructor & Destructor Documentation

◆ SoVectorizeAction()

SoVectorizeAction::SoVectorizeAction ( void )

Default constructor.

◆ ~SoVectorizeAction()

SoVectorizeAction::~SoVectorizeAction ( )
virtual

Destructor.

Member Function Documentation

◆ addMethod()

void SoVectorizeAction::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.

◆ apply() [1/3]

void SoVectorizeAction::apply ( const SoPathList & pathlist,
SbBool obeysrules = FALSE )
virtual

Applies action to the graphs defined by pathlist. If obeysrules is set to TRUE, pathlist must obey the following four conditions (which is the case for path lists returned from search actions for non-group nodes and path lists returned from picking actions):

All paths must start at the same head node. All paths must be sorted in traversal order. The paths must be unique. No path can continue through the end point of another path.

See also
SoAction::apply(SoPath * path)

Reimplemented from SoAction.

◆ apply() [2/3]

void SoVectorizeAction::apply ( SoNode * root)
virtual

Applies the action to the scene graph rooted at root.

Note that you should not apply an action to a node with a zero reference count. The behavior in that case is undefined.

Reimplemented from SoAction.

◆ apply() [3/3]

void SoVectorizeAction::apply ( SoPath * path)
virtual

Applies the action to the parts of the graph defined by path.

Note that an SoPath will also contain all nodes that may influence e.g. geometry nodes in the path. So for instance applying an SoGLRenderAction on an SoPath will render that path as expected in the view, where geometry will get its materials, textures, and other appearance settings correctly.

If the path ends in an SoGroup node, the action will also traverse the tail node's children.

Reimplemented from SoAction.

◆ beginPage()

void SoVectorizeAction::beginPage ( const SbVec2f & startpagepos,
const SbVec2f & pagesize,
DimensionUnit u = MM )
virtual

Begin writing a page. This will write file header information and print background (if enabled) and border.

◆ beginViewport()

void SoVectorizeAction::beginViewport ( const SbVec2f & start = SbVec2f(-1.0f, 1.0f),
const SbVec2f & size = SbVec2f(-1.0f, -1.0f),
DimensionUnit u = MM )
virtual

Begin writing a viewport inside the current page.

See also
beginPage(), endViewport()

◆ calibrate()

void SoVectorizeAction::calibrate ( const SbViewportRegion & vp)
virtual

Will calibrate pixel based attributes (font size, line width, points size, etc) so that it will match OpenGL rendering done in vp.

See also
setPixelSize()
setNominalWidth()

◆ enableElement()

void SoVectorizeAction::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.

◆ enableLighting()

void SoVectorizeAction::enableLighting ( SbBool flag)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ endPage()

void SoVectorizeAction::endPage ( void )
virtual

End page. This will write all remaining geometry, and write the file footer.

◆ endViewport()

void SoVectorizeAction::endViewport ( void )
virtual

End writing a viewport. This will flush all vector items.

◆ getBackgroundColor()

SbBool SoVectorizeAction::getBackgroundColor ( SbColor & col) const
virtual

Returns if the background will be cleared or not. When this function returns TRUE, col will be set to the background color.

◆ getBSPTree()

const SbBSPTree & SoVectorizeAction::getBSPTree ( void ) const
protected

Returns the bps tree used to store triangle and line vertices.

◆ getClassActionMethods()

SoActionMethodList * SoVectorizeAction::getClassActionMethods ( void )
staticprotected

Returns list of action methods for this class. The enabledElements and methods variables are protected in the original OIV API. This is not such a good idea, since exposed static class member variables is a major grievance with regard to Win32 DLLs. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.

◆ getClassEnabledElements()

SoEnabledElementsList * SoVectorizeAction::getClassEnabledElements ( void )
staticprotected

Returns list of enabled elements for this class. The enabledElements and methods variables are protected in the original OIV API. This is not such a good idea, since exposed static class member variables is a major grievance with regard to Win32 DLLs. This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.

◆ getClassTypeId()

SoType SoVectorizeAction::getClassTypeId ( void )
static

This static method returns the SoType object associated with objects of this class.

◆ getColorPriority()

SbBool SoVectorizeAction::getColorPriority ( void ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getColorTranslationMethod()

SoVectorizeAction::ColorTranslationMethod SoVectorizeAction::getColorTranslationMethod ( void ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getDrawingDimensions()

SbVec2f SoVectorizeAction::getDrawingDimensions ( DimensionUnit u = MM) const
virtual

Returns the current drawing dimensions.

◆ getEnabledElements()

const SoEnabledElementsList & SoVectorizeAction::getEnabledElements ( void ) const
protectedvirtual

Returns list of enabled elements.

Reimplemented from SoCallbackAction.

Reimplemented in SoVectorizePSAction.

◆ getHLHSRMode()

SoVectorizeAction::HLHSRMode SoVectorizeAction::getHLHSRMode ( void ) const

Not implemented yet. Provided for TGS OIV compatibility.

◆ getLineEndStyle()

SoVectorizeAction::EndLineStyle SoVectorizeAction::getLineEndStyle ( void ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getLineJoinsStyle()

SoVectorizeAction::JoinLineStyle SoVectorizeAction::getLineJoinsStyle ( void ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getOrientation()

SoVectorizeAction::Orientation SoVectorizeAction::getOrientation ( void ) const
virtual

Returns the current orientation.

See also
setOrientation()

◆ getOutput()

SoVectorOutput * SoVectorizeAction::getOutput ( void ) const

Returns the SoVectorOutput class used by this action. The output is written to stdout by default, but you can change this by using SoVectorOutput::openFile().

◆ getPageSize()

const SbVec2f & SoVectorizeAction::getPageSize ( void ) const

Returns the current page size.

◆ getPageStartpos()

const SbVec2f & SoVectorizeAction::getPageStartpos ( void ) const

Returns the current page startpos.

◆ getPenDescription()

void SoVectorizeAction::getPenDescription ( SbColor * colors,
float * widths,
DimensionUnit u = MM ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getPenNum()

int SoVectorizeAction::getPenNum ( void ) const
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ getPixelImageSize()

float SoVectorizeAction::getPixelImageSize ( DimensionUnit u = MM) const
virtual

Returns the pixel image size.

See also
setPixelImageSize()

◆ getPointStyle()

SoVectorizeAction::PointStyle SoVectorizeAction::getPointStyle ( void ) const
virtual

Returns the points rendering style.

◆ getRotatedViewportSize()

SbVec2f SoVectorizeAction::getRotatedViewportSize ( void ) const
protected

Convenience method for subclasses. Will return the viewport size, taking the orientation into account

◆ getRotatedViewportStartpos()

SbVec2f SoVectorizeAction::getRotatedViewportStartpos ( void ) const
protected

Convenience method for subclasses. Will return the viewport startpos, taking the orientation into account

◆ getStartPosition()

SbVec2f SoVectorizeAction::getStartPosition ( DimensionUnit u = MM) const
virtual

Returns the current drawing starting position.

◆ getTypeId()

SoType SoVectorizeAction::getTypeId ( void ) const
virtual

Returns the type identification of an object derived from a class inheriting SoAction. This is used for runtime type checking and "downward" casting.

Reimplemented from SoCallbackAction.

Reimplemented in SoVectorizePSAction.

◆ initClass()

void SoVectorizeAction::initClass ( void )
static

Initializes the runtime type system for this class, and sets up the enabled elements and action method list.

◆ isLightingEnabled()

SbBool SoVectorizeAction::isLightingEnabled ( void ) const

Not implemented yet. Provided for TGS OIV compatibility.

◆ pixelsToUnits()

float SoVectorizeAction::pixelsToUnits ( const int pixels)
protectedvirtual

Converts pixels to normalized units.

◆ printBackground()

void SoVectorizeAction::printBackground ( void ) const
protectedvirtual

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 in SoVectorizePSAction.

◆ printFooter()

void SoVectorizeAction::printFooter ( void ) const
protectedvirtual

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 in SoVectorizePSAction.

◆ printHeader()

void SoVectorizeAction::printHeader ( void ) const
protectedpure virtual

This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.

Implemented in SoVectorizePSAction.

◆ printItem()

void SoVectorizeAction::printItem ( const SoVectorizeItem * item) const
protectedpure 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.

Implemented in SoVectorizePSAction.

◆ printViewport()

void SoVectorizeAction::printViewport ( void ) const
protectedvirtual

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 in SoVectorizePSAction.

◆ setBackgroundColor()

void SoVectorizeAction::setBackgroundColor ( SbBool bg,
const SbColor & col = SbColor(0.0f, 0.0f, 0.0f) )
virtual

Sets the background color. If bg is FALSE, the background will not be cleared before rendering. If bg is TRUE, the background will be cleared to col before in beginPage().

◆ setBorder() [1/2]

void SoVectorizeAction::setBorder ( float width)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setBorder() [2/2]

void SoVectorizeAction::setBorder ( float width,
SbColor color )
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setColorPriority()

void SoVectorizeAction::setColorPriority ( SbBool priority)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setColorTranslationMethod()

void SoVectorizeAction::setColorTranslationMethod ( ColorTranslationMethod method)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setDrawingDimensions()

void SoVectorizeAction::setDrawingDimensions ( const SbVec2f & d,
DimensionUnit u = MM )
virtual

Sets the drawing dimensions. You can use this and setStartPosition() instead of using beginViewport(). Provided for TGS OIV compatibility.

See also
beginViewport()

◆ setHLHSRMode()

void SoVectorizeAction::setHLHSRMode ( HLHSRMode mode)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setLineEndStyle()

void SoVectorizeAction::setLineEndStyle ( EndLineStyle style)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setLineJoinsStyle()

void SoVectorizeAction::setLineJoinsStyle ( JoinLineStyle style)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setMiterLimit()

void SoVectorizeAction::setMiterLimit ( float limit)
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setNominalWidth()

void SoVectorizeAction::setNominalWidth ( float w,
DimensionUnit u = MM )
virtual

Sets how to convert pixel based attributes (line width and point size) to vector sizes. By default 1 pixel equals 0.35 mm.

See also
calibrate()

◆ setOrientation()

void SoVectorizeAction::setOrientation ( Orientation o)
virtual

Sets the orientation to o.

◆ setOutput()

void SoVectorizeAction::setOutput ( SoVectorOutput * output)
protected

Should be used by subclasses to set the SoVectorOutput instance that should be used.

◆ setPenDescription()

void SoVectorizeAction::setPenDescription ( int num_pens,
const SbColor * colors = 0,
const float * widths = 0,
DimensionUnit u = MM )
virtual

Not implemented yet. Provided for TGS OIV compatibility.

◆ setPixelImageSize()

void SoVectorizeAction::setPixelImageSize ( float w,
DimensionUnit u = MM )
virtual

Sets how the images and 2D fonts are converted. By default 1 pixel equals 0.35 mm.

See also
calibrate()

◆ setPointStyle()

void SoVectorizeAction::setPointStyle ( const PointStyle & style)
virtual

Sets the points rendering style. Default style is CIRCLE.

◆ setStartPosition()

void SoVectorizeAction::setStartPosition ( const SbVec2f & p,
DimensionUnit u = MM )
virtual

Sets the drawing staring position. You can use this and setDrawingDimensions() instead of using beginViewport(). Provided for TGS OIV compatibility.


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