logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoXtPrintDialog — dialog box for controlling printing

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.

Inherits From

       SoXtComponent > SoXtPrintDialog

Methods

SoXtPrintDialog(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE)~SoXtPrintDialog()
          Constructors and destructor.

     voidsetSceneGraph(SoNode*root)SoNode*getSceneGraph()voidsetSceneGraph(SoPath*path)SoPath*getSceneGraphPath()
          Sets/gets the root node or path to nodes to be used for printing.

     voidsetGLRenderAction(constSoGLRenderAction*act)SoGLRenderAction*getGLRenderAction()
          Sets/gets the render action to be used when printing.

     voidsetPrintSize(SbVec2f&inches)voidsetPrintSize(SbVec2s&)
          Sets/gets  the size of the printed image. This is typically the same size as the window displaying the
          scene to be printed.

     voidsetBeforePrintCallback(SoXtPrintDialogCB*f,void*userData=NULL)voidsetAfterPrintCallback(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).

Name

       SoXtPrintDialog — dialog box for controlling printing

See Also

SoGLRenderAction,SoXtComponentSoXtPrintDialog(3IV)()

Synopsis

#include<Inventor/Xt/SoXtPrintDialog.h>typedefvoidSoXtPrintDialogCB(void*userData,SoXtPrintDialog*dialog)

          Methods from class SoXtPrintDialog:

                         SoXtPrintDialog(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE)~SoXtPrintDialog()voidsetSceneGraph(SoNode*root)SoNode*getSceneGraph()voidsetSceneGraph(SoPath*path)SoPath*getSceneGraphPath()voidsetGLRenderAction(constSoGLRenderAction*act)SoGLRenderAction*getGLRenderAction()voidsetPrintSize(SbVec2f&inches)voidsetPrintSize(SbVec2s&)voidsetBeforePrintCallback(SoXtPrintDialogCB*f,void*userData=NULL)voidsetAfterPrintCallback(SoXtPrintDialogCB*f,void*userData=NULL)

          Methods from class SoXtComponent:

     virtualvoidshow()virtualvoidhide()SbBoolisVisible()WidgetgetWidget()constSbBoolisTopLevelShell()constWidgetgetShellWidget()constWidgetgetParentWidget()constvoidsetSize(constSbVec2s&size)SbVec2sgetSize()Display*getDisplay()voidsetTitle(constchar*newTitle)constchar*getTitle()constvoidsetIconTitle(constchar*newIconTitle)constchar*getIconTitle()constvoidsetWindowCloseCallback(SoXtComponentCB*func,void*data=NULL)staticSoXtComponent*getComponent(Widgetw)constchar*getWidgetName()constconstchar*getClassName()const

See Also