Open Inventor Release 2025.2.2
 
Loading...
Searching...
No Matches
Using SoVectorizeAction

These actions are all derived from the SoVectorizeAction class. As with the SoWriteAction within Open Inventor that outputs the scene graph by writing to an SoOutput object, this class uses an SoVectorOutput object. This allows you to connect a file to the action using the getOutput() method and to output PostScript, HPGL, CGM, or GDI (only with Microsoft Windows) code to the file using the apply() method. This method specifies the part of the scene graph to which the action should be applied. This may be a node, a path, or a list of paths.

The four classes derived from SoVectorizeAction are:

"Important"

  • Textures and shaders 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.
  • VolumeViz representations are not supported because textures are ignored.

You must include a camera in your scene graph to generate correct output. Although the Open Inventor viewers add a camera to your scene graph if none exists, this camera is not part of your scene graph and the default view will be used. You can get the viewer’s scene graph, including the camera, as follows:

<br/>SoNode pVwrRoot = pViewer->getSceneManager()->getSceneGraph();