1SoXtPrintDialog(3IV)()                                  SoXtPrintDialog(3IV)()
2
3
4

NAME

6       SoXtPrintDialog — dialog box for controlling printing
7

INHERITS FROM

9       SoXtComponent > SoXtPrintDialog
10

SYNOPSIS

12       #include <Inventor/Xt/SoXtPrintDialog.h>
13
14     typedef   void        SoXtPrintDialogCB(void  *userData,  SoXtPrintDialog
15                              *dialog)
16
17          Methods from class SoXtPrintDialog:
18
19                         SoXtPrintDialog(Widget  parent  =  NULL,  const  char
20                              *name = NULL, SbBool buildInsideParent = TRUE)
21                         ~SoXtPrintDialog()
22     void                setSceneGraph(SoNode *root )
23     SoNode *            getSceneGraph()
24     void                setSceneGraph(SoPath *path )
25     SoPath *            getSceneGraphPath()
26     void                setGLRenderAction(const SoGLRenderAction *act)
27     SoGLRenderAction *  getGLRenderAction()
28     void                setPrintSize(SbVec2f &inches)
29     void                setPrintSize(SbVec2s & )
30     void                setBeforePrintCallback(SoXtPrintDialogCB   *f,   void
31                              *userData = NULL)
32     void                setAfterPrintCallback(SoXtPrintDialogCB   *f,    void
33                              *userData = NULL)
34
35          Methods from class SoXtComponent:
36
37     virtual void            show()
38     virtual void            hide()
39     SbBool                  isVisible()
40     Widget                  getWidget() const
41     SbBool                  isTopLevelShell() const
42     Widget                  getShellWidget() const
43     Widget                  getParentWidget() const
44     void                    setSize(const SbVec2s &size)
45     SbVec2s                 getSize()
46     Display *               getDisplay()
47     void                    setTitle(const char *newTitle)
48     const char *            getTitle() const
49     void                    setIconTitle(const char *newIconTitle)
50     const char *            getIconTitle() const
51     void                    setWindowCloseCallback(SoXtComponentCB     *func,
52                                  void *data = NULL)
53     static SoXtComponent *  getComponent(Widget w)
54     const char *            getWidgetName() const
55     const char *            getClassName() const
56
57

DESCRIPTION

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

METHODS

65                         SoXtPrintDialog(Widget  parent  =  NULL,  const  char
66                              *name = NULL, SbBool buildInsideParent = TRUE)
67                         ~SoXtPrintDialog()
68          Constructors and destructor.
69
70     void                setSceneGraph(SoNode *root )
71     SoNode *            getSceneGraph()
72     void                setSceneGraph(SoPath *path )
73     SoPath *            getSceneGraphPath()
74          Sets/gets the root node or path to nodes to be used for printing.
75
76     void                setGLRenderAction(const SoGLRenderAction *act)
77     SoGLRenderAction *  getGLRenderAction()
78          Sets/gets the render action to be used when printing.
79
80     void                setPrintSize(SbVec2f &inches)
81     void                setPrintSize(SbVec2s & )
82          Sets/gets the size of the printed image. This is typically the  same
83          size as the window displaying the scene to be printed.
84
85     void                setBeforePrintCallback(SoXtPrintDialogCB   *f,   void
86                              *userData = NULL)
87     void                setAfterPrintCallback(SoXtPrintDialogCB   *f,    void
88                              *userData = NULL)
89          Two  callbacks  are  maintained, one which gets called just before a
90          print is executed, and one which gets called after a print  is  exe‐
91          cuted. These two methods sets the appropriate callback function (set
92          these to NULL to remove the callback).
93
94

SEE ALSO

96       SoGLRenderAction, SoXtComponent
97
98
99
100
101                                                        SoXtPrintDialog(3IV)()
Impressum