man SoXtPrintDialog () - dialog box for controlling printing

NAME

SoXtPrintDialog - dialog box for controlling printing

INHERITS FROM

SoXtComponent > SoXtPrintDialog

SYNOPSIS

#include <Inventor/Xt/SoXtPrintDialog.h> c } c } SoXtPrintDialogCB(void *userData, SoXtPrintDialog *dialog) Methods from class SoXtPrintDialog: c } c } SoXtPrintDialog(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)

c } c } ~SoXtPrintDialog()

c } c } setSceneGraph(SoNode *root )

c } c } getSceneGraph()

c } c } setSceneGraph(SoPath *path )

c } c } getSceneGraphPath()

c } c } setGLRenderAction(const SoGLRenderAction *act)

c } c } getGLRenderAction()

c } c } setPrintSize(SbVec2f &inches)

c } c } setPrintSize(SbVec2s & )

c } c } setBeforePrintCallback(SoXtPrintDialogCB *f, void *userData = NULL)

c } c } setAfterPrintCallback(SoXtPrintDialogCB *f, void *userData = NULL) Methods from class SoXtComponent: c } c } show()

c } c } hide()

c } c } isVisible()

c } c } getWidget() const

c } c } isTopLevelShell() const

c } c } getShellWidget() const

c } c } getParentWidget() const

c } c } setSize(const SbVec2s &size)

c } c } getSize()

c } c } getDisplay()

c } c } setTitle(const char *newTitle)

c } c } getTitle() const

c } c } setIconTitle(const char *newIconTitle)

c } c } getIconTitle() const

c } c } setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)

c } c } getComponent(Widget w)

c } c } getWidgetName() const

c } c } getClassName() const

DESCRIPTION

This class provides an interactive widget for setting available options used in printing with the SoPrintAction and its subclasses. Options include whether to print with hidden lines or not, whether to print using the Landscape format, whether to print to a file or a printer.

METHODS

c } c } SoXtPrintDialog(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)

c } c } ~SoXtPrintDialog()

Constructors and destructor. c } c } setSceneGraph(SoNode *root )

c } c } getSceneGraph()

c } c } setSceneGraph(SoPath *path )

c } c } getSceneGraphPath()

Sets/gets the root node or path to nodes to be used for printing. c } c } setGLRenderAction(const SoGLRenderAction *act)

c } c } getGLRenderAction()

Sets/gets the render action to be used when printing. c } c } setPrintSize(SbVec2f &inches)

c } c } setPrintSize(SbVec2s & )

Sets/gets the size of the printed image. This is typically the same size as the window displaying the scene to be printed. c } c } setBeforePrintCallback(SoXtPrintDialogCB *f, void *userData = NULL)

c } c } setAfterPrintCallback(SoXtPrintDialogCB *f, void *userData = NULL)

Two callbacks are maintained, one which gets called just before a print is executed, and one which gets called after a print is executed. These two methods sets the appropriate callback function (set these to NULL to remove the callback).

SEE ALSO

SoGLRenderAction, SoXtComponent