| 1 |
NAME SoXtPrintDialog SoXtPrintDlog "" { |
| 2 |
dialog box for controlling printing |
| 3 |
} |
| 4 |
|
| 5 |
TYPEDEF void SoXtPrintDialogCB "(void *userData, SoXtPrintDialog *dialog)" |
| 6 |
|
| 7 |
INCLUDE Xt/SoXtPrintDialog.h |
| 8 |
|
| 9 |
DESC { |
| 10 |
This class provides an interactive widget for setting available options |
| 11 |
used in printing with the |
| 12 |
\cSoPrintAction\. |
| 13 |
and its subclasses. Options |
| 14 |
include whether to print with hidden lines or not, whether to print using |
| 15 |
the Landscape format, whether to print to a file or a printer. |
| 16 |
} |
| 17 |
|
| 18 |
METHOD CreateAct SoXtPrintDialog( |
| 19 |
Widget parent = NULL, |
| 20 |
const char *name = NULL, |
| 21 |
SbBool buildInsideParent = TRUE) {} |
| 22 |
METHOD "" ~SoXtPrintDialog() |
| 23 |
{ |
| 24 |
Constructors and destructor. |
| 25 |
} |
| 26 |
|
| 27 |
METHOD setScene void setSceneGraph( SoNode *root ) {} |
| 28 |
METHOD getScene SoNode *getSceneGraph() {} |
| 29 |
METHOD setScenePath void setSceneGraph( SoPath *path ) {} |
| 30 |
METHOD getScenePath SoPath *getSceneGraphPath() |
| 31 |
{ |
| 32 |
Sets/gets the root node or path to nodes to be used for printing. |
| 33 |
} |
| 34 |
|
| 35 |
METHOD setAct void setGLRenderAction(const SoGLRenderAction *act) {} |
| 36 |
METHOD getAct SoGLRenderAction *getGLRenderAction() { |
| 37 |
Sets/gets the render action to be used when printing. |
| 38 |
} |
| 39 |
|
| 40 |
METHOD setPrintSizeInches void setPrintSize( SbVec2f &inches) {} |
| 41 |
METHOD "" void setPrintSize( SbVec2s & ) |
| 42 |
{ |
| 43 |
Sets/gets the size of the printed image. This is typically |
| 44 |
the same size as the window displaying the scene to be printed. |
| 45 |
} |
| 46 |
|
| 47 |
METHOD setBeforePrintCB void setBeforePrintCallback( |
| 48 |
SoXtPrintDialogCB *f, |
| 49 |
void *userData = NULL) {} |
| 50 |
METHOD setAfterPrintCB void setAfterPrintCallback( |
| 51 |
SoXtPrintDialogCB *f, |
| 52 |
void *userData = NULL) |
| 53 |
{ |
| 54 |
Two callbacks are maintained, one which gets called just before a |
| 55 |
print is executed, and one which gets called after a print is executed. |
| 56 |
These two methods sets the appropriate callback function (set these to NULL |
| 57 |
to remove the callback). |
| 58 |
} |
| 59 |
|
| 60 |
ALSO { SoGLRenderAction, SoXtComponent } |