If you don't find what you are looking for here, check the Mercury TGS Series website (3dviz.mc.com) as a more recent version of this FAQ may be posted there.
The following figure shows how to configure the camera and the Open Inventor
shapes according to the dimensions of the paper:
SoVectorizePSAction psVecAction; psVecAction.apply(myViewer->getSceneManager()->getSceneGraph()); ...![]()
SoVectorizePSAction vectPS ;
vectPS.beginPage(startPos, pageSize);
// Draw the scene graph root1 from the start point(x1, y1) to the
// end point (x1+width1, y1+height1)
vectPS.setStartPosition(x1, y1);
vectPS.setDrawingDimensions(width1, height1);
vectPS.setBorder(2.0);
vectPS.apply(root1);
// Draw the scene graph root2 from the start point(x2, y2) to the
// end point (x2+width2, y2+height2)
vectPS.setStartPosition(x2, y2);
vectPS.setDrawingDimensions(width2, height2);
vectPS.apply(root2);
...
// Draw the scene graph rooti from the start point(xi, yi) to the
// end point (xi+widthi, yi+heighti)
vectPS.setStartPosition(xi, yi);
vectPS.setDrawingDimensions(widthi, heighti);
vectPS.apply(rooti);
vectPS.endPage();
Another approach (described in “How
can I have different parts of my graphic
window working in different world coordinates?”) consists of using one
PoSceneView per scene graph.