SoVectorizeAction Class |
Abstract class for vectorizing a scene graph to a file.
Namespace: OIV.HardCopy
The SoVectorizeAction type exposes the following members.
Name | Description | |
---|---|---|
![]() | Apply(SoNode) | Initiates an action on the graph specified by a node. |
![]() | Apply(SoPath) | Initiates an action on the graph specified by a path. |
![]() | Apply(SoPathList) | Calls Apply(pathList, false). |
![]() | Apply(SoPathList, Boolean) | Initiates an action on the graph specified by list of paths. |
![]() | BeginPage(SbVec2f, SbVec2f) | Calls BeginPage(startPagePosition, pageSize, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | BeginPage(SbVec2f, SbVec2f, SoVectorizeActionDimensionUnits) | Begin a new page. |
![]() | CallPrepareAction | Obsolete. Calls CallPrepareAction(action, true). |
![]() | ClearApplyResult | When applied, an action may reference nodes or create objects (e.g. |
![]() ![]() | EnableElement | |
![]() | EnableElements | (Overrides SoActionEnableElements.) |
![]() | EnableLighting | Allows the user to enable/disable the taking into account of lights in the scene graph during the computation of the vectorized file. |
![]() | EndPage | Ends a page. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | ForwardTraversal | Traverse a node that is not part of the current scenegraph. |
![]() | GetBackgroundColor | Returns the color of the background. |
![]() | GetBorder | Returns the color and the width of the border of the clipping limits. |
![]() | GetColorPriority | Returns the color priority. |
![]() | GetColorTranslationMethod | Returns the method for choosing the color of the drawing on the sheet of paper. |
![]() | GetContinueActionInBranchFlag | This function indicates if the action must stop in the current branch. |
![]() | GetCurPath | (Inherited from SoAction.) |
![]() | GetDrawingDimensions | Calls GetDrawingDimensions(OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetDrawingDimensions(SoVectorizeActionDimensionUnits) | Returns the dimensions of the drawing on the sheet of paper. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetHLHSRMode | Returns the Hidden Line and Hidden Surface Removal mode. |
![]() | GetHLHSRRasterCaching | Returns the raster caching flag. |
![]() | GetHLHSRRasterQuality | Returns the raster image quality value. |
![]() | GetLineEndStyle | Returns the style for line ends. |
![]() | GetLineJoinsStyle | Returns the style for line joins. |
![]() | GetLineOffset | Returns line offset. |
![]() | GetLinePatternSize | Calls GetLinePatternSize(OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetLinePatternSize(SoVectorizeActionDimensionUnits) | Returns the line pattern scale factor. |
![]() | GetMarkerOffset | Returns marker offset. |
![]() | GetMiterLimit | Returns the miter limit. |
![]() | GetNodeAppliedTo | (Inherited from SoAction.) |
![]() | GetNominalWidth | Calls GetNominalWidth(OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetNominalWidth(SoVectorizeActionDimensionUnits) | Returns the nominal width. |
![]() | GetOrientation | Returns the orientation of the drawing on the sheet of paper. |
![]() | GetOriginalPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetOutput | Obsolete. Obsoletesince Open Inventor 6000 Use getVectorOutput() instead. |
![]() | GetPathAppliedTo | (Inherited from SoAction.) |
![]() | GetPathCode(SbNativeArrayInt32) | Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to. |
![]() | GetPathCode(SbNativeInt32Array) | Obsolete. Returns path code based on where current node (the node at the end of the current path) lies with respect to the path(s) the action is being applied to. |
![]() | GetPathListAppliedTo | (Inherited from SoAction.) |
![]() | GetPenDescription(SbColor, Single) | Calls GetPenDescription(colors, widths, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetPenDescription(SbColor, Single, SoVectorizeActionDimensionUnits) | Returns the description of the color and the width of each pen. |
![]() | GetPenNum | Returns the number of pens. |
![]() | GetPipeId | Gets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | GetPixelImageSize | Calls GetPixelImageSize(OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetPixelImageSize(SoVectorizeActionDimensionUnits) | Returns the size of a pixel. |
![]() | GetPolygonOffset | Returns polygon offset. |
![]() | GetSceneManager | Return the SoSceneManager associated with this action. |
![]() | GetShadeModel | Returns the shade model. |
![]() | GetStartPosition | Calls GetStartPosition(OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | GetStartPosition(SoVectorizeActionDimensionUnits) | Returns the start position of the drawing on the sheet of paper. |
![]() | GetState | (Inherited from SoAction.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetVectorOutput | Output access method. |
![]() | GetWhatAppliedTo | (Inherited from SoAction.) |
![]() | HasTerminated | (Inherited from SoAction.) |
![]() | InvalidateState | Invalidates the current traversal state in the action, forcing it to be recreated when the action is next applied. |
![]() | IsBeingApplied | Returns true if this action is currently being applied. |
![]() | IsLastPathListAppliedTo | (Inherited from SoAction.) |
![]() | IsLightingEnabled | Returns true if lighting is enabled. |
![]() | IsUsingAlternateRep | Returns true if current action is using alternate representations. |
![]() | PostDelayedTraversal | Method called by SoMultiPassManager after delayed pass traversals. |
![]() | PreDelayedTraversal | Method called by SoMultiPassManager before delayed pass traversals. |
![]() | PrepareAction | Obsolete. Calls PrepareAction(action, true). |
![]() | ResetContinueActionInBranchFlag | This function resets the continue action flag. |
![]() | SetBackgroundColor(Boolean) | Enables or disables the background and sets its color to white. |
![]() | SetBackgroundColor(Boolean, SbColor) | Sets the color of the background. |
![]() | SetBorder(Single) | Sets the width of the border of the clipping limits. |
![]() | SetBorder(Single, SbColor) | Sets the color and the width of the border of the clipping limits. |
![]() | SetColorPriority | Sets the color priority flag. |
![]() | SetColorTranslationMethod | Sets the method for choosing the color of the drawing on the sheet of paper. |
![]() | SetDrawingDimensions(SbVec2f) | Calls SetDrawingDimensions(d, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetDrawingDimensions(Single, Single) | Calls SetDrawingDimensions(w, h, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetDrawingDimensions(SbVec2f, SoVectorizeActionDimensionUnits) | Sets the dimensions of the drawing on the sheet of paper. |
![]() | SetDrawingDimensions(Single, Single, SoVectorizeActionDimensionUnits) | Sets the dimensions of the drawing on the sheet of paper. |
![]() | SetHLHSRMode | Sets the Hidden Line and Hidden Surface Removal mode. |
![]() | SetHLHSRRasterCaching | Enables/disables the use of OpenGL display lists to generate the raster image with the HLHSR_RASTER algorithm. |
![]() | SetHLHSRRasterQuality | Sets the quality of the raster image generated to vectorize visible primitives with the HLHSR_RASTER algorithm. |
![]() | SetLineEndStyle | Sets the style for line ends. |
![]() | SetLineJoinsStyle | Sets the style for line joins. |
![]() | SetLineOffset | Sets line offset. |
![]() | SetLinePatternSize(Single) | Calls SetLinePatternSize(w, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetLinePatternSize(Single, SoVectorizeActionDimensionUnits) | Sets the line pattern size, i.e., the association between printer pattern (16 printer "points") and the size of the line pattern on the hard copy output. |
![]() | SetMarkerOffset | Sets marker offset. |
![]() | SetMiterLimit | Sets the miter limit. |
![]() | SetNominalWidth(Single) | Calls SetNominalWidth(w, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetNominalWidth(Single, SoVectorizeActionDimensionUnits) | Sets the nominal width. |
![]() | SetOrientation | Sets the orientation of the drawing on the sheet of paper. |
![]() | SetPenDescription | Calls SetPenDescription((cli.array<OIV.Inventor.SbColor>^)nullptr, (cli.array<System.Single>^)nullptr, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetPenDescription(SbColor) | Calls SetPenDescription(colors, (cli.array<System.Single>^)nullptr, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetPenDescription(SbColor, Single) | Calls SetPenDescription(colors, widths, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetPenDescription(SbColor, Single, SoVectorizeActionDimensionUnits) | Sets the description of the color and the width of each pen. |
![]() | SetPipeId | Sets pipe identifier in the range [1..N] associated to this render action while running a ScaleViz Multipipe configuration. |
![]() | SetPixelImageSize(Single) | Calls SetPixelImageSize(w, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetPixelImageSize(Single, SoVectorizeActionDimensionUnits) | Sets the size of a pixel for image primitives. |
![]() | SetPolygonOffset | Method to set the Z offset to be applied to polygons in normalized device coordinates (-1 to 1 space). |
![]() | SetSceneManager | Set the scene manager associated with this action (if any ). |
![]() | SetShadeModel | |
![]() | SetStartPosition(SbVec2f) | Calls SetStartPosition(p, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetStartPosition(Single, Single) | Calls SetStartPosition(x, y, OIV.HardCopy.SoVectorizeAction.DimensionUnits( .SoVectorizeAction.MM )). |
![]() | SetStartPosition(SbVec2f, SoVectorizeActionDimensionUnits) | Sets the start position of the drawing on the sheet of paper. |
![]() | SetStartPosition(Single, Single, SoVectorizeActionDimensionUnits) | Sets the start position of the drawing on the sheet of paper. |
![]() | SetUpState | (Inherited from SoAction.) |
![]() | StopActionInBranch | This function stops the action in the current Scene Graph branch. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Traverse | (Inherited from SoAction.) |
![]() | UseAlternateRep | Tell the action to use alternate representations during traversal when available. |
This class is an abstract class for all vectorize actions. The supported subclasses are SoVectorizeCGMAction, SoVectorizeGDIAction (Win32 only), SoVectorizeHPGLAction, and SoVectorizePSAction. As with SoWriteAction, these subclasses contain an SoVectorOutput instance (or derived) which writes by default to standard output. Methods on SoVectorOutput can be called to specify what file to write to.
Default values:
Orientation: PORTRAIT
Start position: X=10.0 mm and Y=10.0 mm
Dimensions: Width=190.0 mm and Height=277.0 mm
Border width: 2.0 mm
Border color: (1.,1.,1.)
Background: no background
Nominal width: 0.35 mm
Pixel image size: 0.35mm
Color Translation method: REVERSE_ONLY_BLACK_AND_WHITE
Number of pens: 0
Color priority: true
Line End Style: BUTT_END
Line Join Style: NO_JOIN
Miter limit: 1.5 (Miter Length / Line Width)
HLHSR mode: NO_HLHSR
Lighting enabled: false
Polygon/Line/Marker offset: 0
Shade model: FLAT
HLHSR raster quality: 0.5
Line end styles description:
Force black and white rendering: It is possible to force black and white rendering by setting the environment variable OIV_HC_BLACK_AND_WHITE (see SoPreferences). In this mode all non-white colors are set to full black. This is useful because selecting "black & white" in the printer setup dialog normally produces gray scale rendering and some colors may be difficult to see. This option is applied after color translation (e.g. REVERSE_ONLY_BLACK_AND_WHITE). The variable must be set before creating an instance of the class.
Performance: The HLHSR modes NO_HLHSR and HLHSR_SIMPLE_PAINTER are generally quite fast and should be used whenever possible (when the resulting image quality is acceptable or when a quick preview is desired). The other HLHSR modes involve computations that are very CPU intensive. In other words, the time required to produce an image depends almost entirely on the machine's processor speed. HLHSR_PAINTER_SURFACE_REMOVAL has a very small dependency on the graphics board (because it does one offscreen render) whereas HLHSR_RASTER performance is completely linked to the graphics board performance. The other modes are not affected by the graphics board performance. One implication of the CPU dependency is that the release libraries will generally be much faster than the debug libraries (because of compiler optimizations). Benchmarking should always be done using the release libraries.
Performance is directly related to the number of primitives (individual faces and line segments, not the number of nodes in the scene graph) and the number of intersecting or difficult-to-sort primitives. Performance decreases rapidly (worse than linear) for large numbers of primitives. Therefore algorithms that can reduce the number of primitives may be needed for large scenes (see, for example, SoSimplifyAction).
In some cases setting a small polygon offset can improve performance by reducing interference between faces and lines (used only with the Painter's algorithm HLHSR modes).
HIDDEN_LINES_REMOVAL mode is very slow and should not be used unless very precise output is required.
Generally HLHSR_RASTER mode gives the best combination of performance and image quality.
Limitations
Modeling clipping (SoClipPlane) is ignored.
Textures are ignored (polygons are drawn as if no texture is applied).
Transparency is ignored.
SoAnnotation nodes are handled like SoSeparator nodes.
Smooth shading is only supported with PostScript Level 3.
SoText2 (and SoAnnoText3 using an xxx_PRINT_RASTER option) will be rendered using native fonts, so the requested font name must be available on the rendering device.
VolumeViz representations are not supported (because texturing is not possible).
FXViz representations are not supported.