Dialog box for controlling printing. More...
#include <Inventor/Xt/SoXtPrintDialog.h>
Public Member Functions | |
SoXtPrintDialog (SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE) | |
SoXtPrintDialog (SoGLRenderAction *act, SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE) | |
~SoXtPrintDialog () | |
void | setSceneGraph (SoPath *path) |
void | setSceneGraph (SoNode *root) |
SoNode * | getSceneGraph () |
SoPath * | getSceneGraphPath () |
void | setGLRenderAction (const SoGLRenderAction *act) |
SoGLRenderAction * | getGLRenderAction () |
void | setPrintSize (const SbVec2f &inches) |
void | setPrintSize (const SbVec2s &pixels) |
void | setBeforePrintCallback (SoXtPrintDialogCB *f, void *userData=NULL) |
void | setAfterPrintCallback (SoXtPrintDialogCB *f, void *userData=NULL) |
Dialog box for controlling printing.
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.
!!------------------------------------------------ !! Print Dialog !!------------------------------------------------ *IvPrintDialTitle.labelString: Print Dialog *IvPrintDialIconTitle.labelString: Print Dialog *IvPrintDialPrinter.labelString: Printer: *IvPrintDialPageOut.labelString: Page Output: *IvPrintDialToPrinter.labelString: To Printer *IvPrintDialToFile.labelString: To File *IvPrintDialQuit.labelString: Quit *IvPrintDialPrint.labelString: Print *IvPrintDialMessage.labelString: Message: *IvPrintDialFileFormat.labelString: File Format: *IvPrintDialPostScript.labelString: PostScript *IvPrintDialRGB.labelString: RGB *IvPrintDialPrintQuality.labelString: Print Quality: *IvPrintDialHigh.labelString: High *IvPrintDialDraft.labelString: Draft *IvPrintDialPageFormat.labelString: Page Format *IvPrintDialPortrait.labelString: Portrait *IvPrintDialLandscape.labelString: Landscape *IvPrintDialPrintSize.labelString: Print Size (inches): *IvPrintDialFileName.labelString: File Name: *IvPrintDialResolution.labelString: Resolution *IvPrintDialBy.labelString: by *IvPrintDialDpi.labelString: DPI: *IvPrintDialMess1.labelString: Printing in progress... *IvPrintDialMess2.labelString: ERROR: Empty database. *IvPrintDialMess3.labelString: ERROR: Exceeds *IvPrintDialMess4.labelString: ERROR: Could not execute print. *IvPrintDialMess5.labelString: ERROR: Could not execute print. *IvPrintDialMess6.labelString: ERROR: No printer. *IvPrintDialMess7.labelString: ERROR: Couldn't open *IvPrintDialMess8.labelString: ERROR: No file name. *IvPrintDialMess9.labelString: ERROR: Could not open file. *IvPrintDialMess10.labelString: ERROR: Could not get data. *IvPrintDialMess11.labelString: ERROR: Could not get data. *IvPrintDialMess12.labelString: Printing completed.
SoGLRenderAction, SoXtComponent
SoXtPrintDialog::SoXtPrintDialog | ( | SoWidget | parent = NULL , |
|
const char * | name = NULL , |
|||
SbBool | buildInsideParent = TRUE | |||
) |
Constructor.
SoXtPrintDialog::SoXtPrintDialog | ( | SoGLRenderAction * | act, | |
SoWidget | parent = NULL , |
|||
const char * | name = NULL , |
|||
SbBool | buildInsideParent = TRUE | |||
) |
Constructor that takes a render action.
SoXtPrintDialog::~SoXtPrintDialog | ( | ) |
Destructor.
SoGLRenderAction* SoXtPrintDialog::getGLRenderAction | ( | ) |
Gets the render action to be used when printing.
SoNode* SoXtPrintDialog::getSceneGraph | ( | ) | [inline] |
Gets the root node to be used for printing.
SoPath* SoXtPrintDialog::getSceneGraphPath | ( | ) | [inline] |
Gets the path to nodes to be used for printing.
void SoXtPrintDialog::setAfterPrintCallback | ( | SoXtPrintDialogCB * | f, | |
void * | userData = NULL | |||
) | [inline] |
Two callbacks are maintained, one which gets called just before a print is executed, and one which gets called after a print is executed.
This method sets the after print callback. Set it to NULL to remove the callback.
void SoXtPrintDialog::setBeforePrintCallback | ( | SoXtPrintDialogCB * | f, | |
void * | userData = NULL | |||
) | [inline] |
Two callbacks are maintained, one which gets called just before a print is executed, and one which gets called after a print is executed.
This method sets the before print callback. Set it to NULL to remove the callback.
void SoXtPrintDialog::setGLRenderAction | ( | const SoGLRenderAction * | act | ) |
Sets the render action to be used when printing.
void SoXtPrintDialog::setPrintSize | ( | const SbVec2s & | pixels | ) |
Sets the size of the printed image in pixels.
This is typically the same size as the window displaying the scene to be printed.
void SoXtPrintDialog::setPrintSize | ( | const SbVec2f & | inches | ) |
Sets the size of the printed image in inches.
This is typically the same size as the window displaying the scene to be printed.
void SoXtPrintDialog::setSceneGraph | ( | SoNode * | root | ) |
Sets the root node to be used for printing.
void SoXtPrintDialog::setSceneGraph | ( | SoPath * | path | ) |
Sets the path to nodes to be used for printing.