Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sobytestream(3iv) [debian man page]

SoByteStream(3IV)()													       SoByteStream(3IV)()

NAME
SoByteStream -- converts scene graph objects to character byte streams INHERITS FROM
SoByteStream SYNOPSIS
#include <Inventor/misc/SoByteStream.h> Methods from class SoByteStream: SoByteStream() ~SoByteStream() void convert(SoNode *node, SbBool binaryFormat = TRUE) void convert(SoPath *path, SbBool binaryFormat = TRUE) void convert(SoPathList *pathList, SbBool binaryFormat = TRUE) void * getData() uint32_t getNumBytes() static SoPathList * unconvert(SoByteStream *byteStream) static SoPathList * unconvert(void *data, uint32_t numBytes) DESCRIPTION
This class creates a byte stream representation of a scene graph, using an SoWriteAction to write path lists to an in-memory buffer. Byte streams are commonly used to transfer data in copy and paste operations. (The SoXtClipboard class passes SoByteStream data during copy and paste.) METHODS
SoByteStream() ~SoByteStream() Constructor and destructor. void convert(SoNode *node, SbBool binaryFormat = TRUE) void convert(SoPath *path, SbBool binaryFormat = TRUE) void convert(SoPathList *pathList, SbBool binaryFormat = TRUE) These convert the passed scene graph object(s) into a byte stream. The caller may specify whether the byte stream is written in binary (TRUE) or ASCII (FALSE) format, and can pass the object(s) by node, path, or pathList. void * getData() uint32_t getNumBytes() These return the data and number of bytes from the last convert() operation. This byte stream format is well suited to data transfers, like copy and paste. static SoPathList * unconvert(SoByteStream *byteStream) static SoPathList * unconvert(void *data, uint32_t numBytes) These take byte stream data and unconvert it back to scene graph objects. The objects are returned in a path list. SEE ALSO
SoXtClipboard SoByteStream(3IV)()

Check Out this Related Man Page

SoXtPrintDialog(3IV)()													    SoXtPrintDialog(3IV)()

NAME
SoXtPrintDialog -- dialog box for controlling printing INHERITS FROM
SoXtComponent > SoXtPrintDialog SYNOPSIS
#include <Inventor/Xt/SoXtPrintDialog.h> typedef void SoXtPrintDialogCB(void *userData, SoXtPrintDialog *dialog) Methods from class SoXtPrintDialog: SoXtPrintDialog(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE) ~SoXtPrintDialog() void setSceneGraph(SoNode *root ) SoNode * getSceneGraph() void setSceneGraph(SoPath *path ) SoPath * getSceneGraphPath() void setGLRenderAction(const SoGLRenderAction *act) SoGLRenderAction * getGLRenderAction() void setPrintSize(SbVec2f &inches) void setPrintSize(SbVec2s & ) void setBeforePrintCallback(SoXtPrintDialogCB *f, void *userData = NULL) void setAfterPrintCallback(SoXtPrintDialogCB *f, void *userData = NULL) Methods from class SoXtComponent: virtual void show() virtual void hide() SbBool isVisible() Widget getWidget() const SbBool isTopLevelShell() const Widget getShellWidget() const Widget getParentWidget() const void setSize(const SbVec2s &size) SbVec2s getSize() Display * getDisplay() void setTitle(const char *newTitle) const char * getTitle() const void setIconTitle(const char *newIconTitle) const char * getIconTitle() const void setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL) static SoXtComponent * getComponent(Widget w) const char * getWidgetName() const const char * getClassName() const 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. METHODS
SoXtPrintDialog(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE) ~SoXtPrintDialog() Constructors and destructor. void setSceneGraph(SoNode *root ) SoNode * getSceneGraph() void setSceneGraph(SoPath *path ) SoPath * getSceneGraphPath() Sets/gets the root node or path to nodes to be used for printing. void setGLRenderAction(const SoGLRenderAction *act) SoGLRenderAction * getGLRenderAction() Sets/gets the render action to be used when printing. void setPrintSize(SbVec2f &inches) void setPrintSize(SbVec2s & ) Sets/gets the size of the printed image. This is typically the same size as the window displaying the scene to be printed. void setBeforePrintCallback(SoXtPrintDialogCB *f, void *userData = NULL) void setAfterPrintCallback(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 exe- cuted. These two methods sets the appropriate callback function (set these to NULL to remove the callback). SEE ALSO
SoGLRenderAction, SoXtComponent SoXtPrintDialog(3IV)()
Man Page