SoXtPrintDialog Class Reference
[Xt]

Dialog box for controlling printing. More...

#include <Inventor/Xt/SoXtPrintDialog.h>

Inheritance diagram for SoXtPrintDialog:
SoXtComponent

List of all members.

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)
SoNodegetSceneGraph ()
SoPathgetSceneGraphPath ()
void setGLRenderAction (const SoGLRenderAction *act)
SoGLRenderActiongetGLRenderAction ()
void setPrintSize (const SbVec2f &inches)
void setPrintSize (const SbVec2s &pixels)
void setBeforePrintCallback (SoXtPrintDialogCB *f, void *userData=NULL)
void setAfterPrintCallback (SoXtPrintDialogCB *f, void *userData=NULL)

Detailed Description

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.

RESOURCES

SEE ALSO

SoGLRenderAction, SoXtComponent


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/