Class used to write vector formatted CGM files. More...
#include <HardCopy/SoVectorizeCGMAction.h>
Public Member Functions | |
SoCGMVectorOutput () | |
virtual | ~SoCGMVectorOutput () |
virtual SoNONUNICODE SbBool | openFile (const char *file_name) |
virtual SbBool | openFile (const SbString &file_name) |
void | setBinary (SbBool flag=TRUE) |
SbBool | isBinary () const |
void | setVersion (int vers=1) |
int | getVersion () const |
void | setIndexed (SbBool flag=TRUE) |
SbBool | isIndexed () const |
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.
SoCGMVectorOutput::SoCGMVectorOutput | ( | ) |
Constructor.
The default constructor writes to stdout.
virtual SoCGMVectorOutput::~SoCGMVectorOutput | ( | ) | [virtual] |
Destructor.
The destructor closes any files opened by the SoCGMVectorOutput.
int SoCGMVectorOutput::getVersion | ( | ) | const [inline] |
Gets the version of the output CGM file.
SbBool SoCGMVectorOutput::isBinary | ( | ) | const [inline] |
Gets the output mode.
SbBool SoCGMVectorOutput::isIndexed | ( | ) | const [inline] |
Gets the color mode.
Opens named file (sets file pointer to result) .
It returns FALSE on error.
Reimplemented from SoVectorOutput.
virtual SoNONUNICODE SbBool SoCGMVectorOutput::openFile | ( | const char * | file_name | ) | [virtual] |
Opens named file (sets file pointer to result) .
It returns FALSE on error.
Reimplemented from SoVectorOutput.
void SoCGMVectorOutput::setBinary | ( | SbBool | flag = TRUE |
) | [inline] |
Sets the output mode.
This mode can be clear text encoding or binary mode encoding. The default mode is clear text encoding.
void SoCGMVectorOutput::setIndexed | ( | SbBool | flag = TRUE |
) | [inline] |
Sets the color mode.
The default color mode is Indexed and the other mode is Direct (RGB).
void SoCGMVectorOutput::setVersion | ( | int | vers = 1 |
) | [inline] |
Sets the version of the output CGM file.
The default version is 1.