Manage vector output to GDI devices.
[Windows only] This class is not implemented on UNIX systems.
More...
#include <HardCopy/SoVectorizeGDIAction.h>
Public Member Functions | |
SoGDIVectorOutput () | |
virtual | ~SoGDIVectorOutput () |
SoNONUNICODE SbBool | openFile (const char *file_name) |
SbBool | openFile (const SbString &file_name) |
void | openFile (HDC hdc) |
void | openFile () |
void | closeFile () |
This class is used for writing vector formatted files (Enhanced Metafiles .EMF), for printing directly under MS-Windows, or with a application device context (DC).
An instance of SoGDIVectorOutput is contained in an SoVectorizeGDIAction. This is typically the only instance needed.
SoGDIVectorOutput::SoGDIVectorOutput | ( | ) |
Constructor.
The default constructor enables the printer job.
virtual SoGDIVectorOutput::~SoGDIVectorOutput | ( | ) | [virtual] |
Destructor.
The destructor closes any output opened by the SoGDIVectorOutput.
void SoGDIVectorOutput::closeFile | ( | ) | [virtual] |
Fully optional.
Inactive but exists for consistency with the other output formats.
Reimplemented from SoVectorOutput.
void SoGDIVectorOutput::openFile | ( | ) |
Default method: Opens the printer dialog box for paper output.
void SoGDIVectorOutput::openFile | ( | HDC | hdc | ) |
Initializes GDI output using the given device context (type HDC).
But the device context must be first converted into a MM_HIMETRIC mapmode (units: 1/100th mm, the origin being in the bottom left corner, positive x to the right and positive y up). The mapmode can be restored after output processing.
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.
Reimplemented from SoVectorOutput.
SoNONUNICODE SbBool SoGDIVectorOutput::openFile | ( | const char * | file_name | ) | [virtual] |
Opens the GDI output as a Windows Enhanced MetaFile (.EMF) from the given file name.
Reimplemented from SoVectorOutput.