Class used to write vector formatted CGM files. More...
#include <HardCopy/SoVectorizeCGMAction.h>
Public Member Functions | |
SoCGMVectorOutput () | |
Constructor. | |
virtual | ~SoCGMVectorOutput () |
Destructor. | |
virtual SoNONUNICODE SbBool | openFile (const char *file_name) |
Opens named file (sets file pointer to result) . | |
virtual SbBool | openFile (const SbString &file_name) |
Opens named file (sets file pointer to result) . | |
void | setBinary (SbBool flag=TRUE) |
Sets the output mode. | |
SbBool | isBinary () const |
Gets the output mode. | |
void | setVersion (int vers=1) |
Sets the version of the output CGM file. | |
int | getVersion () const |
Gets the version of the output CGM file. | |
void | setIndexed (SbBool flag=TRUE) |
Sets the color mode. | |
SbBool | isIndexed () const |
Gets the color mode. | |
Public Member Functions inherited from SoVectorOutput | |
SoVectorOutput () | |
Constructor. | |
virtual | ~SoVectorOutput () |
Destructor. | |
virtual void | setFilePointer (FILE *newFP) |
Sets file pointer to write to. | |
virtual FILE * | getFilePointer () |
Returns the file pointer in use. | |
virtual void | closeFile () |
Closes the current file opened with openFile(). | |
Class used to write vector formatted CGM files.
This class is used for writing vector formatted files in CGM format. It provides some convenience functions for handling files. An instance of SoCGMVectorOutput is contained in an SoVectorizeCGMAction; this is typically the only instance needed.
The environment variable OIV_CGM_HARDCOPY_BUFSIZE specifies the buffer size in bytes for storing CGM calls before writing them to the disk. The default buffer size is 1048576 bytes (1 megabyte). If set to 1, no buffering is done.
Definition at line 46 of file SoVectorizeCGMAction.h.
SoCGMVectorOutput::SoCGMVectorOutput | ( | ) |
Constructor.
The default constructor writes to stdout.
|
virtual |
Destructor.
The destructor closes any files opened by the SoCGMVectorOutput.
|
inline |
Gets the version of the output CGM file.
Definition at line 112 of file SoVectorizeCGMAction.h.
|
inline |
Gets the output mode.
Definition at line 91 of file SoVectorizeCGMAction.h.
|
inline |
Gets the color mode.
Definition at line 127 of file SoVectorizeCGMAction.h.
|
virtual |
Opens named file (sets file pointer to result) .
It returns FALSE on error.
Non Unicode: This function should not be used in a Unicode application.
Reimplemented from SoVectorOutput.
Opens named file (sets file pointer to result) .
It returns FALSE on error.
Reimplemented from SoVectorOutput.
Sets the output mode.
This mode can be clear text encoding or binary mode encoding. The default mode is clear text encoding.
Definition at line 85 of file SoVectorizeCGMAction.h.
Sets the color mode.
The default color mode is Indexed and the other mode is Direct (RGB).
Definition at line 121 of file SoVectorizeCGMAction.h.
|
inline |
Sets the version of the output CGM file.
The default version is 1.
Definition at line 106 of file SoVectorizeCGMAction.h.